Commit Graph

  • aadd46c5fd fixed many-to-many example, which was utterly incorrect in many ways Mike Bayer 2006-02-26 00:04:43 +00:00
  • fdf9292241 Refactored ProxyEngine into BaseProxyEngine and ProxyEngine. Also added an AutoConnectProxyEngine to late bind to a particular dburi. I ran the proxy_engine test, however, I don't have postgresql installed so not all tests worked. Also, I don't have an WSGI package installed to run the wsgi tests. jeff 2006-02-25 17:50:46 +00:00
  • 4b08fe4dd4 clauseelement.compile() totally works without an engine Mike Bayer 2006-02-25 07:22:01 +00:00
  • 72dd2b08be merged sql_rearrangement branch , refactors sql package to work standalone with clause elements including tables and columns, schema package deals with "physical" representations Mike Bayer 2006-02-25 07:12:50 +00:00
  • 5b81c1a2d0 tentative fix for oracle row_number over syntax Mike Bayer 2006-02-24 17:12:02 +00:00
  • 49e3948d5d update Mike Bayer 2006-02-24 17:01:56 +00:00
  • 4cf436263e get() method needs to use the full table, not just the 'primary' table, to get the full list of primary key cols Mike Bayer 2006-02-24 16:54:30 +00:00
  • 94ac052104 fix to silent "recursive" bug in schema getattr that was somehow running only 994 times rel_0_1_2 Mike Bayer 2006-02-24 00:28:10 +00:00
  • 0e15f04750 release time rel_0_1_1 Mike Bayer 2006-02-23 02:47:07 +00:00
  • 6952902549 update Mike Bayer 2006-02-23 02:43:14 +00:00
  • 42953ed47b Function needed compare_type so that its type is set as the type in boolean expressions Mike Bayer 2006-02-23 01:32:26 +00:00
  • 4b3de0f534 moved iteration of props so that props can set up self-referring backref properties without getting a "list changed during iteration" error Mike Bayer 2006-02-22 08:50:45 +00:00
  • c789153144 test commit Mike Bayer 2006-02-22 08:13:25 +00:00
  • a080db03e8 one more test commit Mike Bayer 2006-02-22 07:47:58 +00:00
  • c47cda5593 this is a test commit Mike Bayer 2006-02-22 06:40:14 +00:00
  • bdcc6e92ae more fix to one-to-one: 'unchanged_items' can be [None] also with one to one so check for this during delete Mike Bayer 2006-02-22 06:29:05 +00:00
  • eb8cd46bf5 when begin/commit, an exception should still reset the transactional state Mike Bayer 2006-02-22 00:33:38 +00:00
  • 24e22e2e5a fix to EagerLoad where it late-initializes its eager chain, thereby not getting messed up by late add_property() calls Mike Bayer 2006-02-22 00:28:59 +00:00
  • c92b254a64 when creating lazy clause both sides of each clause must be Column Mike Bayer 2006-02-21 03:01:43 +00:00
  • a2ff73200c working on postupdate idea, refactoring to dependency processing Mike Bayer 2006-02-21 02:57:38 +00:00
  • bec1b4f92e merged eager loading overhaul rev 1001:1009 this includes: sql.Alias object keeps track of the immediate thing it aliased as well as the ultimate non-aliased (usually a Table) object, so that proxied columns can have a "parent" attribute some cleanup to SelectBaseMixin.order_by_clause to allow easier access, needs more cleanup engine has been making two ResultProxies all this time, added "return_raw" quickie flag to disable that some cleanup to _get_col_by_original so that it also works for oid columns, new eager load stuff more aggressively aliaseses orderby's so this was needed EagerLoader now makes "chains" of unique aliased eager loaders in all cases. no need for use_alias/selectalias anymore since it aliases every time. properly detects recursive eager loads and terminates them with a lazyloader, instead of raising an exception. totally simplified setup() and init() is more straightforward and has a single codepath now instead of two or three. Mike Bayer 2006-02-20 19:45:08 +00:00
  • 6811d3c852 made 'assign_mapper' doc more explicit added doc for overriding properties Mike Bayer 2006-02-20 16:34:02 +00:00
  • 7636e9a753 none check for pg1 date/time values Mike Bayer 2006-02-20 16:13:54 +00:00
  • 36383494b5 some comments, changed SmartProperty to be smarter, UOW version has "property" accessor which returns MapperProperty at the class level Mike Bayer 2006-02-19 01:25:56 +00:00
  • bca0afa1ce doc Mike Bayer 2006-02-19 00:42:50 +00:00
  • 9c8336870a some docstrings etc Mike Bayer 2006-02-19 00:35:54 +00:00
  • 6d442d2471 exceptions added postgres last_inserted_ids will raise an error unless OID's are turned on (INSERT with PK defaults + no OIDs wont fail unless this method is called) Mike Bayer 2006-02-19 00:26:22 +00:00
  • f1a68f37fa exception package added, support throughout Mike Bayer 2006-02-19 00:19:16 +00:00
  • 2d5e6eb93b onetoone Mike Bayer 2006-02-19 00:18:38 +00:00
  • 18d23f22dc converted to a unittest Mike Bayer 2006-02-19 00:18:00 +00:00
  • 6ade673cfc test only for postgres Mike Bayer 2006-02-19 00:17:27 +00:00
  • d345840321 beginning of a row cycle test Mike Bayer 2006-02-18 23:44:37 +00:00
  • f062c6f628 updating Mike Bayer 2006-02-18 23:07:07 +00:00
  • 8c957a0747 added hooks for engines to add stuff to SELECT, etc. Mike Bayer 2006-02-18 22:37:22 +00:00
  • d953de35d6 base begin method returns transaciton object Mike Bayer 2006-02-18 22:31:47 +00:00
  • e77a9d67b4 ongoing Mike Bayer 2006-02-18 21:21:25 +00:00
  • 0ba8530370 added new style of begin/commit which returns a tranactional object Mike Bayer 2006-02-18 21:11:20 +00:00
  • 55ce6851e0 added indexes to schema/ansisql/engine slightly different index syntax for mysql fixed mysql Time type to convert from a timedelta to time tweaks to date unit tests for mysql Mike Bayer 2006-02-18 20:33:20 +00:00
  • 38dfca8c7f comment verbiage Mike Bayer 2006-02-18 16:37:35 +00:00
  • bc784f9556 postgres needs to explicitly pre-execute PassiveDefaults on primary key columns, test added Mike Bayer 2006-02-18 16:32:33 +00:00
  • 63f11ac1b0 modified query that uses JOIN keyword explicitly. a user gets much better performance with it (though I dont) Mike Bayer 2006-02-17 22:28:06 +00:00
  • edb8f67111 bind params upon insert are totally column "name" based, so in process_defaults set newly acquired parameter by name also Mike Bayer 2006-02-17 22:10:14 +00:00
  • d18d39b145 added an assertion to insure that a column is only attached to one table Mike Bayer 2006-02-17 18:29:26 +00:00
  • 8fe4b45359 Modified objectstore to look for primary key param values by column name not key name. Added test for same. Robert Leftwich 2006-02-17 12:35:52 +00:00
  • 87507a3c1b tweak to get tables to show up Mike Bayer 2006-02-17 05:32:30 +00:00
  • f249438be4 added another multi-pk test Mike Bayer 2006-02-17 05:29:16 +00:00
  • c6ccddde21 fix to types test, postgres time types descend from Time type Mike Bayer 2006-02-17 04:49:04 +00:00
  • 664d4625e1 got inheritance into alltest Mike Bayer 2006-02-16 06:40:20 +00:00
  • 76681751cd ok now they worked... Mike Bayer 2006-02-16 06:38:49 +00:00
  • 435d2355c9 inheritance test tweaking to try to get alltests to work, unsuccessful Mike Bayer 2006-02-16 06:37:41 +00:00
  • 52396072d0 Join object wasnt exporting foreign keys correctly compile_synchronizers in PropertyLoader needed to take into account the full list of tables for each mapper when looking for synchronization rules, not just primary table Mike Bayer 2006-02-16 06:13:16 +00:00
  • 4d78d5f3ab comment rel_0_1_0 Mike Bayer 2006-02-14 02:40:07 +00:00
  • d856a373fe the list-based foreign key doenst seem to work quite right, rolling it back Mike Bayer 2006-02-14 02:15:47 +00:00
  • fa11bcd672 bind_to fix Mike Bayer 2006-02-14 01:49:33 +00:00
  • f09266796b 0.1.0 Mike Bayer 2006-02-14 01:22:38 +00:00
  • da6132d6b0 fixed FLOAT type Mike Bayer 2006-02-14 01:21:12 +00:00
  • f036a2e285 fix Mike Bayer 2006-02-14 01:18:46 +00:00
  • 5df5cdba29 tweaks for order_by Mike Bayer 2006-02-14 01:15:53 +00:00
  • fe62ca292b tweak to oracle limit/offset to not put ora_rn in the select list Mike Bayer 2006-02-14 01:15:43 +00:00
  • 14dbac4600 fixes mostly to get the important unit tests to run for Oracle, boxesw without wsgi_utils Mike Bayer 2006-02-14 01:02:50 +00:00
  • 7fb79e516d oracle likes to use VARCHAR isntead of CLOB so put limits on String Mike Bayer 2006-02-14 00:50:02 +00:00
  • af8037991f tweak Mike Bayer 2006-02-14 00:42:34 +00:00
  • abeb79c9f6 docstring... Mike Bayer 2006-02-14 00:41:20 +00:00
  • 791e2f7f7d latest reorgnanization of the objectstore, the Session is a simpler object that just maintains begin/commit state Mike Bayer 2006-02-14 00:30:30 +00:00
  • 8a3c00bc5a lazy load column fix courtesy raul garcia garcia Mike Bayer 2006-02-14 00:29:48 +00:00
  • 1316909da1 fix to string concatenation operator courtesy Marko Mikulicic Mike Bayer 2006-02-14 00:28:52 +00:00
  • fa0d6246c3 added import for pysqlite1 Mike Bayer 2006-02-14 00:21:42 +00:00
  • 2b33187bd8 tweak to TableImpl/ColumnImpl with the way they get their attribute Mike Bayer 2006-02-14 00:20:23 +00:00
  • d9e3b89ac3 some updates to UOW, fixes to all those relation() calls Mike Bayer 2006-02-14 00:19:22 +00:00
  • 4b5a9f9740 added 'post_update' attribute to PropertyLoader, means to defer processing of this property until after the object has been saved, and then to re-sync and force an update. used to break otherwise intra-row cycles. added for "many-to-one" so far. Mike Bayer 2006-02-13 00:51:37 +00:00
  • 4e3ca32ff8 more refactoring to session/UOW scope management...under construction ! Mike Bayer 2006-02-12 21:27:20 +00:00
  • 388cb2db38 some tweaks to options, use_alias, live removed Mike Bayer 2006-02-12 21:26:24 +00:00
  • 04329e18e9 assertion Mike Bayer 2006-02-12 06:43:05 +00:00
  • b5993e0ba3 'column' function (make a ColumnClause) is more useful from sql module, removed 'column' (make a ColumnProperty) from __init__ Mike Bayer 2006-02-12 06:39:29 +00:00
  • 8c018ab8fa cleanup and organization of code mostly in properties, making SyncRules clearer, also "foreignkey" property can be a list, particularly for a self-referential table with a multi-column join condition Mike Bayer 2006-02-12 06:32:11 +00:00
  • 703908caad slight glitch when the same clause is compiled repeatedly and contains redundant bind parameters...this fix prevents the binds from stepping on each other.... Mike Bayer 2006-02-12 06:29:57 +00:00
  • a41b19a3d7 some comments for default test Mike Bayer 2006-02-12 06:28:10 +00:00
  • adbd3ae29e more hammering of defaults. ORM will properly execute defaults and post-fetch rows that contain passive defaults Mike Bayer 2006-02-11 23:29:02 +00:00
  • e7a7708b43 integrating Jonathan LaCour's declarative layer Mike Bayer 2006-02-11 21:24:54 +00:00
  • 86c0504fa6 tableimpl and columnimpl proxy to actual impl objects per engine Mike Bayer 2006-02-11 21:04:48 +00:00
  • 2802748122 streamlined engine.schemagenerator and engine.schemadropper methodology added support for creating PassiveDefault (i.e. regular DEFAULT) on table columns postgres can reflect default values via information_schema added unittests for PassiveDefault values getting created, inserted, coming back in result sets Mike Bayer 2006-02-11 20:50:41 +00:00
  • 349c00c97a crazy postgres and its foreign key constraints Mike Bayer 2006-02-11 19:43:06 +00:00
  • 3c73d40fd3 fixes to TypeDecorator, including A. Houghton's patch Mike Bayer 2006-02-11 19:35:50 +00:00
  • 0b05f1453a beefed up type adaptation methodology, got Unicode to do encode/decode + test case Mike Bayer 2006-02-11 18:54:51 +00:00
  • 5b799b4495 fix to manytomany Mike Bayer 2006-02-11 16:33:09 +00:00
  • 4358dd7551 put assertion in to check for secondary table if secondaryjoin explicit Mike Bayer 2006-02-11 15:43:52 +00:00
  • 9323e70225 added before_update/after_update Mike Bayer 2006-02-11 15:26:24 +00:00
  • f0e694000c objectstore refactored to have more flexible scopes for UnitOfWork central access point is now a Session object which maintains different kinds of scopes for collections of one or more UnitOfWork objects individual object instances get bound to a specific Session Mike Bayer 2006-02-10 23:46:42 +00:00
  • f45ba2fa4d commented out print statement Mike Bayer 2006-02-09 00:50:22 +00:00
  • 6bf949d3f4 somewhat of an overhaul, got alltests to work again Mike Bayer 2006-02-09 00:34:07 +00:00
  • 1bf8b41f26 derefences connection pool upon dispose() Mike Bayer 2006-02-09 00:33:41 +00:00
  • 3051a69573 deprecated "selectalias" argument on eager loader, do use_alias=True "eager alias" flag will propigate to child eager loaders so the full query comes out OK. mappers/properties have overhauled "copy" methodology. mappers are no longer "singleton" and no longer have elaborate "hash_key" methods - there is a primary mapper associated with a class which is done via direct dictionary relationship, and the options() method on mapper does its own lighter-weight caching of created mappers. the unitofwork does extra work with the mappers it receives to insure its dealing with "the primary" mapper, so that properties can be more liberal about which mapper they reference (i.e. not the primary one). options() works better but still could use a looking-at to see that its not wasteful. simplified mapper() method in __init__. Mike Bayer 2006-02-09 00:33:26 +00:00
  • e649626877 took out print statement Mike Bayer 2006-02-07 04:55:12 +00:00
  • e5262ceeeb trying to get mappers to support having versions against different tables for the same class, that dont affect the original class mapper and create objects with the correct identity key support in EagerLoader to better handle "selectalias" when the eager mapper hits another eager mapper, etc Mike Bayer 2006-02-07 02:54:26 +00:00
  • 63472a96e2 took mysql foriegn key thing out Mike Bayer 2006-02-06 01:23:51 +00:00
  • a04aaa5983 foreign key reflection !!!!! Mike Bayer 2006-02-06 01:23:00 +00:00
  • a2e8be3ad4 moved stylesheets into section_wrapper so that autohandler can be more easily replaced (when used on the site) Mike Bayer 2006-02-06 01:06:38 +00:00
  • 49f8f0fe5d added 'engine' to convert_result_value/convert_bind_param Mike Bayer 2006-02-06 01:03:20 +00:00
  • 7052521d83 added cascade_mappers function. somewhat experimental ! Mike Bayer 2006-02-06 01:00:02 +00:00
  • d090510532 docs Mike Bayer 2006-02-06 00:51:51 +00:00