mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-31 21:08:36 -04:00
be3c185fd4
: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
65 lines
1.2 KiB
ReStructuredText
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
|