summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
Commit message (Collapse)AuthorAgeFilesLines
...
* - re-documented Table and Column constructors, fixed case sensitivity ↵Mike Bayer2008-12-071-167/+172
| | | | | | | description [ticket:1231] - turned on autoclass_content="both". Need to specify __init__ docstring with a newline after the """. - other docs
* - merged -r5338:5429 of sphinx branch.Mike Bayer2008-12-061-10/+8
| | | | | | | | | | | | | - Documentation has been converted to Sphinx. In particular, the generated API documentation has been constructed into a full blown "API Reference" section which organizes editorial documentation combined with generated docstrings. Cross linking between sections and API docs are vastly improved, a javascript-powered search feature is provided, and a full index of all classes, functions and members is provided.
* - Using the same ForeignKey object repeatedlyMike Bayer2008-12-031-0/+2
| | | | | raises an error instead of silently failing later. [ticket:1238]
* - Tickets [ticket:1200].Mike Bayer2008-11-221-5/+16
| | | | | | | | | | | | | | | | - Added note about create_session() defaults. - Added section about metadata.reflect(). - Updated `TypeDecorator` section. - Rewrote the "threadlocal" strategy section of the docs due to recent confusion over this feature. - ordered the init arguments in the docs for sessionmaker(). - other edits
* the @memoized_property fairy pays a visitMike Bayer2008-11-071-55/+52
|
* - Repaired the table.tometadata() method so that a passed-inMike Bayer2008-11-071-16/+18
| | | | schema argument is propigated to ForeignKey constructs.
* Added documentation for the MetaData.sorted_tables() method.Michael Trier2008-10-291-0/+3
|
* Corrected method documentation for MetaData.drop_all().Michael Trier2008-10-291-1/+1
|
* - moved _FigureVisitName into visitiors.VisitorType, added Visitor base ↵Mike Bayer2008-10-251-3/+3
| | | | | | | class to reduce dependencies - implemented _generative decorator for select/update/insert/delete constructs - other minutiae
* - added NoReferencedColumnError, common base class of NoReferenceErrorMike Bayer2008-10-211-1/+1
| | | | | | - relation() won't hide unrelated ForeignKey errors inside of the "please specify primaryjoin" message when determining join condition.
* - 0.5.0rc3, dohMike Bayer2008-10-181-16/+7
| | | | | | | | | | | | - The internal notion of an "OID" or "ROWID" column has been removed. It's basically not used by any dialect, and the possibility of its usage with psycopg2's cursor.lastrowid is basically gone now that INSERT..RETURNING is available. - Removed "default_order_by()" method on all FromClause objects. - profile/compile/select test is 8 function calls over on buildbot 2.4 for some reason, will adjust after checking the results of this commit
* - "not equals" comparisons of simple many-to-one relationMike Bayer2008-10-181-3/+3
| | | | | | | | | | | | | | | to an instance will not drop into an EXISTS clause and will compare foreign key columns instead. - removed not-really-working use cases of comparing a collection to an iterable. Use contains() to test for collection membership. - Further simplified SELECT compilation and its relationship to result row processing. - Direct execution of a union() construct will properly set up result-row processing. [ticket:1194]
* - added a few more assertions for [ticket:1165]Mike Bayer2008-10-041-0/+2
| | | | - removed non-2.5 partial.keywords, partial.name, etc., not sure what those are getting us here
* Allowed column types to be callables. Fixes #1165.Michael Trier2008-10-041-3/+7
|
* - fixed a bug in declarative test which was looking for old version of historyMike Bayer2008-08-191-3/+12
| | | | | | | | | | - Added "sorted_tables" accessor to MetaData, which returns Table objects sorted in order of dependency as a list. This deprecates the MetaData.table_iterator() method. The "reverse=False" keyword argument has also been removed from util.sort_tables(); use the Python 'reversed' function to reverse the results. [ticket:1033]
* - Spiffed up the deprecated decorators & @flipped 'em up topJason Kirtland2008-07-161-8/+4
|
* - Removed 2.3 set emulations/enhancements.Jason Kirtland2008-07-151-6/+6
| | | | (sets.Set-based collections & DB-API returns still work.)
* And thus ends support for Python 2.3.Jason Kirtland2008-07-151-6/+7
|
* Added prefixes option to that accepts a list of string to insert after ↵Michael Trier2008-07-051-0/+6
| | | | CREATE in the CREATE TABLE statement. Closes #1075.
* Corrected a reference to alt_schema_2 and fixed a docstring indentation for ↵Michael Trier2008-07-031-8/+8
| | | | Table.
* simplified _get_colspecGaëtan de Menten2008-07-021-5/+1
|
* Don't blat Table.quote= when resolving foreign keys.Jason Kirtland2008-05-151-6/+12
|
* Columns now have default= and server_default=. PassiveDefault fades away.Jason Kirtland2008-05-141-23/+93
|
* add target_fullname as a public property for _get_colspecGaëtan de Menten2008-05-091-0/+2
|
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-67/+77
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* doc update on quoteMike Bayer2008-05-081-10/+9
|
* Added missing argument check on CheckConstraintJason Kirtland2008-05-061-1/+4
|
* - Column.copy() respects the value of "autoincrement",Mike Bayer2008-05-051-1/+1
| | | | fixes usage with Migrate [ticket:1021]
* - fixed reentrant mapper compile hang whenMike Bayer2008-05-021-0/+3
| | | | | a declared attribute is used within ForeignKey, ie. ForeignKey(MyOtherClass.someattribute)
* - an unfortunate naming conflictMike Bayer2008-05-021-1/+1
| | | | - needed sql import on and()
* - factored out the logic used by Join to create its join conditionMike Bayer2008-05-021-1/+1
| | | | | | | - With declarative, joined table inheritance mappers use a slightly relaxed function to create the "inherit condition" to the parent table, so that other foreign keys to not-yet-declared Table objects don't trigger an error.
* typoGaëtan de Menten2008-04-251-1/+1
|
* factored down exportable_columns/flatten_cols/proxy_column/oid_etc_yada down ↵Mike Bayer2008-04-041-5/+0
| | | | to a single, streamlined "_populate_column_collection" method called for all selectables
* - merged sync_simplify branchMike Bayer2008-04-041-1/+1
| | | | | | | | | | | | | | | | - The methodology behind "primaryjoin"/"secondaryjoin" has been refactored. Behavior should be slightly more intelligent, primarily in terms of error messages which have been pared down to be more readable. In a slight number of scenarios it can better resolve the correct foreign key than before. - moved collections unit test from relationships.py to collection.py - PropertyLoader now has "synchronize_pairs" and "equated_pairs" collections which allow easy access to the source/destination parent/child relation between columns (might change names) - factored out ClauseSynchronizer (finally) - added many more tests for priamryjoin/secondaryjoin error checks
* - Added PendingDeprecationWarning supportJason Kirtland2008-03-291-2/+2
| | | | - Deprecation decorator is now a real decorator
* - the "owner" keyword on Table is now deprecated, and isMike Bayer2008-03-221-14/+12
| | | | | | | | | | | | | | | | | | | | exactly synonymous with the "schema" keyword. Tables can now be reflected with alternate "owner" attributes, explicitly stated on the Table object or not using "schema". - all of the "magic" searching for synonyms, DBLINKs etc. during table reflection are disabled by default unless you specify "oracle_resolve_synonyms=True" on the Table object. Resolving synonyms necessarily leads to some messy guessing which we'd rather leave off by default. When the flag is set, tables and related tables will be resolved against synonyms in all cases, meaning if a synonym exists for a particular table, reflection will use it when reflecting related tables. This is stickier behavior than before which is why it's off by default.
* - Column._set_parent will complete the key==name contract for instances ↵Jason Kirtland2008-03-181-3/+9
| | | | constructed anonymously
* - 'name' is no longer a require constructor argument for Column(). It (and ↵Jason Kirtland2008-03-181-1/+23
| | | | .key) may now be deferred until the Column is added to a Table.
* - fixed missing import [ticket:989]Jason Kirtland2008-03-121-3/+6
|
* - constraint constructor docstring fiestaJason Kirtland2008-03-051-13/+176
|
* - More docs for r4223Jason Kirtland2008-03-041-2/+9
|
* - Tweaked error messaging for unbound DDL().execute()Jason Kirtland2008-03-041-1/+1
|
* - Gave DDL() statements the same .bind treatment as the DML ones in r4220Jason Kirtland2008-03-041-5/+33
|
* - whitespace/docstring/linewrap freakoutJason Kirtland2008-03-041-258/+288
|
* fixing recent schema.py changes to work with oracle 'owner' attributerel_0_4_3Mike Bayer2008-02-141-3/+9
|
* - Table columns and constraints can be overridden on aMike Bayer2008-02-101-21/+49
| | | | | | | | an existing table (such as a table that was already reflected) using the 'useexisting=True' flag, which now takes into account the arguments passed along with it. - fixed one element of [ticket:910] - refactored reflection test
* - Added deferrability support to constraintsJason Kirtland2008-02-081-9/+29
|
* - Added free-form `DDL` statements, can be executed standalone or tied to ↵Jason Kirtland2008-02-051-55/+329
| | | | | | the DDL create/drop lifecycle of Tables and MetaData. [ticket:903] - Added DDL event hooks, triggers callables before and after create / drop.
* - ColumnDefault callables can now be any kind of compliant callable, ↵Jason Kirtland2008-02-041-16/+34
| | | | previously only actual functions were allowed.
* - Friendlier exception messages for unbound, implicit executionJason Kirtland2008-01-311-2/+18
| | | | - Implicit binding failures now raise UnboundExecutionError