MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / visit_identity_column

Method visit_identity_column

lib/sqlalchemy/sql/compiler.py:7609–7616  ·  view source on GitHub ↗
(self, identity, **kw)

Source from the content-addressed store, hash-verified

7607 return text
7608
7609 def visit_identity_column(self, identity, **kw):
7610 text = "GENERATED %s AS IDENTITY" % (
7611 "ALWAYS" if identity.always else "BY DEFAULT",
7612 )
7613 options = self.get_identity_options(identity)
7614 if options:
7615 text += " (%s)" % options
7616 return text
7617
7618
7619class GenericTypeCompiler(TypeCompiler):

Callers

nothing calls this directly

Calls 1

get_identity_optionsMethod · 0.95

Tested by

no test coverage detected