File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
clickhouse_sqlalchemy/alembic Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1717)
1818
1919
20- def _get_reflected_table (connection , table_name , schema = None ):
21- # Для Alembic < 1.11
20+ def _alembic_reflect_table (connection , table_name , schema = None ):
2221 if alembic_version < (1 , 11 ):
2322 from alembic .util .sqla_compat import _reflect_table
24-
2523 return _reflect_table (connection , table_name , schema )
2624
27- # Для Alembic >= 1.11
2825 inspector = inspect (connection )
2926 columns = inspector .get_columns (table_name , schema = schema )
30- # Соберите Table объект при необходимости
3127 return columns
3228
3329
34- _alembic_reflect_table = _get_reflected_table
35-
36-
3730def _extract_to_table_name (create_table_query ):
3831 query = create_table_query
3932 # Naive inner name detection
You can’t perform that action at this time.
0 commit comments