Package coprs :: Module helpers :: Class StringLiteral
[hide private]
[frames] | no frames]

Class StringLiteral

source code


Teach SA how to literalize various things.

Nested Classes [hide private]

Inherited from sqlalchemy.sql.sqltypes.Concatenable: Comparator, comparator_factory

Instance Methods [hide private]
 
literal_processor(self, dialect)
Return a conversion function for processing literal values that are to be rendered directly without using binds.
source code

Inherited from sqlalchemy.sql.sqltypes.String: __init__, bind_processor, get_dbapi_type, result_processor

Inherited from sqlalchemy.sql.sqltypes.String (private): _compiler_dispatch

Inherited from sqlalchemy.sql.type_api.TypeEngine: __repr__, __str__, adapt, bind_expression, coerce_compared_value, column_expression, compare_against_backend, compare_values, compile, copy_value, dialect_impl, with_variant

Inherited from sqlalchemy.sql.type_api.TypeEngine (private): _cached_bind_processor, _cached_literal_processor, _cached_result_processor, _compare_type_affinity, _default_dialect, _dialect_info, _gen_dialect_impl, _has_bind_expression, _has_column_expression, _type_affinity

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from sqlalchemy.sql.sqltypes.String: __visit_name__

Inherited from sqlalchemy.sql.type_api.TypeEngine: hashable

Inherited from sqlalchemy.sql.type_api.TypeEngine (private): _isnull, _sqla_type

Properties [hide private]

Inherited from sqlalchemy.sql.sqltypes.String: python_type

Inherited from object: __class__

Method Details [hide private]

literal_processor(self, dialect)

source code 

Return a conversion function for processing literal values that are to be rendered directly without using binds.

This function is used when the compiler makes use of the "literal_binds" flag, typically used in DDL generation as well as in certain scenarios where backends don't accept bound parameters.

.. versionadded:: 0.9.0

Overrides: sqlalchemy.sql.type_api.TypeEngine.literal_processor
(inherited documentation)