Commit Graph

  • aaefbb7e04 - better check for ambiguous join conditions in sql.Join; propigates to a better error message in PropertyLoader (i.e. relation()/backref()) for when the join condition can't be reasonably determined. - sqlite creates ForeignKeyConstraint objects properly upon table reflection. Mike Bayer 2006-08-03 00:28:57 +00:00
  • d6a6d67b8c r/m _reset method Jonathan Ellis 2006-08-01 19:10:34 +00:00
  • ddaf28461b expand explanation of Query methods Jonathan Ellis 2006-08-01 18:43:28 +00:00
  • 516c669f8a add update method Jonathan Ellis 2006-07-31 21:40:31 +00:00
  • e07d80642e fix for when default is zero Jonathan Ellis 2006-07-31 21:00:48 +00:00
  • 77d818d089 typo fix noticed by R Munn Jonathan Ellis 2006-07-31 17:45:24 +00:00
  • e4061ef22e doc update Jonathan Ellis 2006-07-30 04:15:55 +00:00
  • 8681f2a135 auto-execute delete stmts Jonathan Ellis 2006-07-30 04:08:20 +00:00
  • 0774a9f220 add mappedtable.delete support Jonathan Ellis 2006-07-30 04:04:26 +00:00
  • b8895c5ffc soup.engine property Jonathan Ellis 2006-07-29 03:52:04 +00:00
  • 4c316c6817 PassiveDefault('?') for autoloaded sqlite defaults Jonathan Ellis 2006-07-27 04:56:15 +00:00
  • 3b41d5c635 custom primary/secondary join conditions in a relation *will* be propigated to backrefs by default. specifying a backref() will override this behavior. Mike Bayer 2006-07-27 04:33:32 +00:00
  • 369ffb7816 oracle boolean type [ticket:257] Mike Bayer 2006-07-26 18:05:36 +00:00
  • 3c14b364ba [ticket:256] propigating url.query arguments to connect() function for all db's Mike Bayer 2006-07-25 16:40:38 +00:00
  • 9f4c0ec784 removed erroneous "on_update" example for PassiveDefault Mike Bayer 2006-07-25 15:33:18 +00:00
  • ccd4d8e63d fixed anchor tag Mike Bayer 2006-07-24 16:28:31 +00:00
  • 3c64a0cf73 [ticket:254] Mike Bayer 2006-07-24 16:25:40 +00:00
  • ade0a51a79 with_labels support Jonathan Ellis 2006-07-24 00:44:44 +00:00
  • 3538be64d2 fix outdated link into SA docs for Query objects Jonathan Ellis 2006-07-23 04:04:22 +00:00
  • 423735300c de-tabbify Jonathan Ellis 2006-07-23 03:35:03 +00:00
  • 7e9a97eda9 ReST-ify docstring Jonathan Ellis 2006-07-23 02:10:38 +00:00
  • 0a5d0ebd93 small join api change Jonathan Ellis 2006-07-22 06:23:59 +00:00
  • 946984d812 fixed reflection of foreign keys to autoload the referenced table if it was not loaded already, affected postgres, mysql, oracle. fixes the latest in [ticket:105] Mike Bayer 2006-07-22 06:21:58 +00:00
  • f65fdce01d schema support for sqlsoup Jonathan Ellis 2006-07-21 19:07:25 +00:00
  • 3d6e2af5b3 fix doctests by ensuring consistent sort order via __cmp__; add join support Jonathan Ellis 2006-07-21 16:56:08 +00:00
  • 52c50cb72b _selectable interface; allows sqlsoup to pass its classes to Join and have the underlying Table pulled out Jonathan Ellis 2006-07-21 16:53:05 +00:00
  • 6fed7d0166 fix doctest integration Jonathan Ellis 2006-07-21 16:44:01 +00:00
  • 8c5ed66843 add test for allow_null_pks Jonathan Ellis 2006-07-21 16:43:32 +00:00
  • 7f87262894 added allow_null_pks option to Mapper, allows rows where some primary key columns are null (i.e. when mapping to outer joins etc) Mike Bayer 2006-07-21 16:11:11 +00:00
  • d8ca865f17 assignmapper was setting is_primary=True, causing all sorts of mayhem by not raising an error when redundant mappers were set up, fixed Mike Bayer 2006-07-20 18:25:26 +00:00
  • 0b7557a30a fixed [ticket:245] rel_0_2_6 Mike Bayer 2006-07-20 01:00:30 +00:00
  • 98fb8894e3 patch to inheritance section Mike Bayer 2006-07-20 00:20:45 +00:00
  • 81f6188b40 implemented latest patch on [ticket:105], modified to support new ForeignKeyConstraint upon reflection Mike Bayer 2006-07-20 00:07:30 +00:00
  • 80f2fdce7f patch for [ticket:105], adding "owner" support to oracle...not tested yet Mike Bayer 2006-07-19 23:50:00 +00:00
  • 934ac330ea added table.exists() Mike Bayer 2006-07-19 22:20:49 +00:00
  • 8b50115acc added 'checkfirst' argument to table.create()/table.drop() some 0.2.6 prep Mike Bayer 2006-07-19 22:13:29 +00:00
  • 219730da27 reduced bind param size in query._get to appease the picky oracle [ticket:244] Mike Bayer 2006-07-19 20:38:43 +00:00
  • f4415c21c5 mapper compilation work ongoing, someday it'll work....moved around the initialization of MapperProperty objects to be after all mappers are created to better handle circular compilations. do_init() method is called on all properties now which are more aware of their "inherited" status if so. Mike Bayer 2006-07-19 20:25:09 +00:00
  • d2513a54eb fix to typing in clause construction which specifically helps type issues with polymorphic_union (CAST/ColumnClause propigates its type to proxy columns) Mike Bayer 2006-07-19 16:10:15 +00:00
  • bb188d2cce failing test case re: compilation Mike Bayer 2006-07-19 06:04:31 +00:00
  • e98e878646 added "synonym()" function, applied to properties to have a propname the same as another, for the purposes of overriding props and allowing the original propname to be accessible in select_by(). Mike Bayer 2006-07-18 17:09:08 +00:00
  • 2fe8b6fc8b remove print statement Mike Bayer 2006-07-18 15:53:34 +00:00
  • 4a02ef1c09 overhaul to MapperExtension so they arent chained via "next"; this breaks all over the place since extensions get copied between mappers etc. now theyre assembled into a list, of which a single extension can belong to many different lists. Mike Bayer 2006-07-18 15:14:55 +00:00
  • 8f2dddc171 echo=True Mike Bayer 2006-07-18 15:13:32 +00:00
  • c9c43e850f added __setitem__ to Constraint Mike Bayer 2006-07-18 00:40:29 +00:00
  • 99dca5043c fixed table name in REFERENCES clause to include schema if applicable Mike Bayer 2006-07-18 00:13:23 +00:00
  • 92a86a08ce some cleanup on session/uow interaction, check for None when calling refresh or expire in case object was deleted Mike Bayer 2006-07-17 05:18:44 +00:00
  • fbe71c1764 some cascade tweaks Mike Bayer 2006-07-14 23:58:44 +00:00
  • d4c60a64a6 deferred column load could screw up the connection status in a flush() under some circumstances, this was fixed Mike Bayer 2006-07-14 21:02:35 +00:00
  • bc6fbfa84a overhaul to schema, addition of ForeignKeyConstraint/ PrimaryKeyConstraint objects (also UniqueConstraint not completed yet). table creation and reflection modified to be more oriented towards these new table-level objects. reflection for sqlite/postgres/mysql supports composite foreign keys; oracle/mssql/firebird not converted yet. Mike Bayer 2006-07-14 20:06:09 +00:00
  • e58578cb4b ActiveMapper now supports autoloading of column definitions if you supply a __autoload__ = True attribute in your inner mapping class. It does not currently support autoloading relationships. Jonathan LaCour 2006-07-14 14:54:53 +00:00
  • d0b0c6ec35 $-># for install prompt Mike Bayer 2006-07-13 21:53:31 +00:00
  • 3bf88a1741 DB connection errors wrapped in DBAPIErrors Mike Bayer 2006-07-13 21:05:52 +00:00
  • 70469bf260 added count/count_by to assignmapper, plus a test in activemapper to try it out Mike Bayer 2006-07-13 16:36:31 +00:00
  • 2cb2b624f9 fixed up boolean datatype for sqlite, mysql, ms-sql Mike Bayer 2006-07-13 01:12:53 +00:00
  • 7cb8f04f48 still having mappers not getting compiled...sigh... Mike Bayer 2006-07-12 20:19:32 +00:00
  • 5d599314d5 primary key identifier is a list now, not param list, [ticket:236] Mike Bayer 2006-07-12 19:02:53 +00:00
  • bbd63bb0e2 clarified passivedefault only for INSERT, added brief 'override reflected columns' example Mike Bayer 2006-07-12 16:44:18 +00:00
  • 8415bedf36 slightly less lame version function Mike Bayer 2006-07-11 01:12:02 +00:00
  • 7d91bebccc sqlite detects version and disables CAST if version < 3.2.3 fixes to unittests, mapper extension to work better with setting/unsetting extensions objectstore objects get 'session' attribute Mike Bayer 2006-07-11 00:36:32 +00:00
  • f1b164df9f expunge wasnt de-associating the object with a session Mike Bayer 2006-07-10 23:05:03 +00:00
  • 2dfdf70660 activemapper will use threadlocal mod's objectstore if its installed both objectstores no longer subclass SessionContext, get at it via .context attribute instead Mike Bayer 2006-07-10 21:53:49 +00:00
  • 55edd4ce95 adjument to regexp for parsing courtesy Barry Warsaw Mike Bayer 2006-07-10 21:33:03 +00:00
  • d89b81a1d9 fix to error message for object with mismatched session Mike Bayer 2006-07-10 21:32:34 +00:00
  • d1ea19edb0 hey ho alphas got to go Mike Bayer 2006-07-10 01:12:12 +00:00
  • 55917950d6 works without backrefs too.... Mike Bayer 2006-07-10 01:06:31 +00:00
  • 5c7993080a some refactorings to activemapper, made relationship() class have some polymorphic behavior for initializing its real relation, added support + unittest for self-referential relationship Mike Bayer 2006-07-09 19:48:02 +00:00
  • 1b0ac7e43b added workaround for funny pragma behavior on windows pysqlite singletonthreadpool has a dispose() method, used by proxy_engine test to better clean up after itself on windows Mike Bayer 2006-07-09 17:58:01 +00:00
  • 77440a7f98 small fix to relation compilation Mike Bayer 2006-07-09 00:39:24 +00:00
  • dd1d21c166 0.2.5 rel_0_2_5 Mike Bayer 2006-07-08 17:11:58 +00:00
  • eeb4b2c896 took out that whole compilation dependency thing. just need to loop through mapper_registry and compile whatever is not compiled. the "non-reentrant" compile() method, which is a product of the whole compilation dependency tangent, makes this pretty easy. So it was a pretty roundabout way to go for ultimately a pretty small change to compilation. Mike Bayer 2006-07-08 16:07:16 +00:00
  • 22a0e600ce made mapper compilation "check for remaining mappers" compile anything found, guaranteeing everything to be compiled in all cases Mike Bayer 2006-07-07 21:32:30 +00:00
  • 123db91b42 removed debug line Mike Bayer 2006-07-07 14:36:25 +00:00
  • 61579c9302 ordering of UPDATE and DELETE statements within groups is now in order of primary key values, for more deterministic ordering after_insert/delete/update mapper extensions now called per object, not per-object-per-table fixed import in firebird.py Mike Bayer 2006-07-03 15:55:20 +00:00
  • 433f20d631 fixed hyperlink to adv datamapping Mike Bayer 2006-07-02 16:34:03 +00:00
  • 498d1b8dd8 change exception message Mike Bayer 2006-07-02 16:33:46 +00:00
  • cce1f073e3 got MS-SQL support largely working, including reflection, basic types, fair amount of ORM stuff, etc. 'rowcount' label is reseved in MS-SQL and had to change in sql.py count() as well as orm.query Mike Bayer 2006-07-01 19:26:30 +00:00
  • 6133dbee09 some adjustments to activemapper's objectstore to be composed against SessionContext DynamicMetaData checks first for _engine before returning Mike Bayer 2006-07-01 15:30:33 +00:00
  • 6446bb1360 fixes to attributes/related so that get_history with passive=True returns no AttributeHistory object if an untriggered callable was found (not sure how this used to work OK....) Mike Bayer 2006-06-30 03:56:49 +00:00
  • a8c2b7b979 Put back in the foreign-key checking code in process_relationships for ActiveMapper. It looks like it is required by at least one person, so for now the code will stay in! Jonathan LaCour 2006-06-30 01:19:52 +00:00
  • 4e3aa8829a There were two significant changes in this commit: Jonathan LaCour 2006-06-29 23:29:37 +00:00
  • 2c28effb75 added a note about sqlite uris Mike Bayer 2006-06-29 21:34:30 +00:00
  • 604592bebd removed toengine() calls Mike Bayer 2006-06-29 20:47:50 +00:00
  • b3927fbb88 inserting './lib/' into sys.path since PYTHONPATH no longer straightforward with latest setuptools Mike Bayer 2006-06-29 00:28:55 +00:00
  • 2fb9221b79 fixed endless loop bug in select_by(), if the traversal hit two mappers that referenced each other Mike Bayer 2006-06-28 23:01:04 +00:00
  • 5c0e32bf33 firebird patch with support for type_conv Mike Bayer 2006-06-28 19:03:29 +00:00
  • 70b2dec19a Updated ActiveMapper to support order_by parameters on all relationships. Thanks to Charles Duffy for this patch! Jonathan LaCour 2006-06-28 17:26:48 +00:00
  • 7626fc5aab fixes to pool_invalidate [ticket:224] rel_0_2_4 Mike Bayer 2006-06-27 23:56:14 +00:00
  • d4cbae6603 new MySQL types: MSEnum, MSTinyText, MSMediumText, MSLongText, etc. more support for MS-specific length/precision params in numeric types patch courtesy Mike Bernson Mike Bayer 2006-06-27 22:24:39 +00:00
  • 00844ac4df lazy load bind params properly propigate column type [ticket:225] Mike Bayer 2006-06-27 21:48:53 +00:00
  • 662bd40300 cursor() method on ConnectionFairy allows db-specific extension arguments to be propigated [ticket:221] Mike Bayer 2006-06-26 20:15:54 +00:00
  • a635e96b6c PG didnt like 'user' for a table name Mike Bayer 2006-06-26 20:06:59 +00:00
  • 8438ad7482 dont put SERIAL on a column if it has a ForeignKey Mike Bayer 2006-06-26 20:01:56 +00:00
  • 49090a7a94 fixed attribute manager's ability to traverse the full set of managed attributes for a descendant class, + 2 unit tests Mike Bayer 2006-06-26 19:55:48 +00:00
  • 22fcdbe81f 0.2.4... Mike Bayer 2006-06-26 19:51:41 +00:00
  • 9dd15963d3 migrated Queue.Queue to its own module here, to assure RLock compatibility Mike Bayer 2006-06-26 19:51:01 +00:00
  • e2fc1a36d3 fix to the column properties to better compile the underlying mapper before access Mike Bayer 2006-06-26 19:30:10 +00:00
  • 417d940878 some doc edits Mike Bayer 2006-06-26 19:15:09 +00:00
  • bd8ee15b87 fix to timeout Mike Bayer 2006-06-26 18:27:32 +00:00
  • 3d88870e33 attempting to fix reentrant condition that can happen with Queue.Queue Mike Bayer 2006-06-26 04:32:34 +00:00