MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/ddl.py:1348–1361  ·  view source on GitHub ↗
(
        self,
        dialect,
        connection,
        checkfirst=CheckFirst.NONE,
        tables=None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

1346
1347class SchemaGenerator(InvokeCreateDDLBase):
1348 def __init__(
1349 self,
1350 dialect,
1351 connection,
1352 checkfirst=CheckFirst.NONE,
1353 tables=None,
1354 **kwargs,
1355 ):
1356 super().__init__(connection, **kwargs)
1357 self.checkfirst = CheckFirst(checkfirst)
1358 self.tables = tables
1359 self.preparer = dialect.identifier_preparer
1360 self.dialect = dialect
1361 self.memo = {}
1362
1363 def _can_create_table(self, table):
1364 self.dialect.validate_identifier(table.name)

Callers

nothing calls this directly

Calls 2

CheckFirstClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected