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
+6 -6
View File
@@ -20,7 +20,7 @@
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
],
"kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null)))",
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -37,7 +37,7 @@
"table.select(table.id, table.main_company, where=table.main_company != Null)"
],
"kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))",
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -55,7 +55,7 @@
"kwargs": {
"where": "table.main_company != Null"
},
"code": "table.select(table.id, table.main_company, where=table.main_company != Null)",
"code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -71,7 +71,7 @@
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
],
"kwargs": {},
"code": "cursor.execute(*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))))",
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -88,7 +88,7 @@
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
],
"kwargs": {},
"code": "user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))",
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
@@ -106,7 +106,7 @@
"kwargs": {
"where": "(table.company != Null) & (table.company != table.main_company)"
},
"code": "table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))",
"code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
"phase": "after_super",
"condition": "table_h.column_exist('main_company')"
},
+4 -4
View File
@@ -19,7 +19,7 @@
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -33,7 +33,7 @@
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super"
}
]
@@ -55,7 +55,7 @@
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'country') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -69,7 +69,7 @@
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'country') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
"phase": "after_super"
},
{
+2 -2
View File
@@ -19,7 +19,7 @@
"*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))"
],
"kwargs": {},
"code": "cursor.execute(*data.delete(where=(data.module == 'currency') & (data.model == cls.__name__)))",
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__)))",
"phase": "after_super"
},
{
@@ -33,7 +33,7 @@
"kwargs": {
"where": "(data.module == 'currency') & (data.model == cls.__name__)"
},
"code": "data.delete(where=(data.module == 'currency') & (data.model == cls.__name__))",
"code": "data.delete(where=(data.module == 'currency')\n & (data.model == cls.__name__))",
"phase": "after_super"
},
{
+8 -8
View File
@@ -88,7 +88,7 @@
"*table.update([table.user], [table.create_uid])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.user], [table.create_uid]))",
"code": "(Transaction().connection.cursor()).execute(*table.update([table.user], [table.create_uid]))",
"phase": "after_super",
"condition": "not user_exists"
},
@@ -221,7 +221,7 @@
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -238,7 +238,7 @@
"sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)"
],
"kwargs": {},
"code": "table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))",
"code": "table.update(\n [table.sequence_type],\n sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code))",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -255,7 +255,7 @@
"kwargs": {
"where": "sequence_type.code == table.code"
},
"code": "sequence_type.select(sequence_type.id, where=sequence_type.code == table.code)",
"code": "sequence_type.select(\n sequence_type.id,\n where=sequence_type.code == table.code)",
"phase": "after_super",
"condition": "table_h.column_exist('code')"
},
@@ -333,7 +333,7 @@
"kwargs": {
"where": "model.id == sql_table.action_model"
},
"code": "model.select(model.model, where=model.id == sql_table.action_model)",
"code": "model.select(\n model.model, where=model.id == sql_table.(model.select(\n model.model, where=model.id == sql_table.action_model)))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -348,7 +348,7 @@
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
],
"kwargs": {},
"code": "cursor.execute(*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))]))",
"code": "(Transaction().connection.cursor()).execute(*sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))]))",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -364,7 +364,7 @@
"[Concat(action_model, Concat('|', sql_table.action_function))]"
],
"kwargs": {},
"code": "sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])",
"code": "sql_table.update(\n [sql_table.action],\n [Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))])",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
@@ -379,7 +379,7 @@
"'action_model'"
],
"kwargs": {},
"code": "table_h.drop_column('action_model')",
"code": "table_h.drop_column('(model.select(\n model.model, where=model.id == sql_table.action_model))')",
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
+10 -10
View File
@@ -44,7 +44,7 @@
"country.select(country.code, where=country.id == table.country)"
],
"kwargs": {},
"code": "table.update([table.country_code], country.select(country.code, where=country.id == table.country))",
"code": "table.update(\n [table.country_code],\n country.select(\n country.code,\n where=country.id == table.country))",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -61,7 +61,7 @@
"kwargs": {
"where": "country.id == table.country"
},
"code": "country.select(country.code, where=country.id == table.country)",
"code": "country.select(\n country.code,\n where=country.id == table.country)",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -74,7 +74,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super",
"condition": "table_h.column_exist('country')"
},
@@ -106,7 +106,7 @@
"language.select(Substring(language.code, 0, 2), where=language.id == table.language)"
],
"kwargs": {},
"code": "table.update([table.language_code], language.select(Substring(language.code, 0, 2), where=language.id == table.language))",
"code": "table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -123,7 +123,7 @@
"kwargs": {
"where": "language.id == table.language"
},
"code": "language.select(Substring(language.code, 0, 2), where=language.id == table.language)",
"code": "language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language)",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -136,7 +136,7 @@
"*query"
],
"kwargs": {},
"code": "cursor.execute(*query)",
"code": "(Transaction().connection.cursor()).execute(*(table.update(\n [table.language_code],\n language.select(\n Substring(language.code, 0, 2),\n where=language.id == table.language))))",
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
@@ -174,7 +174,7 @@
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)]))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n ))",
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
},
@@ -190,7 +190,7 @@
"[cls.identifier_types.sql_format(identifier_types)]"
],
"kwargs": {},
"code": "table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])",
"code": "table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n )",
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
}
@@ -213,7 +213,7 @@
"*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit'))",
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit')))",
"phase": "after_super"
},
{
@@ -230,7 +230,7 @@
"kwargs": {
"where": "table.type == 'cn_rit'"
},
"code": "table.update([table.type], ['cn_ric'], where=table.type == 'cn_rit')",
"code": "table.update([table.type], ['cn_ric'],\n where=(table.type == 'cn_rit'))",
"phase": "after_super"
}
]
+2 -2
View File
@@ -19,7 +19,7 @@
"*table.update([table.suffix_code], [table.code])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.suffix_code], [table.code]))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.suffix_code],\n [table.code]))",
"phase": "after_super",
"condition": "fill_suffix_code"
},
@@ -35,7 +35,7 @@
"[table.code]"
],
"kwargs": {},
"code": "table.update([table.suffix_code], [table.code])",
"code": "table.update(\n [table.suffix_code],\n [table.code])",
"phase": "after_super",
"condition": "fill_suffix_code"
}
+2 -2
View File
@@ -73,7 +73,7 @@
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.state], ['cancelled'], where=table.state == 'cancel'))",
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super"
},
{
@@ -90,7 +90,7 @@
"kwargs": {
"where": "table.state == 'cancel'"
},
"code": "table.update([table.state], ['cancelled'], where=table.state == 'cancel')",
"code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super"
}
]
+2 -2
View File
@@ -19,7 +19,7 @@
"*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))"
],
"kwargs": {},
"code": "cursor.execute(*model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')))",
"code": "(Transaction().connection.cursor()).execute(*model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin')))",
"phase": "after_super"
},
{
@@ -36,7 +36,7 @@
"kwargs": {
"where": "(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin')"
},
"code": "model_data.update([model_data.noupdate], [True], where=(model_data.model == cls.__name__) & (model_data.module == 'res') & (model_data.fs_id == 'user_admin'))",
"code": "model_data.update(\n [model_data.noupdate], [True],\n where=(model_data.model == cls.__name__)\n & (model_data.module == 'res')\n & (model_data.fs_id == 'user_admin'))",
"phase": "after_super"
}
]
+2 -2
View File
@@ -17,7 +17,7 @@
"*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)"
],
"kwargs": {},
"code": "cursor_select.execute(*template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template))",
"code": "(connection.cursor()).execute(*template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template))",
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
},
@@ -32,7 +32,7 @@
"kwargs": {
"distinct_on": "template_lot_type.template"
},
"code": "template_lot_type.select(template_lot_type.template, distinct_on=template_lot_type.template)",
"code": "template_lot_type.select(\n template_lot_type.template,\n distinct_on=template_lot_type.template)",
"phase": "after_super",
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
}