]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
19 years agofixed reset_history method when applied to an attribute that had an attribute-level...
Mike Bayer [Sun, 2 Apr 2006 04:13:03 +0000 (04:13 +0000)] 
fixed reset_history method when applied to an attribute that had an attribute-level TriggeredAttribute set on it, added unit test.

19 years agofix to oeprator test for new parenthesized rules
Mike Bayer [Sun, 2 Apr 2006 04:09:05 +0000 (04:09 +0000)] 
fix to oeprator test for new parenthesized rules

19 years agoadded "parenthesis" check on binary clauses referencing binary clauses, for [ticket...
Mike Bayer [Sun, 2 Apr 2006 03:22:17 +0000 (03:22 +0000)] 
added "parenthesis" check on binary clauses referencing binary clauses, for [ticket:144]

19 years agocleanup of attributes, better naming, added weak reference to base managed attribute...
Mike Bayer [Sat, 1 Apr 2006 21:00:41 +0000 (21:00 +0000)] 
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

19 years agosecond assertion
Mike Bayer [Fri, 31 Mar 2006 23:46:02 +0000 (23:46 +0000)] 
second assertion

19 years agoadded unit test for the old commit that was in [changeset:1186]. modified its behavi...
Mike Bayer [Fri, 31 Mar 2006 23:43:20 +0000 (23:43 +0000)] 
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.

19 years agoadded for_update flag to Select/CompoundSelect
Mike Bayer [Fri, 31 Mar 2006 22:28:17 +0000 (22:28 +0000)] 
added for_update flag to Select/CompoundSelect

19 years agoadjustments...
Mike Bayer [Fri, 31 Mar 2006 07:36:51 +0000 (07:36 +0000)] 
adjustments...

19 years agotweak...
Mike Bayer [Fri, 31 Mar 2006 07:29:28 +0000 (07:29 +0000)] 
tweak...

19 years agogot install_mods to work
Mike Bayer [Fri, 31 Mar 2006 07:22:45 +0000 (07:22 +0000)] 
got install_mods to work

19 years agointroducing...the mods package ! the SelectResults thing moves as the first mod
Mike Bayer [Fri, 31 Mar 2006 07:20:13 +0000 (07:20 +0000)] 
introducing...the mods package ! the SelectResults thing moves as the first mod

19 years agostarting to refactor mapper slightly, adding entity_name, version_id_col, allowing...
Mike Bayer [Fri, 31 Mar 2006 04:27:05 +0000 (04:27 +0000)] 
starting to refactor mapper slightly, adding entity_name, version_id_col, allowing keywords in mapper.options()

19 years agowow, __len__ is a real disaster when combined with list()...turning that off
Mike Bayer [Fri, 31 Mar 2006 02:41:32 +0000 (02:41 +0000)] 
wow, __len__ is a real disaster when combined with list()...turning that off

19 years agoJonas Borgström's fantastic SelectRsults patch that adds dynamic list argument suppor...
Mike Bayer [Fri, 31 Mar 2006 02:25:59 +0000 (02:25 +0000)] 
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.

19 years agofixed default example
Mike Bayer [Tue, 28 Mar 2006 03:07:50 +0000 (03:07 +0000)] 
fixed default example

19 years agofixed "DISTINCT" spelling
Mike Bayer [Tue, 28 Mar 2006 02:04:32 +0000 (02:04 +0000)] 
fixed "DISTINCT" spelling

19 years agod rel_0_1_5
Mike Bayer [Mon, 27 Mar 2006 03:12:27 +0000 (03:12 +0000)] 
d

19 years agotweak to mapper to allow inheritance on the same table.
Mike Bayer [Mon, 27 Mar 2006 02:58:20 +0000 (02:58 +0000)] 
tweak to mapper to allow inheritance on the same table.

19 years agobackrefs on cyclical relationships were breaking for the "root" node which had None...
Mike Bayer [Mon, 27 Mar 2006 02:02:06 +0000 (02:02 +0000)] 
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.

19 years ago0.1.5 prep
Mike Bayer [Mon, 27 Mar 2006 00:51:51 +0000 (00:51 +0000)] 
0.1.5 prep

19 years agoremoved..
Mike Bayer [Mon, 27 Mar 2006 00:16:54 +0000 (00:16 +0000)] 
removed..

19 years agoadded always_refresh flag. when the mapper loads rows, it will pull objects from...
Mike Bayer [Sun, 26 Mar 2006 23:51:13 +0000 (23:51 +0000)] 
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

19 years agorework to expire() to make it smarter. when you expire(), history is immediately...
Mike Bayer [Sun, 26 Mar 2006 21:44:22 +0000 (21:44 +0000)] 
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.

19 years agofixed pickle example, its standard anyway....
Mike Bayer [Sun, 26 Mar 2006 19:58:08 +0000 (19:58 +0000)] 
fixed pickle example, its standard anyway....

19 years agocolumn label generation checks for a conflict against a column named the same as...
Mike Bayer [Sun, 26 Mar 2006 15:36:43 +0000 (15:36 +0000)] 
column label generation checks for a conflict against a column named the same as the label
comment in mapper

19 years agoimproved translation of rows when proxying rows from one mapper to another.
Mike Bayer [Sun, 26 Mar 2006 07:21:28 +0000 (07:21 +0000)] 
improved translation of rows when proxying rows from one mapper to another.

19 years agoa cool example that illustrates vertical table storage, and objects that automaticall...
Mike Bayer [Sun, 26 Mar 2006 06:30:21 +0000 (06:30 +0000)] 
a cool example that illustrates vertical table storage, and objects that automatically configure themselves for this type of storage

19 years agoexcept it fails a unit test. OK, make it ia KeyError
Mike Bayer [Sun, 26 Mar 2006 06:29:47 +0000 (06:29 +0000)] 
except it fails  a unit test.  OK, make it ia KeyError

19 years agoutil: the __setitem__ method on historyarraylist was meaningless, surprising nobody...
Mike Bayer [Sun, 26 Mar 2006 06:26:02 +0000 (06:26 +0000)] 
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

19 years agoremoved circular loop in creating new list elements, fixes a common refresh() condition
Mike Bayer [Sat, 25 Mar 2006 21:44:42 +0000 (21:44 +0000)] 
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)

19 years agoremoved all "tablename + '_' + columname" code and replaced with column._label, to...
Mike Bayer [Sat, 25 Mar 2006 21:14:54 +0000 (21:14 +0000)] 
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

19 years agoadded *args **kwargs pass-thru to transaction()
Mike Bayer [Sat, 25 Mar 2006 20:32:10 +0000 (20:32 +0000)] 
added *args **kwargs pass-thru to transaction()

19 years agomethod add
Mike Bayer [Sat, 25 Mar 2006 20:28:01 +0000 (20:28 +0000)] 
method add

19 years agoadded expire/refresh/expunge to assign_mapper
Mike Bayer [Sat, 25 Mar 2006 20:27:25 +0000 (20:27 +0000)] 
added expire/refresh/expunge to assign_mapper

19 years agoah well the overflow doesnt work
Mike Bayer [Sat, 25 Mar 2006 19:52:37 +0000 (19:52 +0000)] 
ah well the overflow doesnt work

19 years agodev
Mike Bayer [Sat, 25 Mar 2006 19:46:04 +0000 (19:46 +0000)] 
dev

19 years agodev
Mike Bayer [Sat, 25 Mar 2006 19:34:34 +0000 (19:34 +0000)] 
dev

19 years agodoc dev...
Mike Bayer [Sat, 25 Mar 2006 18:53:51 +0000 (18:53 +0000)] 
doc dev...

19 years agodoc dev
Mike Bayer [Sat, 25 Mar 2006 18:13:01 +0000 (18:13 +0000)] 
doc dev

19 years agodoc devel
Mike Bayer [Sat, 25 Mar 2006 17:23:41 +0000 (17:23 +0000)] 
doc devel

19 years agoupdate to types doc
Mike Bayer [Sat, 25 Mar 2006 15:25:29 +0000 (15:25 +0000)] 
update to types doc
commented out 'tutorial' from docuemnt_base until its complete
float extends numeric type

19 years agoResultProxy has an iterator interface
Mike Bayer [Sat, 25 Mar 2006 02:49:10 +0000 (02:49 +0000)] 
ResultProxy has an iterator interface

19 years agogot some support for mapping to a select that only selects some of the columns of...
Mike Bayer [Sat, 25 Mar 2006 02:25:59 +0000 (02:25 +0000)] 
got some support for mapping to a select that only selects some of the columns of an underlying table

19 years agoadded check in SessionTrans.begin() that the underlying unit of work is still the...
Mike Bayer [Sat, 25 Mar 2006 01:58:27 +0000 (01:58 +0000)] 
added check in SessionTrans.begin() that the underlying unit of work is still the current uow

19 years agoadded expunge() method to objectstore
Mike Bayer [Sat, 25 Mar 2006 00:17:51 +0000 (00:17 +0000)] 
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

19 years agoadded overrideable managed_attribute_dict() function which can be changed
Mike Bayer [Fri, 24 Mar 2006 23:06:07 +0000 (23:06 +0000)] 
added overrideable managed_attribute_dict() function which can be changed
to eliminate circular references on objects

19 years agosome more tweaks to get more advanced polymorphic stuff to work
Mike Bayer [Fri, 24 Mar 2006 06:28:27 +0000 (06:28 +0000)] 
some more tweaks to get more advanced polymorphic stuff to work

19 years agoadded explicit "convert date types to a string in bind params", since pysqlite1 doesn...
Mike Bayer [Thu, 23 Mar 2006 07:38:28 +0000 (07:38 +0000)] 
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

19 years agoadded oracle8 test target, sets use_ansi to false
Mike Bayer [Thu, 23 Mar 2006 06:35:27 +0000 (06:35 +0000)] 
added oracle8 test target, sets use_ansi to false
got mapper, objectstore, inheritance unittest working with oracle8, tweaks to join syntax

19 years agoanother adjustment...
Mike Bayer [Thu, 23 Mar 2006 06:19:26 +0000 (06:19 +0000)] 
another adjustment...

19 years agosome adjustments to oracle non-ansi join concatenation, 'row number over' syntax
Mike Bayer [Thu, 23 Mar 2006 06:17:29 +0000 (06:17 +0000)] 
some adjustments to oracle non-ansi join concatenation, 'row number over' syntax

19 years agoadded some extra traversal for one-to-many/many-to-one "private" relations to allow...
Mike Bayer [Wed, 22 Mar 2006 21:25:10 +0000 (21:25 +0000)] 
added some extra traversal for one-to-many/many-to-one "private" relations to allow single-object commits to cascade into private child objects

19 years agoremoved print
Mike Bayer [Wed, 22 Mar 2006 17:06:49 +0000 (17:06 +0000)] 
removed print

19 years agofixed oracle's efforts to get an ORDER BY for its ROW NUMBER OVER clause, fixed suppo...
Mike Bayer [Wed, 22 Mar 2006 16:57:46 +0000 (16:57 +0000)] 
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

19 years agoadded Mapper class to the docstrings
Mike Bayer [Wed, 22 Mar 2006 15:39:57 +0000 (15:39 +0000)] 
added Mapper class to the docstrings

19 years agoadded some references to selectfirst
Mike Bayer [Wed, 22 Mar 2006 15:33:26 +0000 (15:33 +0000)] 
added some references to selectfirst

19 years agoadded "nest_on" option for Session, so nested transactions can occur mostly at the...
Mike Bayer [Wed, 22 Mar 2006 01:16:16 +0000 (01:16 +0000)] 
added "nest_on" option for Session, so nested transactions can occur mostly at the Session level,
fixes [ticket:113]

19 years agoadded unit test to test proper construction of lazy clause against inherited mapper
Mike Bayer [Wed, 22 Mar 2006 00:22:26 +0000 (00:22 +0000)] 
added unit test to test proper construction of lazy clause against inherited mapper

19 years agofixed lazy clause construction to go off...you guessed it...the noninherited table !
Mike Bayer [Tue, 21 Mar 2006 20:15:44 +0000 (20:15 +0000)] 
fixed lazy clause construction to go off...you guessed it...the noninherited table !

19 years agoadded "name" back to FromClause
Mike Bayer [Tue, 21 Mar 2006 20:03:45 +0000 (20:03 +0000)] 
added "name" back to FromClause

19 years agoa few changes to attributes.py to allow faster initialization of object attributes...
Mike Bayer [Tue, 21 Mar 2006 04:38:54 +0000 (04:38 +0000)] 
a few changes to attributes.py to allow faster initialization of object attributes on new objects

19 years agoa refactoring to the EagerLoaders' _instance method to do a bunch of column arithmeti...
Mike Bayer [Tue, 21 Mar 2006 02:43:58 +0000 (02:43 +0000)] 
a refactoring to the EagerLoaders' _instance method to do a bunch of column arithmetic up front, instead of on each row

19 years agoa few tweaks and the polymorph example can also use eager loading
Mike Bayer [Mon, 20 Mar 2006 01:16:16 +0000 (01:16 +0000)] 
a few tweaks and the polymorph example can also use eager loading

19 years agoprint remove
Mike Bayer [Sun, 19 Mar 2006 21:24:05 +0000 (21:24 +0000)] 
print remove

19 years agoadded size limit on test BLOB since mysql has a configured limit of 65535 (at least...
Mike Bayer [Sun, 19 Mar 2006 21:23:19 +0000 (21:23 +0000)] 
added size limit on test BLOB since mysql has a configured limit of 65535 (at least on my server....)

19 years agogot dilbert to be properly modified....
Mike Bayer [Sun, 19 Mar 2006 21:12:10 +0000 (21:12 +0000)] 
got dilbert to be properly modified....

19 years agoadded distinct() function to column elements for "DISTINCT <col>"
Mike Bayer [Sun, 19 Mar 2006 16:21:33 +0000 (16:21 +0000)] 
added distinct() function to column elements for "DISTINCT <col>"

19 years agogot rid of from "ids", using the From object itself as identity now. improves correl...
Mike Bayer [Sun, 19 Mar 2006 05:05:01 +0000 (05:05 +0000)] 
got rid of from "ids", using the From object itself as identity now.  improves correlation logic and fixes [ticket:116]

19 years agogot clause elements inside INSERTs going...
Mike Bayer [Sun, 19 Mar 2006 04:20:06 +0000 (04:20 +0000)] 
got clause elements inside INSERTs going...

19 years agoder + engine...
Mike Bayer [Sat, 18 Mar 2006 00:33:50 +0000 (00:33 +0000)] 
der + engine...

19 years agogot oracle parenthesized rules for funcs back, fixed copy_container on function
Mike Bayer [Sat, 18 Mar 2006 00:32:49 +0000 (00:32 +0000)] 
got oracle parenthesized rules for funcs back, fixed copy_container on function

19 years agoPropertyLoader will not re-determine direction when initialized a second time, as...
Mike Bayer [Sat, 18 Mar 2006 00:12:59 +0000 (00:12 +0000)] 
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.

19 years agorolled back the operationalerror catch...definitely doesnt work right now
Mike Bayer [Fri, 17 Mar 2006 23:56:54 +0000 (23:56 +0000)] 
rolled back the operationalerror catch...definitely doesnt work right now

19 years agoput a try/finally to insure that SQLSession is cleaned out on rollback/commit regardl...
Mike Bayer [Fri, 17 Mar 2006 22:00:24 +0000 (22:00 +0000)] 
put a try/finally to insure that SQLSession is cleaned out on rollback/commit regardless of issues

19 years agooverhaul to SQLSession change from yesterday, needs to use the threadlocal capability...
Mike Bayer [Fri, 17 Mar 2006 21:58:00 +0000 (21:58 +0000)] 
overhaul to SQLSession change from yesterday, needs to use the threadlocal capability of the pool after all

19 years agoattempting to catch OperationalErrors and invalidate the connection
Mike Bayer [Fri, 17 Mar 2006 21:22:30 +0000 (21:22 +0000)] 
attempting to catch OperationalErrors and invalidate the connection

19 years agoadded invalidate() method to connectionfairy, allows the connection to be removed...
Mike Bayer [Fri, 17 Mar 2006 21:14:39 +0000 (21:14 +0000)] 
added invalidate() method to connectionfairy, allows the connection to be removed from pooling

19 years agoidentified more issues with inheritance. mapper inheritance is more closed-minded...
Mike Bayer [Fri, 17 Mar 2006 21:11:59 +0000 (21:11 +0000)] 
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.

19 years agoan import ! eesh
Mike Bayer [Fri, 17 Mar 2006 20:22:55 +0000 (20:22 +0000)] 
an import !  eesh

19 years agoremoved old function generation override, ANSI functions handled by the core now
Mike Bayer [Fri, 17 Mar 2006 17:47:23 +0000 (17:47 +0000)] 
removed old function generation override, ANSI functions handled by the core now

19 years agoedits...
Mike Bayer [Fri, 17 Mar 2006 06:20:24 +0000 (06:20 +0000)] 
edits...

19 years agomaking the verbiage a little more formal...(its good stuff, just not sure what I...
Mike Bayer [Fri, 17 Mar 2006 06:11:34 +0000 (06:11 +0000)] 
making the verbiage a little more formal...(its good stuff, just not sure what I want yet)

19 years agofixed nasty transaction counting bug with new session thing + unit test
Mike Bayer [Fri, 17 Mar 2006 02:51:08 +0000 (02:51 +0000)] 
fixed nasty transaction counting bug with new session thing + unit test

19 years agorefactor to engine to have a separate SQLSession object. allows nested transactions.
Mike Bayer [Fri, 17 Mar 2006 02:15:09 +0000 (02:15 +0000)] 
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

19 years agofixes to function/property formatting
Mike Bayer [Fri, 17 Mar 2006 01:01:34 +0000 (01:01 +0000)] 
fixes to function/property formatting

19 years agoSQLSession.....
Mike Bayer [Fri, 17 Mar 2006 01:01:15 +0000 (01:01 +0000)] 
SQLSession.....

19 years agofactored objectstore into two packages, one more public facing the other more to...
Mike Bayer [Fri, 17 Mar 2006 00:48:12 +0000 (00:48 +0000)] 
factored objectstore into two packages, one more public facing the other more to be *feared* ! :)

19 years agoJohn Dell'Aquila's patch which fixes [ticket:103] [ticket:105], selecting primary...
Mike Bayer [Thu, 16 Mar 2006 23:55:00 +0000 (23:55 +0000)] 
John Dell'Aquila's patch which fixes [ticket:103] [ticket:105], selecting primary keys properly and using the ALL_* instead of USER_* tables

19 years agoexpanded and integrated qvx's patch for dotted function names
Mike Bayer [Thu, 16 Mar 2006 23:38:14 +0000 (23:38 +0000)] 
expanded and integrated qvx's patch for dotted function names

19 years agoreorganized SingletonThreadPool to return distinct connections in the same thread...
Mike Bayer [Thu, 16 Mar 2006 19:09:53 +0000 (19:09 +0000)] 
reorganized SingletonThreadPool to return distinct connections in the same thread; use_threadlocal behavior is now switchable

19 years agoadded txt2myt.py to the genhtml/runhtml scripts, added exception if required modules...
Mike Bayer [Thu, 16 Mar 2006 19:08:35 +0000 (19:08 +0000)] 
added txt2myt.py to the genhtml/runhtml scripts, added exception if required modules arent found.
edited tutorial.txt, added particles, etc.
added clue that firebird might be supported to dbengine.myt

19 years agoJ. Ellis' "Simple" ORM module...for Spyce ! (and others...)
Mike Bayer [Thu, 16 Mar 2006 17:48:51 +0000 (17:48 +0000)] 
J. Ellis' "Simple" ORM module...for Spyce !  (and others...)

19 years agoTutorial draft (not finished) and documentation framework improvements
Alexey Shamrin [Wed, 15 Mar 2006 13:39:11 +0000 (13:39 +0000)] 
Tutorial draft (not finished) and documentation framework improvements

* a first step to a new documentation framework, using Markdown syntax, with
  some extensions (detailed in txt2myt.py docstrings):
  * `rel:something` for internal links
  * `{@name=something}` to override default header names (used when linking)
  * `{python}` to force code block to use Python syntax highlighting (not
     needed when using examples with `>>>` prompt)
* txt2myt.py -- converter from .txt to .myt
* a draft of tutorial.txt, which uses new syntax
* testdocs.py -- check examples in documentation using doctest (currently only
  in tutorial.txt)

19 years agoadded unique_connection() method to engine, connection pool to return a connection
Mike Bayer [Tue, 14 Mar 2006 19:51:03 +0000 (19:51 +0000)] 
added unique_connection() method to engine, connection pool to return a connection
that is not part of the thread-local context or any current transaction

19 years agofixed attributes bug where if an object is committed, its lazy-loaded list got
Mike Bayer [Tue, 14 Mar 2006 16:56:05 +0000 (16:56 +0000)] 
fixed attributes bug where if an object is committed, its lazy-loaded list got
blown away if it hadnt been loaded

19 years agoformatting...
Mike Bayer [Tue, 14 Mar 2006 16:49:15 +0000 (16:49 +0000)] 
formatting...

19 years agoremoved redundant is_dirty function
Mike Bayer [Tue, 14 Mar 2006 16:24:12 +0000 (16:24 +0000)] 
removed redundant is_dirty function

19 years agomore notes, docs rel_0_1_4
Mike Bayer [Mon, 13 Mar 2006 17:32:13 +0000 (17:32 +0000)] 
more notes, docs

19 years agotweak
Mike Bayer [Mon, 13 Mar 2006 17:18:03 +0000 (17:18 +0000)] 
tweak

19 years agoadded scalar subqueries within the column clause of another select
Mike Bayer [Mon, 13 Mar 2006 17:16:52 +0000 (17:16 +0000)] 
added scalar subqueries within the column clause of another select