Files
sqlalchemy/doc/build/dialects/oracle.rst
T
Mike Bayer be3c185fd4 - Added new datatype :class:.oracle.DATE, which is a subclass of
:class:`.DateTime`.  As Oracle has no "datetime" type per se,
it instead has only ``DATE``, it is appropriate here that the
``DATE`` type as present in the Oracle dialect be an instance of
:class:`.DateTime`.  This issue doesn't change anything as far as
the behavior of the type, as data conversion is handled by the
DBAPI in any case, however the improved subclass layout will help
the use cases of inspecting types for cross-database compatibility.
Also removed uppercase ``DATETIME`` from the Oracle dialect as this
type isn't functional in that context.  fixes #2987
2014-03-22 18:22:17 -04:00

65 lines
1.2 KiB
ReStructuredText

.. _oracle_toplevel:
Oracle
======
.. automodule:: sqlalchemy.dialects.oracle.base
Oracle Data Types
-------------------
As with all SQLAlchemy dialects, all UPPERCASE types that are known to be
valid with Oracle are importable from the top level dialect, whether
they originate from :mod:`sqlalchemy.types` or from the local dialect::
from sqlalchemy.dialects.oracle import \
BFILE, BLOB, CHAR, CLOB, DATE, \
DOUBLE_PRECISION, FLOAT, INTERVAL, LONG, NCLOB, \
NUMBER, NVARCHAR, NVARCHAR2, RAW, TIMESTAMP, VARCHAR, \
VARCHAR2
Types which are specific to Oracle, or have Oracle-specific
construction arguments, are as follows:
.. currentmodule:: sqlalchemy.dialects.oracle
.. autoclass:: BFILE
:members: __init__
.. autoclass:: DATE
:members: __init__
.. autoclass:: DOUBLE_PRECISION
:members: __init__
.. autoclass:: INTERVAL
:members: __init__
.. autoclass:: NCLOB
:members: __init__
.. autoclass:: NUMBER
:members: __init__
.. autoclass:: LONG
:members: __init__
.. autoclass:: RAW
:members: __init__
cx_Oracle
----------
.. automodule:: sqlalchemy.dialects.oracle.cx_oracle
zxjdbc
-------
.. automodule:: sqlalchemy.dialects.oracle.zxjdbc