# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
-sys.path.append(os.path.abspath('.'))
-sys.path.append(os.path.abspath('../../lib'))
+sys.path.insert(0, os.path.abspath('../../lib'))
+sys.path.insert(0, os.path.abspath('.'))
import sqlalchemy
.. autoclass:: Connectable
:members:
+ :undoc-members:
Result Objects
--------------
----------------------------
.. autoclass:: AssertionPool
- :members: __init__
+ :members:
:show-inheritance:
.. autoclass:: NullPool
- :members: __init__
+ :members:
:show-inheritance:
.. autoclass:: sqlalchemy.pool.Pool
:undoc-members:
:inherited-members:
- .. automethod:: __init__
-
.. autoclass:: sqlalchemy.pool.QueuePool
- :members: __init__
+ :members:
:show-inheritance:
.. autoclass:: SingletonThreadPool
- :members: __init__
+ :members:
:show-inheritance:
.. autoclass:: StaticPool
- :members: __init__
+ :members:
:show-inheritance:
Standard Types`_ and the other sections of this chapter.
.. autoclass:: String
- :members: __init__
:show-inheritance:
.. autoclass:: Unicode
- :members: __init__
:show-inheritance:
.. autoclass:: Text
- :members: __init__
:show-inheritance:
.. autoclass:: UnicodeText
- :members: __init__
:show-inheritance:
.. autoclass:: Integer
- :members: __init__
:show-inheritance:
.. autoclass:: SmallInteger
- :members: __init__
:show-inheritance:
.. autoclass:: Numeric
- :members: __init__
:show-inheritance:
.. autoclass:: Float
- :members: __init__
:show-inheritance:
.. autoclass:: DateTime
- :members: __init__
:show-inheritance:
.. autoclass:: Date
- :members: __init__
:show-inheritance:
.. autoclass:: Time
- :members: __init__
:show-inheritance:
.. autoclass:: Interval
- :members: __init__
:show-inheritance:
.. autoclass:: Boolean
- :members: __init__
:show-inheritance:
.. autoclass:: Binary
- :members: __init__
:show-inheritance:
.. autoclass:: PickleType
- :members: __init__
:show-inheritance:
on all databases.
.. autoclass:: INT
- :members: __init__
:show-inheritance:
.. autoclass:: sqlalchemy.types.INTEGER
- :members: __init__
:show-inheritance:
.. autoclass:: CHAR
- :members: __init__
:show-inheritance:
.. autoclass:: VARCHAR
- :members: __init__
:show-inheritance:
.. autoclass:: NCHAR
- :members: __init__
:show-inheritance:
.. autoclass:: TEXT
- :members: __init__
:show-inheritance:
.. autoclass:: FLOAT
- :members: __init__
:show-inheritance:
.. autoclass:: NUMERIC
- :members: __init__
:show-inheritance:
.. autoclass:: DECIMAL
- :members: __init__
:show-inheritance:
.. autoclass:: TIMESTAMP
- :members: __init__
:show-inheritance:
.. autoclass:: DATETIME
- :members: __init__
:show-inheritance:
.. autoclass:: CLOB
- :members: __init__
:show-inheritance:
.. autoclass:: BLOB
- :members: __init__
:show-inheritance:
.. autoclass:: BOOLEAN
- :members: __init__
:show-inheritance:
.. autoclass:: SMALLINT
- :members: __init__
:show-inheritance:
.. autoclass:: DATE
- :members: __init__
:show-inheritance:
.. autoclass:: TIME
- :members: __init__
:show-inheritance:
def __init__(self, creator, recycle=-1, echo=None, use_threadlocal=False,
reset_on_return=True, listeners=None):
- """Construct a Pool.
+ """
+ Construct a Pool.
:param creator: a callable function that returns a DB-API
connection object. The function will be called with
default, and also requires a singleton connection if a :memory: database
is being used.
- Options are the same as those of Pool, as well as:
+ Options are the same as those of :class:`Pool`, as well as:
- pool_size: 5
- The number of threads in which to maintain connections at once.
+ :param pool_size: The number of threads in which to maintain connections
+ at once. Defaults to five.
+
"""
def __init__(self, creator, pool_size=5, **params):
def __init__(self, creator, pool_size=5, max_overflow=10, timeout=30,
**params):
- """Construct a QueuePool.
+ """
+ Construct a QueuePool.
:param creator: a callable function that returns a DB-API
connection object. The function will be called with
"""A Pool of exactly one connection, used for all requests."""
def __init__(self, creator, **params):
- """Construct a StaticPool.
+ """
+ Construct a StaticPool.
:param creator: a callable function that returns a DB-API
connection object. The function will be called with
## TODO: modify this to handle an arbitrary connection count.
def __init__(self, creator, **params):
- """Construct an AssertionPool.
+ """
+ Construct an AssertionPool.
:param creator: a callable function that returns a DB-API
connection object. The function will be called with
"""
def __init__(self, length=None, convert_unicode=False, assert_unicode=None):
- """Create a string-holding type.
+ """
+ Create a string-holding type.
:param length: optional, a length for the column for use in
DDL statements. May be safely omitted if no ``CREATE
"""
def __init__(self, length=None, **kwargs):
- """Create a Unicode-converting String type.
+ """
+ Create a Unicode-converting String type.
:param length: optional, a length for the column for use in
DDL statements. May be safely omitted if no ``CREATE
"""A synonym for Text(convert_unicode=True, assert_unicode='warn')."""
def __init__(self, length=None, **kwargs):
- """Create a Unicode-converting Text type.
+ """
+ Create a Unicode-converting Text type.
:param length: optional, a length for the column for use in
DDL statements. May be safely omitted if no ``CREATE
"""
def __init__(self, precision=10, scale=2, asdecimal=True, length=None):
- """Construct a Numeric.
+ """
+ Construct a Numeric.
:param precision: the numeric precision for use in DDL ``CREATE TABLE``.
"""A type for ``float`` numbers."""
def __init__(self, precision=10, asdecimal=False, **kwargs):
- """Construct a Float.
+ """
+ Construct a Float.
:param precision: the numeric precision for use in DDL ``CREATE TABLE``.
"""
def __init__(self, length=None):
- """Construct a Binary type.
+ """
+ Construct a Binary type.
:param length: optional, a length for the column for use in
DDL statements. May be safely omitted if no ``CREATE
impl = Binary
def __init__(self, protocol=pickle.HIGHEST_PROTOCOL, pickler=None, mutable=True, comparator=None):
- """Construct a PickleType.
+ """
+ Construct a PickleType.
:param protocol: defaults to ``pickle.HIGHEST_PROTOCOL``.