Commit Graph

  • 03e305d65b raises error for bad url Mike Bayer 2006-05-28 16:12:15 +00:00
  • 348c993bc0 propigate "pool" argument Mike Bayer 2006-05-28 16:07:15 +00:00
  • 2fef927504 selectresults docs Mike Bayer 2006-05-28 05:52:52 +00:00
  • 74eedaceca it's police.... Mike Bayer 2006-05-28 01:01:45 +00:00
  • d5883392be formatting etc Mike Bayer 2006-05-28 00:31:34 +00:00
  • 967171f5af take two rel_0_2_0 Mike Bayer 2006-05-27 20:33:41 +00:00
  • 37e97276b0 0.2 prep Mike Bayer 2006-05-27 20:33:22 +00:00
  • 7c1630a46b keep verbose false Mike Bayer 2006-05-27 19:48:34 +00:00
  • 73221e8f93 latest overhaul to association objects, plus an actual unit test this change probably fixes [ticket:134] Mike Bayer 2006-05-27 19:44:05 +00:00
  • 61f3b332f8 doc update Mike Bayer 2006-05-27 17:51:30 +00:00
  • 06ba0bd854 broke out dumper into a separate module Mike Bayer 2006-05-27 17:46:03 +00:00
  • acd4981f56 doc updates, added 'save' method to assignmapper Mike Bayer 2006-05-27 16:59:07 +00:00
  • 01d0efe5b3 circular dependency sort will not create new UOWTasks/UOWDependencyProcessors mid-stream further construction on migrating UOWTask to be fully polymorphic Mike Bayer 2006-05-27 16:39:05 +00:00
  • 6daad9c2e3 unitofwork more Set oriented now MapperProperty now has "localparent" and "parent" attributes, which in the case of inheritance represent the mapper the property is attached to, and the original mapper it was created on. the unitofwork now keeps the dependency processors derived from those properties unique so inheritance structures dont register redundant dependency processors. Mike Bayer 2006-05-27 05:45:21 +00:00
  • c6baecfd79 converted sqlsoup, got its doctests working (werent working in 0.1 either....), added doctest hook to testsuite fix to selectone_by/selectone when zero rows returned Mike Bayer 2006-05-27 01:19:56 +00:00
  • 0133283c78 merged r. morrisons 0.2 update from branch to trunk Mike Bayer 2006-05-27 00:16:45 +00:00
  • 3b5ba3870e added has_key to RowProxy, + caching of key lookups fix for mapper translate_row for deferred columns continuing with the "polymorph-tizing" of the unit of work, dependency processing accesses objects on each target task polymorphically Mike Bayer 2006-05-27 00:13:12 +00:00
  • 8270e0a458 uncompleted additional inheritance tests Mike Bayer 2006-05-26 23:35:56 +00:00
  • 6008129ed5 some TODOs Mike Bayer 2006-05-25 18:30:36 +00:00
  • 0ce777d550 bind parameter conflict in _get() resolved Mike Bayer 2006-05-25 18:20:39 +00:00
  • c6877a1d8a pretty major change to inheritance topological sorting - mapper dependencies are calculated based on their ultimate "base inherited" mapper, UOWTasks organized into recursive inheritance structures based on the inheritance of the mappers. this allows tasks across a class/mapper inheritance hierarchy to properly interact with other dependency processors and sub-tasks. Mike Bayer 2006-05-25 17:53:06 +00:00
  • b3dbeee5c4 correction to running single named tests Mike Bayer 2006-05-25 16:23:39 +00:00
  • 7f50a6f8eb workaround for get that requires multiple ids in the case of joined table inheritance Mike Bayer 2006-05-25 15:02:59 +00:00
  • e7a1ce9176 added 0.1.7 changes to changelog latest sqlsoup from 0.1.7 s. cazzells fixes to assignmapper, threadlocal Mike Bayer 2006-05-25 14:48:32 +00:00
  • bb79e2e871 merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1 Mike Bayer 2006-05-25 14:20:23 +00:00
  • 0a90b4960e 0.1 maintenance branch Mike Bayer 2006-05-25 14:12:47 +00:00
  • 4fc3a06486 added explicit check for "==null()" to produce IS NULL, documnted "==None", "==null()", [ticket:187] Mike Bayer 2006-05-24 16:35:30 +00:00
  • 5156d5141a anonymous indexes use column._label to avoid name collisions Mike Bayer 2006-05-23 14:59:32 +00:00
  • 1bbee67774 hypothetical (failing) test for primary key selection of joins Mike Bayer 2006-05-23 14:59:11 +00:00
  • 741e225694 Implemented the changes from ticket 94 jralston 2006-05-23 01:03:34 +00:00
  • 030c50d20d c. martinez' fix to slicing logic Mike Bayer 2006-05-18 14:16:56 +00:00
  • d9bc08aac3 typo fix Mike Bayer 2006-05-16 00:25:50 +00:00
  • 79555fb434 rick morrison's CASE statement + unit test Mike Bayer 2006-05-15 23:47:07 +00:00
  • 31e001580b version id... Mike Bayer 2006-05-15 22:47:41 +00:00
  • c44e2daf54 title change Mike Bayer 2006-05-15 22:45:04 +00:00
  • 48c805d566 removed .logo style Mike Bayer 2006-05-15 22:43:19 +00:00
  • 00b607ded6 extra unicode tests added 'threaded' keyword argument to oracle.py (pretty important....) Mike Bayer 2006-05-15 16:44:38 +00:00
  • 71fcffb2a2 added pre-compiled docstring support Mike Bayer 2006-05-12 19:25:41 +00:00
  • 91065e84c4 added != support for None -> foo IS NOT NULL Mike Bayer 2006-05-12 17:11:46 +00:00
  • bf0f6bfe4a had unicode check improperly placed Mike Bayer 2006-05-06 18:12:19 +00:00
  • 116295d097 got removed somehow Mike Bayer 2006-05-05 17:52:00 +00:00
  • a454f2e87d added __mod__ type rel_0_1_7 Mike Bayer 2006-05-05 17:45:06 +00:00
  • 6c89f97e45 fixed a _get_criterion mismatch, cleaned up types + updated types doc Mike Bayer 2006-05-05 17:23:00 +00:00
  • a7ba115c3d added from_obj option to select() Mike Bayer 2006-05-05 01:18:55 +00:00
  • dec6e3b80f fixed HAVING/ORDER BY order, 0.1.7 prep Mike Bayer 2006-05-05 00:42:42 +00:00
  • f7d896af75 save_obj/delete_obj need to specify column types to binds for primary key criterion Mike Bayer 2006-05-04 20:27:18 +00:00
  • 94494e19ba foreignkey checks for unicode incoming string Mike Bayer 2006-05-03 17:08:46 +00:00
  • ea06a3ac2f "order_by" parameter propigated to inheriting mappers oracle ROW_NUMBER logic uses select.oid_column to get default order by Mike Bayer 2006-05-03 16:55:56 +00:00
  • c5b02351a2 gambit's patch to add DISTINCT ON Mike Bayer 2006-05-02 21:30:41 +00:00
  • deb80dbc7b added 'supports', 'unsupports' decorators to unittests so that they can all pass on all DBs Mike Bayer 2006-04-29 16:42:37 +00:00
  • 337d3b2685 more work on types. this is the simplest implementation which is a little more manual Mike Bayer 2006-04-29 16:12:02 +00:00
  • 4cff2c1a3c *another* big types change....the old way was still wrong...this way is better (still need to go through it again since i am apparently type-impaired....) Mike Bayer 2006-04-29 01:05:13 +00:00
  • 409acb4208 fix for [ticket:169], moves the creation of "default" parameters more accurately where theyre supposed to be Mike Bayer 2006-04-28 23:31:59 +00:00
  • b0fff23df8 fix to subquery parens Mike Bayer 2006-04-28 15:02:49 +00:00
  • a456fd5475 the latest and greatest method to keep attributes from growing Mike Bayer 2006-04-27 23:56:09 +00:00
  • 60726abc1c commented out default schema name check Mike Bayer 2006-04-26 21:43:33 +00:00
  • e16a345ea8 localtime/localtimestamp dont seem to need the underscore for postgres/mysql, making that default Mike Bayer 2006-04-26 14:55:05 +00:00
  • 17c4db290e added unittest to verify eager loads refresh expired instances Mike Bayer 2006-04-26 00:45:24 +00:00
  • 0d90e5cdab removed a "swap" from the lazy binary clause. added a test for that condition.... Mike Bayer 2006-04-24 22:11:13 +00:00
  • 42c53ec821 lazyload clause calculation uses anonymous keynames for the bind parameters, to avoid compilation name conflicts Mike Bayer 2006-04-24 19:21:12 +00:00
  • e008839e81 Got the unit tests running again, apart from the two that were not working in the first place. The changes to process_relationships and to sqlachemy itself were causing a double 'assign_mapper' call to cause issues. Now, we basically defer calling assign_mapper until process_relationships in cases where there are defined relationships. Jonathan LaCour 2006-04-23 21:41:36 +00:00
  • a8fe116387 added temporary option "construct_new" to mapper which will cause the mapper to use __new__ to create loaded instances instead of the __init__ method Mike Bayer 2006-04-23 20:37:53 +00:00
  • 37a0c95f57 some cleanup Mike Bayer 2006-04-21 16:38:29 +00:00
  • 4058efa346 added extend() to historyarrayset Mike Bayer 2006-04-21 03:53:01 +00:00
  • 333a0f84b7 Updates to ActiveMapper contributed by Gabriel Jacobo. The main purpose of the changes is to ensure that relationships are properly detected and built in the proper order. This should fix some problems that people were having with ActiveMapper requiring classes to be declared in a specific order. Jonathan LaCour 2006-04-20 21:04:03 +00:00
  • f85681d8a9 what a strange thing to not be in there.... Mike Bayer 2006-04-19 19:47:02 +00:00
  • d1fa8fe327 fixed up expunge() and the continuing circular refs in attributes, added a unit test for the whole thing Mike Bayer 2006-04-19 19:33:51 +00:00
  • 33f87bd0f5 got circular many-to-many relationships to work Mike Bayer 2006-04-19 18:24:45 +00:00
  • 3ffa0bda31 mapper will verify class inheritance scheme; also will not re-init inherited property, as the improved attribute system seems to handle inheritance OK and allows the property to keep its correct initialization on the parent exceptions import in query Mike Bayer 2006-04-18 18:24:07 +00:00
  • 5b1871de64 added cgi parser for url key/value connect strings, towards [ticket:157] Mike Bayer 2006-04-17 23:31:12 +00:00
  • 632dc1b703 fix for [ticket:158] regarding translate row Mike Bayer 2006-04-17 23:19:57 +00:00
  • 08c003ec00 added _get_from_obj to TypeClause Mike Bayer 2006-04-17 01:15:19 +00:00
  • 0542d35f39 a new batching algorithm for the topological sort Mike Bayer 2006-04-16 23:47:26 +00:00
  • 56feb8d900 had to take out the "treeification" of the dependency sort as it doenst really work , added test conditions to the dependency test + the original test that failed Mike Bayer 2006-04-14 18:11:54 +00:00
  • 4022b1359d 0.1.6... rel_0_1_6 Mike Bayer 2006-04-12 19:40:43 +00:00
  • 27b8963fe4 0.1.6 prep Mike Bayer 2006-04-11 22:15:49 +00:00
  • 80ed5b5cc2 added a failing unittest for inheriting mappers with add_property Mike Bayer 2006-04-11 16:59:18 +00:00
  • 3b2e08de29 added patch for mxDateTime support, [ticket:5], courtesy jkakar@kakar.ca Mike Bayer 2006-04-11 16:58:15 +00:00
  • f5e54c7a0a latest from j. ellis... Mike Bayer 2006-04-10 05:44:03 +00:00
  • 7837144401 more files moving to .txt format plus enhancements to markdown converter Mike Bayer 2006-04-10 00:58:15 +00:00
  • f1d20d73ed Added preliminary support for inheritance. jeff 2006-04-08 17:11:53 +00:00
  • 954fbf513d install_mod can take strings or module items Mike Bayer 2006-04-07 00:25:58 +00:00
  • edfb66680d pool argument adjusts for DBProxy/Pool Mike Bayer 2006-04-07 00:22:55 +00:00
  • 91df1bc17b a little spring cleaning for the util package, etc Mike Bayer 2006-04-07 00:11:13 +00:00
  • 2a171e818c split up Session into Session/LegacySession, added some new constructor args created AbstractEngine class which provides base for SQLEngine and will also provide base for ConnectionProxy, so SQL binding can be to an engine or specific connection resource ClauseElements get using() method which can take AbstractEngines for execution made more separation between SchemaItems and bound engine Mike Bayer 2006-04-06 23:46:02 +00:00
  • 5bda70e770 mapper's querying facilities migrated to new query.Query() object, which can receive session-specific context via the mapper.using() statement. reuslting object instances will be bound to this session, but query execution still handled by the SQLEngines implicit in the mapper's Table objects. session now propigates to the unitofwork UOWTransaction object, as well as mapper's save_obj/delete_obj via the UOWTransaction it receives. UOWTransaction explicitly calls the Session for the engine corresponding to each Mapper in the flush operation, although the Session does not yet affect the choice of engines used, and mapper save/delete is still using the Table's implicit SQLEngine. changed internal unitofwork commit() method to be called flush(). removed all references to 'engine' from mapper module, including adding insert/update specific SQLEngine methods such as last_inserted_ids, last_inserted_params, etc. to the returned ResultProxy so that Mapper need not know which SQLEngine was used for the execute. changes to unit tests, SelectResults to support the new Query object. Mike Bayer 2006-04-06 21:12:00 +00:00
  • c0e5bb085b the __iter__ method on historyarraylist seemed to get broked...hmmmm Mike Bayer 2006-04-06 19:25:58 +00:00
  • dbf936c30b added explicit "session" argument to get(), select_whereclause in mapper, as well as throughout the call-chain for those. lazy loader honors the "session" of the parent object, + added simple unit test Mike Bayer 2006-04-06 19:01:14 +00:00
  • ccb30be0a2 this assertion not really needed, esp. if a PickleType is used to take in a list Mike Bayer 2006-04-06 14:54:16 +00:00
  • ca00cd4cc2 added pickle test Mike Bayer 2006-04-06 14:32:57 +00:00
  • 941d9caef8 the ultimate "hands off" approach to the object's dictionary of managed attributes Mike Bayer 2006-04-06 14:27:03 +00:00
  • 680c276073 moves the binding of a TypeEngine object from "schema/statement creation" time into "compilation" time Mike Bayer 2006-04-06 01:15:46 +00:00
  • 753b7c2d3e factored oid column into a consistent late-bound pattern, fixing [ticket:146] Mike Bayer 2006-04-04 21:40:18 +00:00
  • 1c8f771344 Added cast() to allow use of cast(tbl.c.col as Numeric(4,2)) in select and where clauses. Unit tests for same. Robert Leftwich 2006-04-04 00:28:33 +00:00
  • 787484945c put proper return type Mike Bayer 2006-04-03 22:48:28 +00:00
  • 541a61fe0d adjustments to auto-table-aliasing logic (R. Morrison) Mike Bayer 2006-04-03 22:04:08 +00:00
  • 7999c3baad added a unit test for the "version_id" keyword argument, which passes based on previous changes to Mapper Mike Bayer 2006-04-03 22:01:35 +00:00
  • 3ad569a52c update Mike Bayer 2006-04-03 21:46:00 +00:00
  • abc376c702 added 'entity_name' keyword argument to mapper. a mapper is now associated with a class via the class object as well as the optional entity_name parameter, which is a string defaulting to None. any number of primary mappers can be created for a class, qualified by the entity name. instances of those classes will issue all of their load and save operations through their entity_name-qualified mapper, and maintain separate identity from an otherwise equilvalent object. Mike Bayer 2006-04-03 21:43:22 +00:00
  • 837b5407a4 attributes overhaul #2 - attribute manager now tracks class-level initializers strictly through the SmartPropery instances attached to the class, so that attributes retain their natural polymorphic behavior. naming conventions migrating to "managed_attribute", simplifying codepaths. Mike Bayer 2006-04-03 21:04:16 +00:00