MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / format_table_seq

Method format_table_seq

lib/sqlalchemy/sql/compiler.py:8290–8305  ·  view source on GitHub ↗

Format table name and schema as a tuple.

(self, table, use_schema=True)

Source from the content-addressed store, hash-verified

8288 return name
8289
8290 def format_table_seq(self, table, use_schema=True):
8291 """Format table name and schema as a tuple."""
8292
8293 # Dialects with more levels in their fully qualified references
8294 # ('database', 'owner', etc.) could override this and return
8295 # a longer sequence.
8296
8297 effective_schema = self.schema_for_object(table)
8298
8299 if not self.omit_schema and use_schema and effective_schema:
8300 return (
8301 self.quote_schema(effective_schema),
8302 self.format_table(table, use_schema=False),
8303 )
8304 else:
8305 return (self.format_table(table, use_schema=False),)
8306
8307 @util.memoized_property
8308 def _r_identifiers(self):

Callers 1

visit_ddlMethod · 0.80

Calls 3

quote_schemaMethod · 0.95
format_tableMethod · 0.95
schema_for_objectMethod · 0.45

Tested by

no test coverage detected