MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _can_create_index

Method _can_create_index

lib/sqlalchemy/sql/ddl.py:933–942  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

931 )
932
933 def _can_create_index(self, index):
934 effective_schema = self.connection.schema_for_object(index.table)
935 if effective_schema:
936 self.dialect.validate_identifier(effective_schema)
937 return not self.checkfirst or not self.dialect.has_index(
938 self.connection,
939 index.table.name,
940 index.name,
941 schema=effective_schema,
942 )
943
944 def _can_create_sequence(self, sequence):
945 effective_schema = self.connection.schema_for_object(sequence)

Callers 1

visit_indexMethod · 0.95

Calls 3

schema_for_objectMethod · 0.45
validate_identifierMethod · 0.45
has_indexMethod · 0.45

Tested by

no test coverage detected