extractor erstmal fertig

- er findet fast alle tabellen
- quellcode wird entpackt wenn er in einer variable ist
This commit is contained in:
2026-08-09 00:47:23 +02:00
parent 24caf23986
commit d4337ad1a5
116 changed files with 887 additions and 864 deletions
+23 -23
View File
@@ -56,7 +56,7 @@
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
],
"kwargs": {},
"code": "cursor.execute(*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain'))",
"code": "(transaction.connection.cursor()).execute(*action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain'))",
"phase": "after_super"
},
{
@@ -73,7 +73,7 @@
"kwargs": {
"where": "action_report.extension == 'plain'"
},
"code": "action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')",
"code": "action_report.update(\n [action_report.extension],\n ['txt'],\n where=action_report.extension == 'plain')",
"phase": "after_super"
}
]
@@ -138,7 +138,7 @@
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
],
"kwargs": {},
"code": "cursor.execute(*act_window.update([act_window.limit], [Null], where=act_window.limit == 0))",
"code": "(Transaction().connection.cursor()).execute(*act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0))",
"phase": "after_super"
},
{
@@ -155,7 +155,7 @@
"kwargs": {
"where": "act_window.limit == 0"
},
"code": "act_window.update([act_window.limit], [Null], where=act_window.limit == 0)",
"code": "act_window.update(\n [act_window.limit], [Null],\n where=act_window.limit == 0)",
"phase": "after_super"
}
]
@@ -223,7 +223,7 @@
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
],
"kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null)))",
"code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -241,7 +241,7 @@
"kwargs": {
"where": "(attachment.collision == 0) | (attachment.collision == Null)"
},
"code": "attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))",
"code": "attachment.update(\n [attachment.file_id],\n [attachment.digest],\n where=(attachment.collision == 0)\n | (attachment.collision == Null))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -256,7 +256,7 @@
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
],
"kwargs": {},
"code": "cursor.execute(*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null)))",
"code": "(Transaction().connection.cursor()).execute(*attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null)))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -274,7 +274,7 @@
"kwargs": {
"where": "(attachment.collision != 0) & (attachment.collision != Null)"
},
"code": "attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))",
"code": "attachment.update(\n [attachment.file_id],\n [Concat(Concat(attachment.digest, '-'),\n attachment.collision)],\n where=(attachment.collision != 0)\n & (attachment.collision != Null))",
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
@@ -364,7 +364,7 @@
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')))",
"code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button'))))",
"phase": "after_super"
},
{
@@ -381,7 +381,7 @@
"kwargs": {
"where": "(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button')"
},
"code": "model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))",
"code": "model_data.update(\n [model_data.module], ['ir'],\n where=((model_data.module == 'res')\n & (model_data.fs_id == 'model_data_sync_button')))",
"phase": "after_super"
},
{
@@ -419,7 +419,7 @@
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed'))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed'))",
"phase": "after_super"
},
{
@@ -436,7 +436,7 @@
"kwargs": {
"where": "sql_table.state == 'installed'"
},
"code": "sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')",
"code": "sql_table.update(\n [sql_table.state], ['activated'],\n where=sql_table.state == 'installed')",
"phase": "after_super"
},
{
@@ -450,7 +450,7 @@
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled'))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled'))",
"phase": "after_super"
},
{
@@ -467,7 +467,7 @@
"kwargs": {
"where": "sql_table.state == 'uninstalled'"
},
"code": "sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')",
"code": "sql_table.update(\n [sql_table.state], ['not activated'],\n where=sql_table.state == 'uninstalled')",
"phase": "after_super"
},
{
@@ -481,7 +481,7 @@
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
],
"kwargs": {},
"code": "cursor.execute(*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)))",
"code": "(Transaction().connection.cursor()).execute(*model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids)))))",
"phase": "after_super"
},
{
@@ -498,7 +498,7 @@
"kwargs": {
"where": "(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids)"
},
"code": "model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))",
"code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super"
}
]
@@ -520,7 +520,7 @@
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item'))",
"code": "(Transaction().connection.cursor()).execute(*model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item')))",
"phase": "before_super"
},
{
@@ -536,7 +536,7 @@
"values": "[cls.__name__]",
"where": "model_data.model == 'ir.module.module.config_wizard.item'"
},
"code": "model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')",
"code": "model_data.update(\n columns=[model_data.model],\n values=[cls.__name__],\n where=(model_data.model ==\n 'ir.module.module.config_wizard.item'))",
"phase": "before_super"
},
{
@@ -575,7 +575,7 @@
"kwargs": {
"action": "'add'"
},
"code": "table_h.index_action([queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name], action='add')",
"code": "table_h.index_action([\n queue.scheduled_at.nulls_first,\n queue.expected_at.nulls_first,\n queue.dequeued_at,\n queue.name,\n ], action='add')",
"phase": "after_super"
}
]
@@ -650,7 +650,7 @@
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
],
"kwargs": {},
"code": "cursor.execute(*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt'))",
"code": "(transaction.connection.cursor()).execute(*ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt'))",
"phase": "after_super"
},
{
@@ -667,7 +667,7 @@
"kwargs": {
"where": "ir_translation.type == 'odt'"
},
"code": "ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')",
"code": "ir_translation.update(\n [ir_translation.type],\n ['report'],\n where=ir_translation.type == 'odt')",
"phase": "after_super"
},
{
@@ -704,7 +704,7 @@
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null))",
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
@@ -722,7 +722,7 @@
"kwargs": {
"where": "sql_table.minimum_delay != Null"
},
"code": "sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)",
"code": "sql_table.select(\n sql_table.id, sql_table.minimum_delay,\n where=sql_table.minimum_delay != Null)",
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
+6 -6
View File
@@ -19,7 +19,7 @@
"*sql_table.update([sql_table.street], [value])"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.street], [value]))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.street],\n [value]))",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
@@ -35,7 +35,7 @@
"[value]"
],
"kwargs": {},
"code": "sql_table.update([sql_table.street], [value])",
"code": "sql_table.update(\n [sql_table.street],\n [value])",
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
@@ -120,7 +120,7 @@
"party.select(party.id, party.lang)"
],
"kwargs": {},
"code": "table.insert([table.party, table.lang], party.select(party.id, party.lang))",
"code": "table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
@@ -149,7 +149,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.insert(\n [table.party, table.lang],\n party.select(party.id, party.lang))))",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
@@ -187,7 +187,7 @@
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
],
"kwargs": {},
"code": "cursor.execute(*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null)))",
"code": "(Transaction().connection.cursor()).execute(*party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null)))",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
@@ -206,7 +206,7 @@
"kwargs": {
"where": "(party.vat_number != Null) | (party.vat_country != Null)"
},
"code": "party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))",
"code": "party.select(\n party.id, party.vat_number, party.vat_country,\n where=(party.vat_number != Null)\n | (party.vat_country != Null))",
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
+8 -8
View File
@@ -20,7 +20,7 @@
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns])))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
@@ -37,7 +37,7 @@
"columns": "[Column(sql_table, c) for c in columns]",
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
},
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))",
"code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
@@ -52,7 +52,7 @@
"*[Column(cost_price, c) for c in columns]"
],
"kwargs": {},
"code": "cost_price.select(*[Column(cost_price, c) for c in columns])",
"code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
}
@@ -91,7 +91,7 @@
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -107,7 +107,7 @@
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
},
"code": "sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))",
"code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -122,7 +122,7 @@
"kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
},
"code": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))",
"code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -137,7 +137,7 @@
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null)))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
@@ -152,7 +152,7 @@
"kwargs": {
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
},
"code": "sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))",
"code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
"phase": "after_super",
"condition": "table.column_exist('template')"
},
+2 -2
View File
@@ -35,7 +35,7 @@
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null)))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null)))",
"phase": "after_super"
},
{
@@ -52,7 +52,7 @@
"kwargs": {
"where": "(table.planned_start_date == Null) & (table.planned_date != Null)"
},
"code": "table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))",
"code": "table.update(\n [table.planned_start_date],\n [table.planned_date],\n where=(table.planned_start_date == Null)\n & (table.planned_date != Null))",
"phase": "after_super"
}
]
+2 -2
View File
@@ -19,7 +19,7 @@
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
],
"kwargs": {},
"code": "cursor.execute(*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new]))",
"code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
@@ -35,7 +35,7 @@
"columns": "[sqltable.password_hash]",
"values": "[password_hash_new]"
},
"code": "sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])",
"code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},