MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_create_sequence

Method visit_create_sequence

lib/sqlalchemy/sql/compiler.py:7352–7363  ·  view source on GitHub ↗
(self, create, prefix=None, **kw)

Source from the content-addressed store, hash-verified

7350 return " ".join(text)
7351
7352 def visit_create_sequence(self, create, prefix=None, **kw):
7353 text = "CREATE SEQUENCE "
7354 if create.if_not_exists:
7355 text += "IF NOT EXISTS "
7356 text += self.preparer.format_sequence(create.element)
7357
7358 if prefix:
7359 text += prefix
7360 options = self.get_identity_options(create.element)
7361 if options:
7362 text += " " + options
7363 return text
7364
7365 def visit_drop_sequence(self, drop, **kw):
7366 text = "DROP SEQUENCE "

Callers

nothing calls this directly

Calls 2

get_identity_optionsMethod · 0.95
format_sequenceMethod · 0.80

Tested by

no test coverage detected