Commit Graph

  • 82104a5d0d further order_by: order_by() with no arguments should not affect the current order_by clause (same with group_by) Mike Bayer 2006-04-03 17:49:41 +00:00
  • 7e7407a03e ack, fixes to the order by stuff from last night Mike Bayer 2006-04-03 17:46:08 +00:00
  • c62f105983 DOH ! Mike Bayer 2006-04-03 17:13:42 +00:00
  • a3f0f8dc13 still tryin to clarify.... Mike Bayer 2006-04-03 05:50:34 +00:00
  • ea275e8d38 added to_selectable() onto ColumnClause to simplify _get_col_by_original Mike Bayer 2006-04-03 05:22:42 +00:00
  • c8637ba660 made order_by/group_by construction a little more simplisitc fix to mapper extension CompoundSelect can export all columns now, not sure if theres any advantage there Mike Bayer 2006-04-03 05:00:53 +00:00
  • 29a6d142a9 added a type to label.... Mike Bayer 2006-04-03 03:24:06 +00:00
  • 9c1ebb4b63 converted to markdown, added MS-SQL Mike Bayer 2006-04-03 02:00:18 +00:00
  • c026339ad8 merged Rick Morrison / Runar Petursson's MS-SQL module, with adjustments to alias schema-qualified Table objects Mike Bayer 2006-04-03 01:35:48 +00:00
  • cc35495023 extra sql statements... Mike Bayer 2006-04-02 22:56:19 +00:00
  • 0218f0b1e5 got SQL blocks to work with markdown system, other enhancements sqlconstruction converted to markdown syntax Mike Bayer 2006-04-02 22:52:13 +00:00
  • b7ee8758e8 fixed reset_history method when applied to an attribute that had an attribute-level TriggeredAttribute set on it, added unit test. Mike Bayer 2006-04-02 04:13:03 +00:00
  • 225b9ec138 fix to oeprator test for new parenthesized rules Mike Bayer 2006-04-02 04:09:05 +00:00
  • 3cd04eee8a added "parenthesis" check on binary clauses referencing binary clauses, for [ticket:144] Mike Bayer 2006-04-02 03:22:17 +00:00
  • 00014ef6c8 cleanup of attributes, better naming, added weak reference to base managed attribute to break circular refs, slightly shorter codepaths in some cases. added performance tester Mike Bayer 2006-04-01 21:00:41 +00:00
  • 6133da0f78 second assertion Mike Bayer 2006-03-31 23:46:02 +00:00
  • e219800908 added unit test for the old commit that was in [changeset:1186]. modified its behavior a bit to not delete private relationships unless they were already marked as deleted at the attribute manipulation level. got "switching" behavior from one private relationship to another to work, added a unit test for that. Mike Bayer 2006-03-31 23:43:20 +00:00
  • 66528a7264 added for_update flag to Select/CompoundSelect Mike Bayer 2006-03-31 22:28:17 +00:00
  • d47cc9129d adjustments... Mike Bayer 2006-03-31 07:36:51 +00:00
  • effb156b1e tweak... Mike Bayer 2006-03-31 07:29:28 +00:00
  • 9bc6c43283 got install_mods to work Mike Bayer 2006-03-31 07:22:45 +00:00
  • d929ae8d90 introducing...the mods package ! the SelectResults thing moves as the first mod Mike Bayer 2006-03-31 07:20:13 +00:00
  • 90ffb177ed starting to refactor mapper slightly, adding entity_name, version_id_col, allowing keywords in mapper.options() Mike Bayer 2006-03-31 04:27:05 +00:00
  • 17e341e367 wow, __len__ is a real disaster when combined with list()...turning that off Mike Bayer 2006-03-31 02:41:32 +00:00
  • 1a5e65c14f Jonas Borgström's fantastic SelectRsults patch that adds dynamic list argument support to the mapper.select() methd. associated unit test tweaks and mapper integration. Mike Bayer 2006-03-31 02:25:59 +00:00
  • fc98892802 fixed default example Mike Bayer 2006-03-28 03:07:50 +00:00
  • 28a54b6b86 fixed "DISTINCT" spelling Mike Bayer 2006-03-28 02:04:32 +00:00
  • b3db76d449 d rel_0_1_5 Mike Bayer 2006-03-27 03:12:27 +00:00
  • 19e9af44c0 tweak to mapper to allow inheritance on the same table. Mike Bayer 2006-03-27 02:58:20 +00:00
  • 6698e1ab44 backrefs on cyclical relationships were breaking for the "root" node which had None for a parent, due to addition in [changeset:1186] which added a "deletion" traversal for many-to-one relationships. added unittest. Mike Bayer 2006-03-27 02:02:06 +00:00
  • a632fa1191 0.1.5 prep Mike Bayer 2006-03-27 00:51:51 +00:00
  • 33c0534a56 removed.. Mike Bayer 2006-03-27 00:16:54 +00:00
  • c4e00af9e4 added always_refresh flag. when the mapper loads rows, it will pull objects from the identity map normally, but always blows away their attributes and replaces with those from the database, including changes Mike Bayer 2006-03-26 23:51:13 +00:00
  • cb3be7803b rework to expire() to make it smarter. when you expire(), history is immediately removed as well as explicit from dirty/deleted lists. this also changes uow.rollback_object() to remove from those lists, which is strange that it didnt do that before. anyway the mapper, when selecting and creating instances, asks the uow if this already identity-mapped instance is expired, and if so refreshes it on the fly, saving the need for the re-_get() operation, if some other query happens to touch upon the expired object. unit test added to confirm this. Mike Bayer 2006-03-26 21:44:22 +00:00
  • c0775bdadc fixed pickle example, its standard anyway.... Mike Bayer 2006-03-26 19:58:08 +00:00
  • 46eb453c36 column label generation checks for a conflict against a column named the same as the label comment in mapper Mike Bayer 2006-03-26 15:36:43 +00:00
  • fcace31b88 improved translation of rows when proxying rows from one mapper to another. Mike Bayer 2006-03-26 07:21:28 +00:00
  • 69246aec95 a cool example that illustrates vertical table storage, and objects that automatically configure themselves for this type of storage Mike Bayer 2006-03-26 06:30:21 +00:00
  • a1c57623f7 except it fails a unit test. OK, make it ia KeyError Mike Bayer 2006-03-26 06:29:47 +00:00
  • c9cfb713ce util: the __setitem__ method on historyarraylist was meaningless, surprising nobody noticed that. types: added PickleType, its slightly trickier than trivial, so OK now its standard. attributes: the level of pain if an AttributeError occurs inside a CallableProp, in combination with an object that implements __getattr__, is too deep for me to put the users through....so convert AttributeErrors to Assertions... engine: im not a fan of catching universal exceptions and squashing them Mike Bayer 2006-03-26 06:26:02 +00:00
  • 995d9afb83 removed circular loop in creating new list elements, fixes a common refresh() condition added None check in PropertyLoader many-to-one private deletion traversal, fixes byroot_tree (add a unit test for that) Mike Bayer 2006-03-25 21:44:42 +00:00
  • f7afe05290 removed all "tablename + '_' + columname" code and replaced with column._label, to take advantage of column labeling rules bind param compilation,when it unique-ifys the name of bind params, maintains the length of the bind parameter name instead of appending to it Mike Bayer 2006-03-25 21:14:54 +00:00
  • d4800b86d1 added *args **kwargs pass-thru to transaction() Mike Bayer 2006-03-25 20:32:10 +00:00
  • d75cf6ca13 method add Mike Bayer 2006-03-25 20:28:01 +00:00
  • f1fa97524a added expire/refresh/expunge to assign_mapper Mike Bayer 2006-03-25 20:27:25 +00:00
  • 4338398e5f ah well the overflow doesnt work Mike Bayer 2006-03-25 19:52:37 +00:00
  • 6f8d9440e4 dev Mike Bayer 2006-03-25 19:46:04 +00:00
  • ee537dccb2 dev Mike Bayer 2006-03-25 19:34:34 +00:00
  • 82dedcc448 doc dev... Mike Bayer 2006-03-25 18:53:51 +00:00
  • ea288d73ed doc dev Mike Bayer 2006-03-25 18:13:01 +00:00
  • 47841349d9 doc devel Mike Bayer 2006-03-25 17:23:41 +00:00
  • 19a786a751 update to types doc commented out 'tutorial' from docuemnt_base until its complete float extends numeric type Mike Bayer 2006-03-25 15:25:29 +00:00
  • 3282c22786 ResultProxy has an iterator interface Mike Bayer 2006-03-25 02:49:10 +00:00
  • 34d961cde0 got some support for mapping to a select that only selects some of the columns of an underlying table Mike Bayer 2006-03-25 02:25:59 +00:00
  • f922fa7b60 added check in SessionTrans.begin() that the underlying unit of work is still the current uow Mike Bayer 2006-03-25 01:58:27 +00:00
  • fcbd4f1539 added expunge() method to objectstore correction in attributes reset_history to really reset in all cases added unit tests testing refresh()/expire() bug that was fixed by reset_history thing Mike Bayer 2006-03-25 00:17:51 +00:00
  • 03bb7a9641 added overrideable managed_attribute_dict() function which can be changed to eliminate circular references on objects Mike Bayer 2006-03-24 23:06:07 +00:00
  • b1deaf1fb7 some more tweaks to get more advanced polymorphic stuff to work Mike Bayer 2006-03-24 06:28:27 +00:00
  • cd39a0a780 added explicit "convert date types to a string in bind params", since pysqlite1 doesnet seem to do it, operation is synymous with what pysqlite2 does Mike Bayer 2006-03-23 07:38:28 +00:00
  • 26ec8e13fa added oracle8 test target, sets use_ansi to false got mapper, objectstore, inheritance unittest working with oracle8, tweaks to join syntax Mike Bayer 2006-03-23 06:35:27 +00:00
  • 05e5405051 another adjustment... Mike Bayer 2006-03-23 06:19:26 +00:00
  • 67afbfd8af some adjustments to oracle non-ansi join concatenation, 'row number over' syntax Mike Bayer 2006-03-23 06:17:29 +00:00
  • 0d47db421c added some extra traversal for one-to-many/many-to-one "private" relations to allow single-object commits to cascade into private child objects Mike Bayer 2006-03-22 21:25:10 +00:00
  • 66e1a8be68 removed print Mike Bayer 2006-03-22 17:06:49 +00:00
  • 2cc08018bd fixed oracle's efforts to get an ORDER BY for its ROW NUMBER OVER clause, fixed support for multi-leveled Alias objects to render correctly Mike Bayer 2006-03-22 16:57:46 +00:00
  • 43dd06381c added Mapper class to the docstrings Mike Bayer 2006-03-22 15:39:57 +00:00
  • 9f560d1b4c added some references to selectfirst Mike Bayer 2006-03-22 15:33:26 +00:00
  • 4f39c956da added "nest_on" option for Session, so nested transactions can occur mostly at the Session level, fixes [ticket:113] Mike Bayer 2006-03-22 01:16:16 +00:00
  • 38594ca1e1 added unit test to test proper construction of lazy clause against inherited mapper Mike Bayer 2006-03-22 00:22:26 +00:00
  • bc856c4412 fixed lazy clause construction to go off...you guessed it...the noninherited table ! Mike Bayer 2006-03-21 20:15:44 +00:00
  • f5da1c9957 added "name" back to FromClause Mike Bayer 2006-03-21 20:03:45 +00:00
  • e5d2ac6a11 a few changes to attributes.py to allow faster initialization of object attributes on new objects Mike Bayer 2006-03-21 04:38:54 +00:00
  • 85bc3613e8 a refactoring to the EagerLoaders' _instance method to do a bunch of column arithmetic up front, instead of on each row Mike Bayer 2006-03-21 02:43:58 +00:00
  • 865e2aaa19 a few tweaks and the polymorph example can also use eager loading Mike Bayer 2006-03-20 01:16:16 +00:00
  • 8004a63d72 print remove Mike Bayer 2006-03-19 21:24:05 +00:00
  • bb57264d52 added size limit on test BLOB since mysql has a configured limit of 65535 (at least on my server....) Mike Bayer 2006-03-19 21:23:19 +00:00
  • 6bb1f8e701 got dilbert to be properly modified.... Mike Bayer 2006-03-19 21:12:10 +00:00
  • 2f9bc2c338 added distinct() function to column elements for "DISTINCT <col>" Mike Bayer 2006-03-19 16:21:33 +00:00
  • b5888d8fec got rid of from "ids", using the From object itself as identity now. improves correlation logic and fixes [ticket:116] Mike Bayer 2006-03-19 05:05:01 +00:00
  • 5c1e9392a9 got clause elements inside INSERTs going... Mike Bayer 2006-03-19 04:20:06 +00:00
  • d9f76884fe der + engine... Mike Bayer 2006-03-18 00:33:50 +00:00
  • 48be2fbb7c got oracle parenthesized rules for funcs back, fixed copy_container on function Mike Bayer 2006-03-18 00:32:49 +00:00
  • 5de90720b8 PropertyLoader will not re-determine direction when initialized a second time, as it is re-initialized as a copy made for an inheriting mapper, and no longer can get to the correct inheriting table. Mike Bayer 2006-03-18 00:12:59 +00:00
  • 73ffd12a5a rolled back the operationalerror catch...definitely doesnt work right now Mike Bayer 2006-03-17 23:56:54 +00:00
  • 1d4041e6ac put a try/finally to insure that SQLSession is cleaned out on rollback/commit regardless of issues Mike Bayer 2006-03-17 22:00:24 +00:00
  • 7c00dbe606 overhaul to SQLSession change from yesterday, needs to use the threadlocal capability of the pool after all Mike Bayer 2006-03-17 21:58:00 +00:00
  • 4b4c64fdfb attempting to catch OperationalErrors and invalidate the connection Mike Bayer 2006-03-17 21:22:30 +00:00
  • 6562046964 added invalidate() method to connectionfairy, allows the connection to be removed from pooling Mike Bayer 2006-03-17 21:14:39 +00:00
  • 0e599da0cf identified more issues with inheritance. mapper inheritance is more closed-minded about how it creates the join crit erion as well as the sync rules in inheritance. syncrules have been tightened up to be smarter about creating a new SyncRule given lists of tables and a join clause. properties also checks for relation direction against the "noninherited table" which for the moment makes it a stronger requirement that a relation to a mapper must relate to that mapper's main table, not any tables that it inherits from. Mike Bayer 2006-03-17 21:11:59 +00:00
  • a1e12ea16f an import ! eesh Mike Bayer 2006-03-17 20:22:55 +00:00
  • e0ca052f48 removed old function generation override, ANSI functions handled by the core now Mike Bayer 2006-03-17 17:47:23 +00:00
  • 76c1e2dc92 edits... Mike Bayer 2006-03-17 06:20:24 +00:00
  • 4703e63ef8 making the verbiage a little more formal...(its good stuff, just not sure what I want yet) Mike Bayer 2006-03-17 06:11:34 +00:00
  • f08bf5a6fe fixed nasty transaction counting bug with new session thing + unit test Mike Bayer 2006-03-17 02:51:08 +00:00
  • ecb5b87c19 refactor to engine to have a separate SQLSession object. allows nested transactions. util.ThreadLocal __hasattr__ method/raise_error param meaningless, removed renamed old engines test to reflection Mike Bayer 2006-03-17 02:15:09 +00:00
  • 53527a8a07 fixes to function/property formatting Mike Bayer 2006-03-17 01:01:34 +00:00
  • 550cb31999 SQLSession..... Mike Bayer 2006-03-17 01:01:15 +00:00
  • 568fe87572 factored objectstore into two packages, one more public facing the other more to be *feared* ! :) Mike Bayer 2006-03-17 00:48:12 +00:00
  • c3e614abd2 John Dell'Aquila's patch which fixes [ticket:103] [ticket:105], selecting primary keys properly and using the ALL_* instead of USER_* tables Mike Bayer 2006-03-16 23:55:00 +00:00
  • 7eedf88370 expanded and integrated qvx's patch for dotted function names Mike Bayer 2006-03-16 23:38:14 +00:00