class documentation

class ComponentReflectionTest(ComparesTables, OneConnectionTablesTest): (source)

View In Hierarchy

Undocumented

Class Method define_reflected_tables Undocumented
Class Method define_tables Undocumented
Class Method define_temp_tables Undocumented
Class Method define_views Undocumented
Class Method temp_table_name Undocumented
Method exp_ccs Undocumented
Method exp_columns Undocumented
Method exp_comments Undocumented
Method exp_fks Undocumented
Method exp_indexes Undocumented
Method exp_options Undocumented
Method exp_pks Undocumented
Method exp_ucs Undocumented
Method get_multi_exp Undocumented
Method test_autoincrement_col test that 'autoincrement' is reflected according to sqla's policy.
Method test_dialect_initialize Undocumented
Method test_get_columns Undocumented
Method test_get_comments Undocumented
Method test_get_comments_with_schema Undocumented
Method test_get_default_schema_name Undocumented
Method test_get_foreign_keys Undocumented
Method test_get_indexes Undocumented
Method test_get_inter_schema_foreign_keys Undocumented
Method test_get_multi_check_constraints Undocumented
Method test_get_multi_columns Undocumented
Method test_get_multi_foreign_keys Undocumented
Method test_get_multi_indexes Undocumented
Method test_get_multi_pk_constraint Undocumented
Method test_get_multi_table_comment Undocumented
Method test_get_multi_unique_constraints Undocumented
Method test_get_noncol_index Undocumented
Method test_get_pk_constraint Undocumented
Method test_get_schema_names Undocumented
Method test_get_schema_names_w_translate_map test #7300
Method test_get_table_names Undocumented
Method test_get_table_options Undocumented
Method test_get_temp_table_columns Undocumented
Method test_get_temp_table_indexes Undocumented
Method test_get_temp_table_names Undocumented
Method test_get_temp_table_unique_constraints Undocumented
Method test_get_temp_view_columns Undocumented
Method test_get_temp_view_names Undocumented
Method test_get_unique_constraints Undocumented
Method test_get_view_definition Undocumented
Method test_get_view_definition_does_not_exist Undocumented
Method test_get_view_names Undocumented
Method test_has_schema Undocumented
Method test_has_schema_w_translate_map Undocumented
Method test_metadata Undocumented
Method test_multi_get_table_options Undocumented
Method test_multi_get_table_options_tables Undocumented
Method test_not_existing_table Undocumented
Method test_reflect_table_temp_table Undocumented
Method test_schema_cache Undocumented
Method test_unreflectable Undocumented
Class Variable __backend__ Undocumented
Class Variable run_deletes Undocumented
Class Variable run_inserts Undocumented
Method _adjust_sort Undocumented
Method _check_list Undocumented
Method _check_table_dict Undocumented
Method _resolve_kind Undocumented
Method _resolve_names Undocumented
Method _resolve_views Undocumented
Method _test_get_comments Undocumented
Property _required_cc_keys Undocumented
Property _required_column_keys Undocumented
Property _required_fk_keys Undocumented
Property _required_index_keys Undocumented
Property _required_pk_keys Undocumented
Property _required_unique_cst_keys Undocumented

Inherited from OneConnectionTablesTest:

Class Method setup_bind Undocumented

Inherited from TablesTest (via OneConnectionTablesTest):

Class Method dispose_bind Undocumented
Class Method fixtures Undocumented
Class Method insert_data Undocumented
Method sql_count_ Undocumented
Method sql_eq_ Undocumented
Class Variable bind Undocumented
Class Variable other Undocumented
Class Variable run_create_tables Undocumented
Class Variable run_define_tables Undocumented
Class Variable run_dispose_bind Undocumented
Class Variable run_setup_bind Undocumented
Class Variable sequences Undocumented
Class Variable tables Undocumented
Property tables_test_metadata Undocumented
Class Method _init_class Undocumented
Class Method _load_fixtures Insert rows as represented by the fixtures() method.
Class Method _setup_once_inserts Undocumented
Class Method _setup_once_tables Undocumented
Class Method _teardown_once_metadata_bind Undocumented
Method _setup_each_inserts Undocumented
Method _setup_each_tables Undocumented
Method _setup_tables_test_class Undocumented
Method _setup_tables_test_instance Undocumented
Method _teardown_each_tables Undocumented
Class Variable _tables_metadata Undocumented

Inherited from TestBase (via OneConnectionTablesTest, TablesTest):

Method assert_ Undocumented
Method async_testing_engine Undocumented
Method close_result_when_finished Undocumented
Method connection Undocumented
Method connection_no_trans Undocumented
Method dc_decl_base Undocumented
Method decl_base Undocumented
Method fixture_session Undocumented
Method future_connection Undocumented
Method future_engine Undocumented
Method metadata Provide bound MetaData for a single test, dropping afterwards.
Method nocache Undocumented
Method registry Undocumented
Method testing_engine Undocumented
Method trans_ctx_manager_fixture Undocumented
Class Variable __leave_connections_for_teardown__ Undocumented
Class Variable __only_on__ Undocumented
Class Variable __requires__ Undocumented
Class Variable __skip_if__ Undocumented
Class Variable __unsupported_on__ Undocumented
@classmethod
def define_reflected_tables(cls, metadata, schema): (source)

Undocumented

@classmethod
def define_tables(cls, metadata): (source)
@classmethod
def define_temp_tables(cls, metadata): (source)

Undocumented

@classmethod
def define_views(cls, metadata, schema): (source)

Undocumented

@classmethod
def temp_table_name(cls): (source)

Undocumented

def exp_ccs(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None): (source)

Undocumented

def exp_columns(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None): (source)

Undocumented

def exp_comments(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None): (source)

Undocumented

def exp_fks(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None): (source)

Undocumented

def exp_indexes(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None): (source)

Undocumented

def exp_options(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None): (source)

Undocumented

def exp_pks(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None): (source)

Undocumented

def exp_ucs(self, schema=None, scope=ObjectScope.ANY, kind=ObjectKind.ANY, filter_names=None, all_=False): (source)

Undocumented

@testing.fixture
def get_multi_exp(self, connection): (source)

Undocumented

@testing.requires.table_reflection
def test_autoincrement_col(self, connection): (source)

test that 'autoincrement' is reflected according to sqla's policy. Don't mark this test as unsupported for any backend ! (technically it fails with MySQL InnoDB since "id" comes before "id2") A backend is better off not returning "autoincrement" at all, instead of potentially returning "False" for an auto-incrementing primary key column.

@testing.requires.schema_reflection
def test_dialect_initialize(self): (source)

Undocumented

@testing.combinations((False, False), (False, True, testing.requires.schemas), (True, False, testing.requires.view_reflection), (True, True, testing.requires.schemas+testing.requires.view_reflection), argnames='use_views,use_schema')
def test_get_columns(self, connection, use_views, use_schema): (source)

Undocumented

@testing.requires.comment_reflection
def test_get_comments(self, connection): (source)

Undocumented

@testing.requires.comment_reflection
@testing.requires.schemas
def test_get_comments_with_schema(self, connection): (source)

Undocumented

@testing.requires.schema_reflection
def test_get_default_schema_name(self, connection): (source)

Undocumented

@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
@testing.requires.foreign_key_constraint_reflection
def test_get_foreign_keys(self, connection, use_schema): (source)

Undocumented

@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
@testing.requires.index_reflection
def test_get_indexes(self, connection, use_schema): (source)

Undocumented

@testing.requires.cross_schema_fk_reflection
@testing.requires.schemas
def test_get_inter_schema_foreign_keys(self, connection): (source)

Undocumented

@testing.requires.check_constraint_reflection
@_multi_combination
def test_get_multi_check_constraints(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@_multi_combination
def test_get_multi_columns(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@testing.requires.foreign_key_constraint_reflection
@_multi_combination
def test_get_multi_foreign_keys(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@testing.requires.index_reflection
@_multi_combination
def test_get_multi_indexes(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@testing.requires.primary_key_constraint_reflection
@_multi_combination
def test_get_multi_pk_constraint(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@testing.requires.comment_reflection
@_multi_combination
def test_get_multi_table_comment(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@testing.requires.unique_constraint_reflection
@_multi_combination
def test_get_multi_unique_constraints(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@testing.combinations(('noncol_idx_test_nopk', 'noncol_idx_nopk'), ('noncol_idx_test_pk', 'noncol_idx_pk'), argnames='tname,ixname')
@testing.requires.index_reflection
@testing.requires.indexes_with_ascdesc
@testing.requires.reflect_indexes_with_ascdesc
def test_get_noncol_index(self, connection, tname, ixname): (source)

Undocumented

@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
@testing.requires.primary_key_constraint_reflection
def test_get_pk_constraint(self, connection, use_schema): (source)

Undocumented

@testing.requires.schema_reflection
def test_get_schema_names(self, connection): (source)

Undocumented

@testing.requires.schema_reflection
def test_get_schema_names_w_translate_map(self, connection): (source)

test #7300

@testing.combinations(None, ('foreign_key', testing.requires.foreign_key_constraint_reflection), argnames='order_by')
@testing.combinations((True, testing.requires.schemas), False, argnames='use_schema')
def test_get_table_names(self, connection, order_by, use_schema): (source)

Undocumented

@testing.combinations((True, testing.requires.schemas), (False), argnames='use_schema')
def test_get_table_options(self, use_schema): (source)

Undocumented

@testing.requires.temp_table_reflection
def test_get_temp_table_columns(self, connection): (source)

Undocumented

@testing.requires.temp_table_reflect_indexes
def test_get_temp_table_indexes(self, connection): (source)

Undocumented

@testing.requires.temp_table_names
def test_get_temp_table_names(self, connection): (source)

Undocumented

@testing.requires.temp_table_reflection
@testing.requires.unique_constraint_reflection
def test_get_temp_table_unique_constraints(self, connection): (source)

Undocumented

@testing.requires.temp_table_reflection
@testing.requires.view_column_reflection
@testing.requires.temporary_views
def test_get_temp_view_columns(self, connection): (source)

Undocumented

@testing.requires.view_reflection
@testing.requires.temporary_views
def test_get_temp_view_names(self, connection): (source)

Undocumented

@testing.combinations((True, testing.requires.schemas), (False), argnames='use_schema')
@testing.requires.unique_constraint_reflection
def test_get_unique_constraints(self, metadata, connection, use_schema): (source)

Undocumented

@testing.requires.view_reflection
@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
def test_get_view_definition(self, connection, use_schema): (source)

Undocumented

@testing.requires.view_reflection
def test_get_view_definition_does_not_exist(self, connection): (source)

Undocumented

@testing.combinations((True, testing.requires.schemas), False, argnames='use_schema')
def test_get_view_names(self, connection, use_schema): (source)

Undocumented

@testing.requires.schema_reflection
def test_has_schema(self, connection): (source)

Undocumented

@testing.requires.schema_reflection
def test_has_schema_w_translate_map(self, connection): (source)

Undocumented

@testing.combinations(True, False, argnames='use_schema')
@testing.combinations((True, testing.requires.views), False, argnames='views')
def test_metadata(self, connection, use_schema, views): (source)

Undocumented

@testing.combinations((True, testing.requires.schemas), False)
def test_multi_get_table_options(self, use_schema): (source)

Undocumented

@testing.requires.reflect_table_options
@_multi_combination
def test_multi_get_table_options_tables(self, get_multi_exp, schema, scope, kind, use_filter): (source)

Undocumented

@testing.combinations(('get_table_options', testing.requires.reflect_table_options), 'get_columns', ('get_pk_constraint', testing.requires.primary_key_constraint_reflection), ('get_foreign_keys', testing.requires.foreign_key_constraint_reflection), ('get_indexes', testing.requires.index_reflection), ('get_unique_constraints', testing.requires.unique_constraint_reflection), ('get_check_constraints', testing.requires.check_constraint_reflection), ('get_table_comment', testing.requires.comment_reflection), argnames='method')
def test_not_existing_table(self, method, connection): (source)

Undocumented

@testing.requires.temp_table_reflection
def test_reflect_table_temp_table(self, connection): (source)

Undocumented

@testing.requires.schema_reflection
@testing.requires.schema_create_delete
def test_schema_cache(self, connection): (source)

Undocumented

def test_unreflectable(self, connection): (source)

Undocumented

__backend__: bool = (source)

Undocumented

def _adjust_sort(self, result, expected, key): (source)

Undocumented

def _check_list(self, result, exp, req_keys=None, msg=None): (source)

Undocumented

def _check_table_dict(self, result, exp, req_keys=None, make_lists=False): (source)

Undocumented

def _resolve_kind(self, kind, tables, views, materialized): (source)

Undocumented

def _resolve_names(self, schema, scope, filter_names, values): (source)

Undocumented

def _resolve_views(self, views, materialized): (source)

Undocumented

def _test_get_comments(self, connection, schema=None): (source)

Undocumented

@property
_required_cc_keys = (source)

Undocumented

@property
_required_column_keys = (source)

Undocumented

@property
_required_fk_keys = (source)

Undocumented

@property
_required_index_keys = (source)

Undocumented

@property
_required_pk_keys = (source)

Undocumented

@property
_required_unique_cst_keys = (source)

Undocumented