mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-17 22:22:13 -04:00
62d59088df
Added support for SQLite's json functionality via the new SQLite implementation for :class:`.sqltypes.JSON`, :class:`.sqlite.JSON`. The name used for the type is ``JSON``, following an example found at SQLite's own documentation. Pull request courtesy Ilja Everilä. Fixes: #3850 Change-Id: I3d2714fb8655343a99d13dc751b16b93d05d7dda Pull-request: https://github.com/zzzeek/sqlalchemy/pull/434
39 lines
835 B
ReStructuredText
39 lines
835 B
ReStructuredText
.. _sqlite_toplevel:
|
|
|
|
SQLite
|
|
======
|
|
|
|
.. automodule:: sqlalchemy.dialects.sqlite.base
|
|
|
|
SQLite Data Types
|
|
-----------------
|
|
|
|
As with all SQLAlchemy dialects, all UPPERCASE types that are known to be
|
|
valid with SQLite are importable from the top level dialect, whether
|
|
they originate from :mod:`sqlalchemy.types` or from the local dialect::
|
|
|
|
from sqlalchemy.dialects.sqlite import \
|
|
BLOB, BOOLEAN, CHAR, DATE, DATETIME, DECIMAL, FLOAT, \
|
|
INTEGER, NUMERIC, JSON, SMALLINT, TEXT, TIME, TIMESTAMP, \
|
|
VARCHAR
|
|
|
|
.. module:: sqlalchemy.dialects.sqlite
|
|
|
|
.. autoclass:: DATETIME
|
|
|
|
.. autoclass:: DATE
|
|
|
|
.. autoclass:: JSON
|
|
|
|
.. autoclass:: TIME
|
|
|
|
Pysqlite
|
|
--------
|
|
|
|
.. automodule:: sqlalchemy.dialects.sqlite.pysqlite
|
|
|
|
Pysqlcipher
|
|
-----------
|
|
|
|
.. automodule:: sqlalchemy.dialects.sqlite.pysqlcipher
|