MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / format_sequence

Method format_sequence

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

Source from the content-addressed store, hash-verified

8092 return collation_name
8093
8094 def format_sequence(
8095 self, sequence: schema.Sequence, use_schema: bool = True
8096 ) -> str:
8097 name = self.quote(sequence.name)
8098
8099 effective_schema = self.schema_for_object(sequence)
8100
8101 if (
8102 not self.omit_schema
8103 and use_schema
8104 and effective_schema is not None
8105 ):
8106 name = self.quote_schema(effective_schema) + "." + name
8107 return name
8108
8109 def format_label(
8110 self, label: Label[Any], name: Optional[str] = None

Callers 13

visit_sequenceMethod · 0.80
fire_sequenceMethod · 0.80
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

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