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

Method _can_create_sequence

lib/sqlalchemy/sql/ddl.py:944–955  ·  view source on GitHub ↗
(self, sequence)

Source from the content-addressed store, hash-verified

942 )
943
944 def _can_create_sequence(self, sequence):
945 effective_schema = self.connection.schema_for_object(sequence)
946
947 return self.dialect.supports_sequences and (
948 (not self.dialect.sequences_optional or not sequence.optional)
949 and (
950 not self.checkfirst
951 or not self.dialect.has_sequence(
952 self.connection, sequence.name, schema=effective_schema
953 )
954 )
955 )
956
957 def visit_metadata(self, metadata):
958 if self.tables is not None:

Callers 2

visit_metadataMethod · 0.95
visit_sequenceMethod · 0.95

Calls 2

schema_for_objectMethod · 0.45
has_sequenceMethod · 0.45

Tested by

no test coverage detected