Commit Graph

  • 527626a19a patched **kwargs enhancement for [ticket:361] Mike Bayer 2006-11-10 17:17:08 +00:00
  • 2466dca12d fix to query.count to use mapper-defined primary key cols instead of those of the table Mike Bayer 2006-11-10 15:57:58 +00:00
  • 4cbbf7725a - "delete-orphan" for a certain type can be set on more than one parent class; the instance is an "orphan" only if its not attached to *any* of those parents - better check for endless recursion in eagerloader.process_row Mike Bayer 2006-11-10 00:46:57 +00:00
  • 48a4d9a7eb create_args->connect_args Mike Bayer 2006-11-08 02:22:24 +00:00
  • 4a1a2fec80 fix: auto_identity_insert was not working with non-list insert parms Rick Morrison 2006-11-07 22:50:38 +00:00
  • 492f634aa9 removed 'redefine' from docstring Mike Bayer 2006-11-05 16:15:04 +00:00
  • ef48ddc503 - fix to subtle condition in topological sort where a node could appear twice, for [ticket:362] Mike Bayer 2006-11-04 06:11:21 +00:00
  • 0306822526 - improvement to single table inheritance to load full hierarchies beneath the target class Mike Bayer 2006-11-03 19:57:39 +00:00
  • 695f65db85 - added an assertion within the "cascade" step of ORM relationships to check that the class of object attached to a parent object is appropriate (i.e. if A.items stores B objects, raise an error if a C is appended to A.items) - new extension sqlalchemy.ext.associationproxy, provides transparent "association object" mappings. new example examples/association/proxied_association.py illustrates. - some example cleanup Mike Bayer 2006-11-03 01:17:28 +00:00
  • 1484549411 ExtensionOption needed to extend from MapperOption Mike Bayer 2006-11-02 23:58:20 +00:00
  • aeb8c429bf - implemented from_obj argument for query.count, improves count function on selectresults [ticket:325] Mike Bayer 2006-11-02 21:31:56 +00:00
  • 266f9f1ebe some example cleanup Mike Bayer 2006-11-01 17:14:50 +00:00
  • 256cdba4a0 added graphing example Mike Bayer 2006-11-01 16:51:46 +00:00
  • fcedb47e90 link to SqlSoup docs on the wiki Jonathan Ellis 2006-11-01 05:28:43 +00:00
  • ed33944f31 - fixed bug in circular dependency sorting at flush time; if object A contained a cyclical many-to-one relationship to object B, and object B was just attached to object A, *but* object B itself wasnt changed, the many-to-one synchronize of B's primary key attribute to A's foreign key attribute wouldnt occur. [ticket:360] Mike Bayer 2006-11-01 03:30:16 +00:00
  • 16b8f5f5b0 - fixed bug where eagerload() (nor lazyload()) option didn't properly instruct the Query whether or not to use "nesting" when producing a LIMIT query. Mike Bayer 2006-10-31 20:40:22 +00:00
  • f60151ebd3 - fixed direct execution of Compiled objects Mike Bayer 2006-10-31 15:58:51 +00:00
  • 0bcace0215 raise InvalidRequest when asked to perform DDL on non-Tables Jonathan Ellis 2006-10-31 05:33:44 +00:00
  • 02c3130c45 smarter name generation (handles self-referencing Select); new example of using Soup.map Jonathan Ellis 2006-10-31 05:24:30 +00:00
  • 9bb80a8f11 figured out how a Select can be in its own _froms list, changed assertion to just a continue Mike Bayer 2006-10-31 00:51:16 +00:00
  • b2c68fab83 - fix to postgres sequence quoting when using schemas Mike Bayer 2006-10-30 18:19:34 +00:00
  • 76597e533f fixed binary types test to use two binary files specifically for testing, instead of attempting to grab .pyc files Mike Bayer 2006-10-30 01:29:43 +00:00
  • 4273dd4cfe further fixes to sqlite booleans, weren't working as defaults Mike Bayer 2006-10-29 02:40:27 +00:00
  • 944f12bad0 added assertion to check that mappers only inherit from a mapper with the same "primary/non-primary" setting Mike Bayer 2006-10-29 02:12:05 +00:00
  • d231088323 added system return code to base runtest Mike Bayer 2006-10-27 03:53:39 +00:00
  • 00dfc7d268 converted imports to absolute Mike Bayer 2006-10-26 20:30:41 +00:00
  • ddb9136cf3 add join explanation for myisam Jonathan Ellis 2006-10-24 23:57:53 +00:00
  • 427ee509bb - MySQL catches exception on "describe" and reports as NoSuchTableError Mike Bayer 2006-10-24 22:53:36 +00:00
  • 5c1d4dbdae oops, removed pool debugging code Mike Bayer 2006-10-24 22:32:54 +00:00
  • b7d1d6deab - SingletonConnectionPool must use the "threadlocal" pooling behavior - the "delete" cascade will load in all child objects, if they were not loaded already. this can be turned off (i.e. the old behavior) by setting passive_deletes=True on a relation(). Mike Bayer 2006-10-24 22:19:31 +00:00
  • 6e565f7231 - some new Pool utility classes, updated docs - "use_threadlocal" on Pool defaults to False (same as create_engine) Mike Bayer 2006-10-24 21:32:13 +00:00
  • 2b2385ff82 log connection closes Mike Bayer 2006-10-24 15:07:23 +00:00
  • 87cda86f34 - eager query generation adjustment, [ticket:355] Mike Bayer 2006-10-24 14:08:11 +00:00
  • 6f385aaf39 fixed the example, because my brain goes blank when i work on that page, and fixed exceptions raised in sync.py Mike Bayer 2006-10-23 23:04:55 +00:00
  • 0c572b6e6b association mappings are now simpler, updated docs Mike Bayer 2006-10-23 22:55:41 +00:00
  • 025b5283c6 expired instances will get mapper extension's populate_instance behavior when reloaded, if present Mike Bayer 2006-10-23 21:25:01 +00:00
  • b489b32711 fully reST-ify doctests Jonathan Ellis 2006-10-23 19:22:25 +00:00
  • 32d872ddd8 set global 'sqlalchemy' log level to ERROR so it is insulated from other logging configs [ticket:353] Mike Bayer 2006-10-23 18:10:10 +00:00
  • 749ac647d7 integrated coverage.py into unittest suite Mike Bayer 2006-10-23 01:26:24 +00:00
  • a4537015b6 "circular mapping" is out, SA figures that stuff out for you Mike Bayer 2006-10-22 21:21:57 +00:00
  • 0be0131a44 fixed some imports, transaction hanging open rel_0_3_0 Mike Bayer 2006-10-22 19:10:44 +00:00
  • 066d8dc79c added string length to avoid LOB col type in oracle Mike Bayer 2006-10-22 05:50:03 +00:00
  • a610264fe9 updating the cycles test Mike Bayer 2006-10-22 05:45:43 +00:00
  • fe27b87023 updates to oracle added more ordering to schema collections for better predictability Mike Bayer 2006-10-22 05:02:11 +00:00
  • f7584a80f6 misc Mike Bayer 2006-10-22 03:13:50 +00:00
  • 7aa1c3461f docstring Mike Bayer 2006-10-22 03:07:01 +00:00
  • 49539ae4b8 . Mike Bayer 2006-10-22 02:06:43 +00:00
  • 015b86b148 more on non-threadsafeness Mike Bayer 2006-10-22 02:05:14 +00:00
  • 5db45df9cb docs about objects not being threadsafe Mike Bayer 2006-10-22 01:44:11 +00:00
  • 7bdbdd45b0 renamed Column/ColumnClause "hidden" to "_is_oid" Mike Bayer 2006-10-22 01:21:27 +00:00
  • 45b6c7d778 added __getattr__() proxy to TypeDecorator Mike Bayer 2006-10-22 00:42:43 +00:00
  • bc240be3f8 - attributes module and test suite moves underneath 'orm' package - fixed table comparison example in metadata.txt - docstrings all over the place - renamed mapper _getattrbycolumn/_setattrbycolumn to get_attr_by_column,set_attr_by_column - removed frommapper parameter from populate_instance(). the two operations can be performed separately - fix to examples/adjacencytree/byroot_tree.py to fire off lazy loaders upon load, to reduce query calling - added get(), get_by(), load() to MapperExtension - re-implemented ExtensionOption (called by extension() function) - redid _ExtensionCarrier to function dynamically based on __getattribute__ - added logging to attributes package, indicating the execution of a lazy callable - going to close [ticket:329] Mike Bayer 2006-10-22 00:24:26 +00:00
  • 97feb4dbee - docstring on polymorphic_mapping - applied Simon Wittber's ActiveMapper version_id_col patch for [ticket:348] Mike Bayer 2006-10-21 23:15:13 +00:00
  • c9dc3a334e re-implemented extension option Mike Bayer 2006-10-21 23:04:36 +00:00
  • 431149d542 tweak for Table.create() not having a return value Mike Bayer 2006-10-21 22:38:40 +00:00
  • 9497e73890 ugh, restored brackets Mike Bayer 2006-10-21 21:56:40 +00:00
  • b78c493702 docstrings Mike Bayer 2006-10-21 21:55:18 +00:00
  • 3323e3f5dc took out unused formatting Mike Bayer 2006-10-21 21:20:01 +00:00
  • 6049562de7 take those 2.4 generators out.... Mike Bayer 2006-10-21 21:10:28 +00:00
  • 8657f3bb9b merge of new documentation generation system Mike Bayer 2006-10-21 20:57:10 +00:00
  • f2b58b7977 some docstring stuff Mike Bayer 2006-10-20 22:45:55 +00:00
  • 892a1ebcb8 fixed pg reflection of timezones Mike Bayer 2006-10-20 20:49:16 +00:00
  • 705ee2cfa3 got linking of classes to work. but what a mess the doc code is now. Mike Bayer 2006-10-20 18:46:26 +00:00
  • da8c6c312a more doc Mike Bayer 2006-10-20 15:50:26 +00:00
  • 9d146d7e64 dev Mike Bayer 2006-10-20 15:38:31 +00:00
  • a941dff48f fix for sqlite refection of names with weird quotes around them in the DDL which seem to hang around Mike Bayer 2006-10-19 23:01:14 +00:00
  • 6a38b502e0 - cleanup to the last commit - added contains_eager() MapperOption, used in conjunction with instances() to specify properties that should be eagerly loaded from the result set, using their plain column names by default, or translated given an custom row-translation function. [ticket:347]. Mike Bayer 2006-10-19 07:20:52 +00:00
  • 2bef6699d3 progress on [ticket:329] Mike Bayer 2006-10-19 07:02:04 +00:00
  • 3f5f5ae4fa various huge fixes from [ticket:330], thanks to Lele Gaifax Mike Bayer 2006-10-19 05:03:01 +00:00
  • 987bdd45e7 fixed __repr__ style to be inline with python style guide [ticket:341] Mike Bayer 2006-10-19 04:55:34 +00:00
  • 0d75e5961c - [ticket:346], session closing the connection on flush - added unicode assertion for sqlite Mike Bayer 2006-10-19 02:52:31 +00:00
  • 4078c7606f if type is None it will be propigated from a ForeignKey Mike Bayer 2006-10-17 18:29:25 +00:00
  • 0a1b25606d typo Mike Bayer 2006-10-17 18:12:00 +00:00
  • 4d2be119f0 synonym does not create the proxying behavior unless the flag 'proxy=True' is set up Mike Bayer 2006-10-17 18:11:21 +00:00
  • 9e74371d53 restored "synonym" property Mike Bayer 2006-10-17 18:05:32 +00:00
  • a5c3ec3620 lazy clause generation can handle comparisons of column-containing expressions such as functions, within a limited scope Mike Bayer 2006-10-17 11:39:53 +00:00
  • 4afd2a555e ok, TableClause should be public Mike Bayer 2006-10-17 02:09:31 +00:00
  • 180d374199 reorganizing classnames a bit, flagging "private" classes in the sql package, getting the generated docs to look a little nicer. fixes to extensions, sqlsoup etc. to be compatible with recent API tweaks Mike Bayer 2006-10-17 02:03:00 +00:00
  • bc698d778d latest markdown, added "bold link" style to doc generator Mike Bayer 2006-10-17 01:23:38 +00:00
  • 506b594f52 - added "column_prefix=None" argument to mapper; prepends the given string (typically '_') to column-based attributes automatically set up from the mapper's Table Mike Bayer 2006-10-16 23:34:23 +00:00
  • 61de5d0c9a quote function names Mike Bayer 2006-10-16 18:16:57 +00:00
  • 3bb71bdd2d strings and unicodes are compared via == rather than 'is'. TypeDecorator uses underlying impl for mutator/comparison functions by default Mike Bayer 2006-10-16 17:20:15 +00:00
  • 433ed0fbdb docstrings etc Mike Bayer 2006-10-16 02:26:45 +00:00
  • 738a210812 apparently re.S makes things go b00m Mike Bayer 2006-10-16 01:32:50 +00:00
  • 8e1cec1fce tweaks... Mike Bayer 2006-10-16 00:57:29 +00:00
  • 819ef543b3 de-cruftification Mike Bayer 2006-10-16 00:37:53 +00:00
  • 0eb3b4ce93 doc tweaks Mike Bayer 2006-10-15 23:40:33 +00:00
  • add4f77eb4 dev Mike Bayer 2006-10-15 23:10:37 +00:00
  • 866e1fb059 doc stuff regarding engine strategies Mike Bayer 2006-10-15 23:05:07 +00:00
  • 7e5e985c0e - ForeignKey(Constraint) supports "use_alter=True", to create/drop a foreign key via ALTER. this allows circular foreign key relationships to be set up. Mike Bayer 2006-10-15 00:07:06 +00:00
  • 6b40f50b87 fixup of the tutorial, doc tester with the new logging stuff Mike Bayer 2006-10-14 22:22:53 +00:00
  • 8340006dd7 - a fair amount of cleanup to the schema package, removal of ambiguous methods, methods that are no longer needed. slightly more constrained useage, greater emphasis on explicitness. - table_iterator signature fixup, includes fix for [ticket:288] - the "primary_key" attribute of Table and other selectables becomes a setlike ColumnCollection object; is no longer ordered or numerically indexed. a comparison clause between two pks that are derived from the same underlying tables (i.e. such as two Alias objects) can be generated via table1.primary_key==table2.primary_key - append_item() methods removed from Table and Column; preferably construct Table/Column/related objects inline, but if needed use append_column(), append_foreign_key(), append_constraint(), etc. - table.create() no longer returns the Table object, instead has no return value. the usual case is that tables are created via metadata, which is preferable since it will handle table dependencies. - added UniqueConstraint (goes at Table level), CheckConstraint (goes at Table or Column level) fixes [ticket:217] - index=False/unique=True on Column now creates a UniqueConstraint, index=True/unique=False creates a plain Index, index=True/unique=True on Column creates a unique Index. 'index' and 'unique' keyword arguments to column are now boolean only; for explcit names and groupings of indexes or unique constraints, use the UniqueConstraint/Index constructs explicitly. - relationship of Metadata/Table/SchemaGenerator/Dropper has been improved so that the schemavisitor receives the metadata object for greater control over groupings of creates/drops. - added "use_alter" argument to ForeignKey, ForeignKeyConstraint, but it doesnt do anything yet. will utilize new generator/dropper behavior to implement. Mike Bayer 2006-10-14 21:58:04 +00:00
  • 5bb47440e0 a simplification to syncrule generation, which also allows more flexible configuration of which columns are to be involved in the synchronization via foreignkey property. foreignkey param is a little more important now and should have its role clarified particularly for self-referential mappers. Mike Bayer 2006-10-14 07:57:12 +00:00
  • b7f8ca0555 make OrderedDict consructor, update more dict-like Jonathan Ellis 2006-10-14 03:41:36 +00:00
  • 4452519c7f - remove spurious semicomma from Firebird SQL statement (Lele Gaifax) Mike Bayer 2006-10-13 16:58:55 +00:00
  • 34007aa83b - sync checks destination column for primary key status, will not set it to None in that case - dependency non-passively loads child items for many-to-one post update check Mike Bayer 2006-10-13 16:38:21 +00:00
  • 5193dadc83 added 'ntext' reflected type Mike Bayer 2006-10-13 02:25:45 +00:00
  • 50ec8f00e6 some cleanup submitted by Lele Galifax Mike Bayer 2006-10-13 02:02:25 +00:00
  • 110846f601 added docstrings for url, added to compiled documentation Mike Bayer 2006-10-12 22:12:39 +00:00
  • 475085fd1e some logging tweaks....its a little squirrely Mike Bayer 2006-10-12 18:01:11 +00:00