MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _can_create_sequence

Method _can_create_sequence

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

Source from the content-addressed store, hash-verified

1391 )
1392
1393 def _can_create_sequence(self, sequence):
1394 effective_schema = self.connection.schema_for_object(sequence)
1395
1396 return self.dialect.supports_sequences and (
1397 (not self.dialect.sequences_optional or not sequence.optional)
1398 and (
1399 not self.checkfirst & CheckFirst.SEQUENCES
1400 or not self.dialect.has_sequence(
1401 self.connection, sequence.name, schema=effective_schema
1402 )
1403 )
1404 )
1405
1406 def visit_metadata(self, metadata):
1407 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