schema.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # schema.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. """Compatibility namespace for sqlalchemy.sql.schema and related.
  8. """
  9. from .sql.base import (
  10. SchemaVisitor
  11. )
  12. from .sql.schema import (
  13. BLANK_SCHEMA,
  14. CheckConstraint,
  15. Column,
  16. ColumnDefault,
  17. Constraint,
  18. DefaultClause,
  19. DefaultGenerator,
  20. FetchedValue,
  21. ForeignKey,
  22. ForeignKeyConstraint,
  23. Index,
  24. MetaData,
  25. PassiveDefault,
  26. PrimaryKeyConstraint,
  27. SchemaItem,
  28. Sequence,
  29. Table,
  30. ThreadLocalMetaData,
  31. UniqueConstraint,
  32. _get_table_key,
  33. ColumnCollectionConstraint,
  34. ColumnCollectionMixin
  35. )
  36. from .sql.naming import conv
  37. from .sql.ddl import (
  38. DDL,
  39. CreateTable,
  40. DropTable,
  41. CreateSequence,
  42. DropSequence,
  43. CreateIndex,
  44. DropIndex,
  45. CreateSchema,
  46. DropSchema,
  47. _DropView,
  48. CreateColumn,
  49. AddConstraint,
  50. DropConstraint,
  51. DDLBase,
  52. DDLElement,
  53. _CreateDropBase,
  54. _DDLCompiles,
  55. sort_tables,
  56. sort_tables_and_constraints
  57. )