Handle quoting and case-folding of identifiers based on options.
|
__init__(self,
dialect,
initial_quote=' " ' ,
final_quote=None,
escape_quote=' " ' ,
omit_schema=False)
Construct a new ``IdentifierPreparer`` object. |
|
|
|
|
|
|
|
_requires_quotes(self,
value)
Return True if the given identifier requires quoting. |
|
|
|
|
|
format_alias(self,
alias,
name=None) |
|
|
|
format_column(self,
column,
use_table=False,
name=None,
table_name=None)
Prepare a quoted column name. |
|
|
|
format_constraint(self,
constraint) |
|
|
|
format_label(self,
label,
name=None) |
|
|
|
format_savepoint(self,
savepoint,
name=None) |
|
|
|
format_schema(self,
name,
quote=None)
Prepare a quoted schema name. |
|
|
|
format_sequence(self,
sequence,
use_schema=True) |
|
|
|
format_table(self,
table,
use_schema=True,
name=None)
Prepare a quoted table and schema name. |
|
|
|
format_table_seq(self,
table,
use_schema=True)
Format table name and schema as a tuple. |
|
|
|
quote(self,
ident,
force=None)
Conditionally quote an identifier. |
|
|
|
|
|
quote_schema(self,
schema,
force=None)
Conditionally quote a schema. |
|
|
|
unformat_identifiers(self,
identifiers)
Unpack 'schema.table.column'-like strings into components. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|