class JSONB(JSON):
"""Represent the PostgreSQL JSONB type.
- The :class:`_postgresql.JSONB` type stores arbitrary JSONB format data, e.
- g.::
+ The :class:`_postgresql.JSONB` type stores arbitrary JSONB format data,
+ e.g.::
data_table = Table('data_table', metadata,
Column('id', Integer, primary_key=True),
)
The :class:`_postgresql.JSONB` type includes all operations provided by
- :class:`_types.JSON`, including the same behaviors for indexing operations
- .
+ :class:`_types.JSON`, including the same behaviors for indexing
+ operations.
It also adds additional operators specific to JSONB, including
:meth:`.JSONB.Comparator.has_key`, :meth:`.JSONB.Comparator.has_all`,
:meth:`.JSONB.Comparator.has_any`, :meth:`.JSONB.Comparator.contains`,
return "Engine(%r)" % self.url
def dispose(self):
- """Dispose of the connection pool used by this :class:`_engine.Engine`
- .
+ """Dispose of the connection pool used by this
+ :class:`_engine.Engine`.
This has the effect of fully closing all **currently checked in**
database connections. Connections that are still checked out
.. versionadded: 1.4
- :param result: :class:`_engine.CursorResult` generated by the execution
- .
+ :param result: :class:`_engine.CursorResult` generated by the
+ execution.
"""
string using :meth:`.DDLElement.compile`.
.. versionadded:: 1.4 - the :func:`.create_mock_engine` function replaces
- the previous "mock" engine strategy used with :func:`_sa.create_engine`
- .
+ the previous "mock" engine strategy used with
+ :func:`_sa.create_engine`.
.. seealso::
.. note:: The :meth:`_query.Query.with_labels` method *only* applies
the output of :attr:`_query.Query.statement`, and *not* to any of
- the result-row invoking systems of :class:`_query.Query` itself, e.
- g.
+ the result-row invoking systems of :class:`_query.Query` itself,
+ e.g.
:meth:`_query.Query.first`, :meth:`_query.Query.all`, etc.
To execute
a query using :meth:`_query.Query.with_labels`, invoke the
def bind_mapper(self, mapper, bind):
"""Associate a :class:`_orm.Mapper` or arbitrary Python class with a
- "bind", e.g. an :class:`_engine.Engine` or :class:`_engine.Connection`
- .
+ "bind", e.g. an :class:`_engine.Engine` or
+ :class:`_engine.Connection`.
The given entity is added to a lookup used by the
:meth:`.Session.get_bind` method.
ORM-mapped in this case.
:param element: element to be aliased. Is normally a mapped class,
- but for convenience can also be a :class:`_expression.FromClause` element
- .
+ but for convenience can also be a :class:`_expression.FromClause`
+ element.
:param alias: Optional selectable unit to map the element to. This is
usually used to link the object to a subquery, and should be an aliased
"""
dp_table_hint_list = symbol("TH")
- """Visit the ``_hints`` collection of a :class:`_expression.Select` object
- .
+ """Visit the ``_hints`` collection of a :class:`_expression.Select`
+ object.
"""