__init__.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # postgresql/__init__.py
  2. # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
  3. # <see AUTHORS file>
  4. #
  5. # This module is part of SQLAlchemy and is released under
  6. # the MIT License: http://www.opensource.org/licenses/mit-license.php
  7. from . import base, psycopg2, pg8000, pypostgresql, pygresql, \
  8. zxjdbc, psycopg2cffi
  9. base.dialect = psycopg2.dialect
  10. from .base import \
  11. INTEGER, BIGINT, SMALLINT, VARCHAR, CHAR, TEXT, NUMERIC, FLOAT, REAL, \
  12. INET, CIDR, UUID, BIT, MACADDR, OID, DOUBLE_PRECISION, TIMESTAMP, TIME, \
  13. DATE, BYTEA, BOOLEAN, INTERVAL, ENUM, dialect, TSVECTOR, DropEnumType, \
  14. CreateEnumType
  15. from .hstore import HSTORE, hstore
  16. from .json import JSON, JSONB
  17. from .array import array, ARRAY, Any, All
  18. from .ext import aggregate_order_by, ExcludeConstraint, array_agg
  19. from .dml import insert, Insert
  20. from .ranges import INT4RANGE, INT8RANGE, NUMRANGE, DATERANGE, TSRANGE, \
  21. TSTZRANGE
  22. __all__ = (
  23. 'INTEGER', 'BIGINT', 'SMALLINT', 'VARCHAR', 'CHAR', 'TEXT', 'NUMERIC',
  24. 'FLOAT', 'REAL', 'INET', 'CIDR', 'UUID', 'BIT', 'MACADDR', 'OID',
  25. 'DOUBLE_PRECISION', 'TIMESTAMP', 'TIME', 'DATE', 'BYTEA', 'BOOLEAN',
  26. 'INTERVAL', 'ARRAY', 'ENUM', 'dialect', 'array', 'HSTORE',
  27. 'hstore', 'INT4RANGE', 'INT8RANGE', 'NUMRANGE', 'DATERANGE',
  28. 'TSRANGE', 'TSTZRANGE', 'json', 'JSON', 'JSONB', 'Any', 'All',
  29. 'DropEnumType', 'CreateEnumType', 'ExcludeConstraint',
  30. 'aggregate_order_by', 'array_agg', 'insert', 'Insert'
  31. )