__init__.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # sqlalchemy/__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 .sql import (
  8. alias,
  9. all_,
  10. and_,
  11. any_,
  12. asc,
  13. between,
  14. bindparam,
  15. case,
  16. cast,
  17. collate,
  18. column,
  19. delete,
  20. desc,
  21. distinct,
  22. except_,
  23. except_all,
  24. exists,
  25. extract,
  26. false,
  27. func,
  28. funcfilter,
  29. insert,
  30. intersect,
  31. intersect_all,
  32. join,
  33. lateral,
  34. literal,
  35. literal_column,
  36. modifier,
  37. not_,
  38. null,
  39. or_,
  40. outerjoin,
  41. outparam,
  42. over,
  43. select,
  44. subquery,
  45. table,
  46. tablesample,
  47. text,
  48. true,
  49. tuple_,
  50. type_coerce,
  51. union,
  52. union_all,
  53. update,
  54. within_group,
  55. )
  56. from .types import (
  57. ARRAY,
  58. BIGINT,
  59. BINARY,
  60. BLOB,
  61. BOOLEAN,
  62. BigInteger,
  63. Binary,
  64. Boolean,
  65. CHAR,
  66. CLOB,
  67. DATE,
  68. DATETIME,
  69. DECIMAL,
  70. Date,
  71. DateTime,
  72. Enum,
  73. FLOAT,
  74. Float,
  75. INT,
  76. INTEGER,
  77. Integer,
  78. Interval,
  79. JSON,
  80. LargeBinary,
  81. NCHAR,
  82. NVARCHAR,
  83. NUMERIC,
  84. Numeric,
  85. PickleType,
  86. REAL,
  87. SMALLINT,
  88. SmallInteger,
  89. String,
  90. TEXT,
  91. TIME,
  92. TIMESTAMP,
  93. Text,
  94. Time,
  95. TypeDecorator,
  96. Unicode,
  97. UnicodeText,
  98. VARBINARY,
  99. VARCHAR,
  100. )
  101. from .schema import (
  102. CheckConstraint,
  103. Column,
  104. ColumnDefault,
  105. Constraint,
  106. DefaultClause,
  107. FetchedValue,
  108. ForeignKey,
  109. ForeignKeyConstraint,
  110. Index,
  111. MetaData,
  112. PassiveDefault,
  113. PrimaryKeyConstraint,
  114. Sequence,
  115. Table,
  116. ThreadLocalMetaData,
  117. UniqueConstraint,
  118. DDL,
  119. BLANK_SCHEMA
  120. )
  121. from .inspection import inspect
  122. from .engine import create_engine, engine_from_config
  123. __version__ = '1.1.10'
  124. def __go(lcls):
  125. global __all__
  126. from . import events
  127. from . import util as _sa_util
  128. import inspect as _inspect
  129. __all__ = sorted(name for name, obj in lcls.items()
  130. if not (name.startswith('_') or _inspect.ismodule(obj)))
  131. _sa_util.dependencies.resolve_all("sqlalchemy")
  132. __go(locals())