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

Method format_sequence

lib/sqlalchemy/sql/compiler.py:7857–7870  ·  view source on GitHub ↗
(
        self, sequence: schema.Sequence, use_schema: bool = True
    )

Source from the content-addressed store, hash-verified

7855 return collation_name
7856
7857 def format_sequence(
7858 self, sequence: schema.Sequence, use_schema: bool = True
7859 ) -> str:
7860 name = self.quote(sequence.name)
7861
7862 effective_schema = self.schema_for_object(sequence)
7863
7864 if (
7865 not self.omit_schema
7866 and use_schema
7867 and effective_schema is not None
7868 ):
7869 name = self.quote_schema(effective_schema) + "." + name
7870 return name
7871
7872 def format_label(
7873 self, label: Label[Any], name: Optional[str] = None

Callers 12

visit_sequenceMethod · 0.80
fire_sequenceMethod · 0.80
fire_sequenceMethod · 0.80
visit_sequenceMethod · 0.80
fire_sequenceMethod · 0.80
visit_sequenceMethod · 0.80
visit_sequenceMethod · 0.80
visit_create_sequenceMethod · 0.80
visit_drop_sequenceMethod · 0.80
test_formatMethod · 0.80
test_basicMethod · 0.80

Calls 3

quoteMethod · 0.95
quote_schemaMethod · 0.95
schema_for_objectMethod · 0.45

Tested by 2

test_formatMethod · 0.64
test_basicMethod · 0.64