summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/ddl.py
Commit message (Collapse)AuthorAgeFilesLines
* - A large refactoring of the ``sqlalchemy.sql`` package has reorganizedMike Bayer2013-08-121-193/+0
| | | | | | | | | | | | | | | | | | | | | | the import structure of many core modules. ``sqlalchemy.schema`` and ``sqlalchemy.types`` remain in the top-level package, but are now just lists of names that pull from within ``sqlalchemy.sql``. Their implementations are now broken out among ``sqlalchemy.sql.type_api``, ``sqlalchemy.sql.sqltypes``, ``sqlalchemy.sql.schema`` and ``sqlalchemy.sql.ddl``, the last of which was moved from ``sqlalchemy.engine``. ``sqlalchemy.sql.expression`` is also a namespace now which pulls implementations mostly from ``sqlalchemy.sql.elements``, ``sqlalchemy.sql.selectable``, and ``sqlalchemy.sql.dml``. Most of the "factory" functions used to create SQL expression objects have been moved to classmethods or constructors, which are exposed in ``sqlalchemy.sql.expression`` using a programmatic system. Care has been taken such that all the original import namespaces remain intact and there should be no impact on any existing applications. The rationale here was to break out these very large modules into smaller ones, provide more manageable lists of function names, to greatly reduce "import cycles" and clarify the up-front importing of names, and to remove the need for redundant functions and documentation throughout the expression package.
* plugging awayMike Bayer2013-04-271-2/+2
|
* - the raw 2to3 runMike Bayer2013-04-271-4/+4
| | | | - went through examples/ and cleaned out excess list() calls
* - :meth:`.MetaData.create_all` and :meth:`.MetaData.drop_all` willMike Bayer2013-03-021-3/+3
| | | | | | | | | | now accommodate an empty list as an instruction to not create/drop any items, rather than ignoring the collection. [ticket:2664]. This is a behavioral change and extra notes to the changelog and migration document have been added. - create a new test suite for exercising codepaths in engine/ddl.py
* cleanupMike Bayer2013-03-021-8/+8
|
* happy new year (see #2645)Diana Clarke2013-01-011-1/+1
|
* just a pep8 pass of lib/sqlalchemy/engine/Diana Clarke2012-11-191-14/+25
|
* more import cleanupsMike Bayer2012-08-071-2/+2
|
* -whitespace bonanza, contdMike Bayer2012-07-281-11/+11
|
* - [bug] Postgresql dialect memoizes that an ENUM of aMike Bayer2011-10-291-8/+18
| | | | | | | | | particular name was processed during a create/drop sequence. This allows a create/drop sequence to work without any calls to "checkfirst", and also means with "checkfirst" turned on it only needs to check for the ENUM once. [ticket:2311]
* - adjust the previous checkin a bit. need to transfer sequences over from ↵Mike Bayer2011-03-231-2/+2
| | | | | | | | | | pickle even if they are *not* restated. its necessary here to do a "replacement" scheme when an incoming sequence replaces the previous. Theoretically we could do what Table does here, i.e. use a singleton constructor, but this is heavyhanded. The most recent sequence placed in is the winner is likely the most expected behavior.
* - The Sequence() construct, when passed a MetaData()Mike Bayer2011-02-131-30/+72
| | | | | | | object via its 'metadata' argument, will be included in CREATE/DROP statements within metadata.create_all() and metadata.drop_all(), including "checkfirst" logic. [ticket:2055]
* - whitespace removal bonanzaMike Bayer2011-01-021-7/+7
|
* - clean up copyright, update for 2011, stamp every file withMike Bayer2011-01-021-1/+1
| | | | | a consistent tag - AUTHORS file
* - removes the "on_" prefix.Mike Bayer2010-12-301-8/+8
|
* doh, forgot about ddl events. need some work with the pickling.Mike Bayer2010-08-311-21/+17
|
* - Table.create() and Table.drop() no longer apply metadata-Mike Bayer2010-04-161-4/+10
| | | | level create/drop events. [ticket:1771]
* happy new yearMike Bayer2010-01-071-1/+1
|
* - Corrected the "has_sequence" query to take current schema,Mike Bayer2009-10-211-2/+2
| | | | | or explicit sequence-stated schema, into account. [ticket:1576]
* merge 0.6 series to trunk.Mike Bayer2009-08-061-0/+128