]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
15 years agoclosing out 0.1 maint. rel_0_1 bb_old/rel_0_1
Mike Bayer [Tue, 9 Mar 2010 17:01:19 +0000 (12:01 -0500)] 
closing out 0.1 maint.

19 years ago0.1 maintenance branch
Mike Bayer [Thu, 25 May 2006 14:12:47 +0000 (14:12 +0000)] 
0.1 maintenance branch

19 years agoadded explicit check for "==null()" to produce IS NULL, documnted "==None", "==null...
Mike Bayer [Wed, 24 May 2006 16:35:30 +0000 (16:35 +0000)] 
added explicit check for "==null()" to produce IS NULL, documnted "==None", "==null()", [ticket:187]

19 years agoanonymous indexes use column._label to avoid name collisions
Mike Bayer [Tue, 23 May 2006 14:59:32 +0000 (14:59 +0000)] 
anonymous indexes use column._label to avoid name collisions

19 years agohypothetical (failing) test for primary key selection of joins
Mike Bayer [Tue, 23 May 2006 14:59:11 +0000 (14:59 +0000)] 
hypothetical (failing) test for primary key selection of joins

19 years agoImplemented the changes from ticket 94
jralston [Tue, 23 May 2006 01:03:34 +0000 (01:03 +0000)] 
Implemented the changes from ticket 94

19 years agoc. martinez' fix to slicing logic
Mike Bayer [Thu, 18 May 2006 14:16:56 +0000 (14:16 +0000)] 
c. martinez' fix to slicing logic

19 years agotypo fix
Mike Bayer [Tue, 16 May 2006 00:25:50 +0000 (00:25 +0000)] 
typo fix

19 years agorick morrison's CASE statement + unit test
Mike Bayer [Mon, 15 May 2006 23:47:07 +0000 (23:47 +0000)] 
rick morrison's CASE statement + unit test

19 years agoversion id...
Mike Bayer [Mon, 15 May 2006 22:47:41 +0000 (22:47 +0000)] 
version id...

19 years agotitle change
Mike Bayer [Mon, 15 May 2006 22:45:04 +0000 (22:45 +0000)] 
title change

19 years agoremoved .logo style
Mike Bayer [Mon, 15 May 2006 22:43:19 +0000 (22:43 +0000)] 
removed .logo style

19 years agoextra unicode tests
Mike Bayer [Mon, 15 May 2006 16:44:38 +0000 (16:44 +0000)] 
extra unicode tests
added 'threaded' keyword argument to oracle.py (pretty important....)

19 years agoadded pre-compiled docstring support
Mike Bayer [Fri, 12 May 2006 19:25:41 +0000 (19:25 +0000)] 
added pre-compiled docstring support

19 years agoadded != support for None -> foo IS NOT NULL
Mike Bayer [Fri, 12 May 2006 17:11:46 +0000 (17:11 +0000)] 
added != support for None -> foo IS NOT NULL

19 years agohad unicode check improperly placed
Mike Bayer [Sat, 6 May 2006 18:12:19 +0000 (18:12 +0000)] 
had unicode check improperly placed

19 years agogot removed somehow
Mike Bayer [Fri, 5 May 2006 17:52:00 +0000 (17:52 +0000)] 
got removed somehow

19 years agoadded __mod__ type rel_0_1_7
Mike Bayer [Fri, 5 May 2006 17:45:06 +0000 (17:45 +0000)] 
added __mod__ type

19 years agofixed a _get_criterion mismatch, cleaned up types + updated types doc
Mike Bayer [Fri, 5 May 2006 17:23:00 +0000 (17:23 +0000)] 
fixed a _get_criterion mismatch, cleaned up types + updated types doc

19 years agoadded from_obj option to select()
Mike Bayer [Fri, 5 May 2006 01:18:55 +0000 (01:18 +0000)] 
added from_obj option to select()

19 years agofixed HAVING/ORDER BY order, 0.1.7 prep
Mike Bayer [Fri, 5 May 2006 00:42:42 +0000 (00:42 +0000)] 
fixed HAVING/ORDER BY order, 0.1.7 prep

19 years agosave_obj/delete_obj need to specify column types to binds for primary key criterion
Mike Bayer [Thu, 4 May 2006 20:27:18 +0000 (20:27 +0000)] 
save_obj/delete_obj need to specify column types to binds for primary key criterion

19 years agoforeignkey checks for unicode incoming string
Mike Bayer [Wed, 3 May 2006 17:08:46 +0000 (17:08 +0000)] 
foreignkey checks for unicode incoming string

19 years ago"order_by" parameter propigated to inheriting mappers
Mike Bayer [Wed, 3 May 2006 16:55:56 +0000 (16:55 +0000)] 
"order_by" parameter propigated to inheriting mappers
oracle ROW_NUMBER logic uses select.oid_column to get default order by

19 years agogambit's patch to add DISTINCT ON
Mike Bayer [Tue, 2 May 2006 21:30:41 +0000 (21:30 +0000)] 
gambit's patch to add DISTINCT ON

19 years agoadded 'supports', 'unsupports' decorators to unittests so that they can all pass...
Mike Bayer [Sat, 29 Apr 2006 16:42:37 +0000 (16:42 +0000)] 
added 'supports', 'unsupports' decorators to unittests so that they can all pass on all DBs

19 years agomore work on types. this is the simplest implementation which is a little more manual
Mike Bayer [Sat, 29 Apr 2006 16:12:02 +0000 (16:12 +0000)] 
more work on types.  this is the simplest implementation which is a little more manual

19 years ago*another* big types change....the old way was still wrong...this way is better (still...
Mike Bayer [Sat, 29 Apr 2006 01:05:13 +0000 (01:05 +0000)] 
*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....)

19 years agofix for [ticket:169], moves the creation of "default" parameters more accurately
Mike Bayer [Fri, 28 Apr 2006 23:31:59 +0000 (23:31 +0000)] 
fix for [ticket:169], moves the creation of "default" parameters more accurately
where theyre supposed to be

19 years agofix to subquery parens
Mike Bayer [Fri, 28 Apr 2006 15:02:49 +0000 (15:02 +0000)] 
fix to subquery parens

19 years agothe latest and greatest method to keep attributes from growing
Mike Bayer [Thu, 27 Apr 2006 23:56:09 +0000 (23:56 +0000)] 
the latest and greatest method to keep attributes from growing

19 years agocommented out default schema name check
Mike Bayer [Wed, 26 Apr 2006 21:43:33 +0000 (21:43 +0000)] 
commented out default schema name check

19 years agolocaltime/localtimestamp dont seem to need the underscore for postgres/mysql, making...
Mike Bayer [Wed, 26 Apr 2006 14:55:05 +0000 (14:55 +0000)] 
localtime/localtimestamp dont seem to need the underscore for postgres/mysql, making that default

19 years agoadded unittest to verify eager loads refresh expired instances
Mike Bayer [Wed, 26 Apr 2006 00:45:24 +0000 (00:45 +0000)] 
added unittest to verify eager loads refresh expired instances

19 years agoremoved a "swap" from the lazy binary clause. added a test for that condition....
Mike Bayer [Mon, 24 Apr 2006 22:11:13 +0000 (22:11 +0000)] 
removed a "swap" from the lazy binary clause. added a test for that condition....

19 years agolazyload clause calculation uses anonymous keynames for the bind parameters, to avoid...
Mike Bayer [Mon, 24 Apr 2006 19:21:12 +0000 (19:21 +0000)] 
lazyload clause calculation uses anonymous keynames for the bind parameters, to avoid compilation name conflicts

19 years agoGot the unit tests running again, apart from the two that were not working in
Jonathan LaCour [Sun, 23 Apr 2006 21:41:36 +0000 (21:41 +0000)] 
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.

Also, I moved ActiveMapper to always use the default engine, as there were a
lot of hacks inside ActiveMapper to allow for engine swapping.  The use of the
default engine and the "global_connect" functionality significantly improves
the usability of ActiveMapper.

ActiveMapper will be getting a bit of a refactor/cleanup at some point in the
nearish future, as it has drifted a bit to complexity with the addition of some
features.  For now, this should do the trick!

19 years agoadded temporary option "construct_new" to mapper which will cause the mapper to use...
Mike Bayer [Sun, 23 Apr 2006 20:37:53 +0000 (20:37 +0000)] 
added temporary option "construct_new" to mapper which will cause the mapper to use __new__ to create loaded instances instead of the __init__ method

19 years agosome cleanup
Mike Bayer [Fri, 21 Apr 2006 16:38:29 +0000 (16:38 +0000)] 
some cleanup

19 years agoadded extend() to historyarrayset
Mike Bayer [Fri, 21 Apr 2006 03:53:01 +0000 (03:53 +0000)] 
added extend() to historyarrayset

19 years agoUpdates to ActiveMapper contributed by Gabriel Jacobo. The main purpose of the
Jonathan LaCour [Thu, 20 Apr 2006 21:04:03 +0000 (21:04 +0000)] 
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.

19 years agowhat a strange thing to not be in there....
Mike Bayer [Wed, 19 Apr 2006 19:47:02 +0000 (19:47 +0000)] 
what a strange thing to not be in there....

19 years agofixed up expunge() and the continuing circular refs in attributes, added a unit test...
Mike Bayer [Wed, 19 Apr 2006 19:33:51 +0000 (19:33 +0000)] 
fixed up expunge() and the continuing circular refs in attributes, added a unit test for the whole thing

19 years agogot circular many-to-many relationships to work
Mike Bayer [Wed, 19 Apr 2006 18:24:45 +0000 (18:24 +0000)] 
got circular many-to-many relationships to work

19 years agomapper will verify class inheritance scheme; also will not re-init inherited property...
Mike Bayer [Tue, 18 Apr 2006 18:24:07 +0000 (18:24 +0000)] 
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

19 years agoadded cgi parser for url key/value connect strings, towards [ticket:157]
Mike Bayer [Mon, 17 Apr 2006 23:31:12 +0000 (23:31 +0000)] 
added cgi parser for url key/value connect strings, towards [ticket:157]

19 years agofix for [ticket:158] regarding translate row
Mike Bayer [Mon, 17 Apr 2006 23:19:57 +0000 (23:19 +0000)] 
fix for [ticket:158] regarding translate row

19 years agoadded _get_from_obj to TypeClause
Mike Bayer [Mon, 17 Apr 2006 01:15:19 +0000 (01:15 +0000)] 
added _get_from_obj to TypeClause

19 years agoa new batching algorithm for the topological sort
Mike Bayer [Sun, 16 Apr 2006 23:47:26 +0000 (23:47 +0000)] 
a new batching algorithm for the topological sort

19 years agohad to take out the "treeification" of the dependency sort as it doenst really work...
Mike Bayer [Fri, 14 Apr 2006 18:11:54 +0000 (18:11 +0000)] 
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

19 years ago0.1.6... rel_0_1_6
Mike Bayer [Wed, 12 Apr 2006 19:40:43 +0000 (19:40 +0000)] 
0.1.6...

19 years ago0.1.6 prep
Mike Bayer [Tue, 11 Apr 2006 22:15:49 +0000 (22:15 +0000)] 
0.1.6 prep

19 years agoadded a failing unittest for inheriting mappers with add_property
Mike Bayer [Tue, 11 Apr 2006 16:59:18 +0000 (16:59 +0000)] 
added a failing unittest for inheriting mappers with add_property

19 years agoadded patch for mxDateTime support, [ticket:5], courtesy jkakar@kakar.ca
Mike Bayer [Tue, 11 Apr 2006 16:58:15 +0000 (16:58 +0000)] 
added patch for mxDateTime support, [ticket:5], courtesy jkakar@kakar.ca

19 years agolatest from j. ellis...
Mike Bayer [Mon, 10 Apr 2006 05:44:03 +0000 (05:44 +0000)] 
latest from j. ellis...

19 years agomore files moving to .txt format plus enhancements to markdown converter
Mike Bayer [Mon, 10 Apr 2006 00:58:15 +0000 (00:58 +0000)] 
more files moving to .txt format plus enhancements to markdown converter

19 years agoAdded preliminary support for inheritance.
jeff [Sat, 8 Apr 2006 17:11:53 +0000 (17:11 +0000)] 
Added preliminary support for inheritance.

19 years agoinstall_mod can take strings or module items
Mike Bayer [Fri, 7 Apr 2006 00:25:58 +0000 (00:25 +0000)] 
install_mod can take strings or module items

19 years agopool argument adjusts for DBProxy/Pool
Mike Bayer [Fri, 7 Apr 2006 00:22:55 +0000 (00:22 +0000)] 
pool argument adjusts for DBProxy/Pool

19 years agoa little spring cleaning for the util package, etc
Mike Bayer [Fri, 7 Apr 2006 00:11:13 +0000 (00:11 +0000)] 
a little spring cleaning for the util package, etc

19 years agosplit up Session into Session/LegacySession, added some new constructor args
Mike Bayer [Thu, 6 Apr 2006 23:46:02 +0000 (23:46 +0000)] 
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

19 years agomapper's querying facilities migrated to new query.Query() object, which can receive...
Mike Bayer [Thu, 6 Apr 2006 21:12:00 +0000 (21:12 +0000)] 
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.

19 years agothe __iter__ method on historyarraylist seemed to get broked...hmmmm
Mike Bayer [Thu, 6 Apr 2006 19:25:58 +0000 (19:25 +0000)] 
the __iter__ method on historyarraylist seemed to get broked...hmmmm

19 years agoadded explicit "session" argument to get(), select_whereclause in mapper, as well...
Mike Bayer [Thu, 6 Apr 2006 19:01:14 +0000 (19:01 +0000)] 
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

19 years agothis assertion not really needed, esp. if a PickleType is used to take in a list
Mike Bayer [Thu, 6 Apr 2006 14:54:16 +0000 (14:54 +0000)] 
this assertion not really needed, esp. if a PickleType is used to take in a list

19 years agoadded pickle test
Mike Bayer [Thu, 6 Apr 2006 14:32:57 +0000 (14:32 +0000)] 
added pickle test

19 years agothe ultimate "hands off" approach to the object's dictionary of managed attributes
Mike Bayer [Thu, 6 Apr 2006 14:27:03 +0000 (14:27 +0000)] 
the ultimate "hands off" approach to the object's dictionary of managed attributes

19 years agomoves the binding of a TypeEngine object from "schema/statement creation" time into...
Mike Bayer [Thu, 6 Apr 2006 01:15:46 +0000 (01:15 +0000)] 
moves the binding of a TypeEngine object from "schema/statement creation" time into "compilation" time

19 years agofactored oid column into a consistent late-bound pattern, fixing [ticket:146]
Mike Bayer [Tue, 4 Apr 2006 21:40:18 +0000 (21:40 +0000)] 
factored oid column into a consistent late-bound pattern, fixing [ticket:146]

19 years agoAdded cast() to allow use of cast(tbl.c.col as Numeric(4,2)) in select and where...
Robert Leftwich [Tue, 4 Apr 2006 00:28:33 +0000 (00:28 +0000)] 
Added cast() to allow use of cast(tbl.c.col as Numeric(4,2)) in select and where clauses. Unit tests for same.

19 years agoput proper return type
Mike Bayer [Mon, 3 Apr 2006 22:48:28 +0000 (22:48 +0000)] 
put proper return type

19 years agoadjustments to auto-table-aliasing logic (R. Morrison)
Mike Bayer [Mon, 3 Apr 2006 22:04:08 +0000 (22:04 +0000)] 
adjustments to auto-table-aliasing logic (R. Morrison)

19 years agoadded a unit test for the "version_id" keyword argument, which passes based on previo...
Mike Bayer [Mon, 3 Apr 2006 22:01:35 +0000 (22:01 +0000)] 
added a unit test for the "version_id" keyword argument, which passes based on previous changes to Mapper

19 years agoupdate
Mike Bayer [Mon, 3 Apr 2006 21:46:00 +0000 (21:46 +0000)] 
update

19 years agoadded 'entity_name' keyword argument to mapper. a mapper is now associated with...
Mike Bayer [Mon, 3 Apr 2006 21:43:22 +0000 (21:43 +0000)] 
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.

19 years agoattributes overhaul #2 - attribute manager now tracks class-level initializers strict...
Mike Bayer [Mon, 3 Apr 2006 21:04:16 +0000 (21:04 +0000)] 
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.

19 years agofurther order_by: order_by() with no arguments should not affect the current order_b...
Mike Bayer [Mon, 3 Apr 2006 17:49:41 +0000 (17:49 +0000)] 
further order_by:  order_by() with no arguments should not affect the current order_by clause (same with group_by)

19 years agoack, fixes to the order by stuff from last night
Mike Bayer [Mon, 3 Apr 2006 17:46:08 +0000 (17:46 +0000)] 
ack, fixes to the order by stuff from last night

19 years agoDOH !
Mike Bayer [Mon, 3 Apr 2006 17:13:42 +0000 (17:13 +0000)] 
DOH !

19 years agostill tryin to clarify....
Mike Bayer [Mon, 3 Apr 2006 05:50:34 +0000 (05:50 +0000)] 
still tryin to clarify....

19 years agoadded to_selectable() onto ColumnClause to simplify _get_col_by_original
Mike Bayer [Mon, 3 Apr 2006 05:22:42 +0000 (05:22 +0000)] 
added to_selectable() onto ColumnClause to simplify _get_col_by_original

19 years agomade order_by/group_by construction a little more simplisitc
Mike Bayer [Mon, 3 Apr 2006 05:00:53 +0000 (05:00 +0000)] 
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

19 years agoadded a type to label....
Mike Bayer [Mon, 3 Apr 2006 03:24:06 +0000 (03:24 +0000)] 
added a type to label....

19 years agoconverted to markdown, added MS-SQL
Mike Bayer [Mon, 3 Apr 2006 02:00:18 +0000 (02:00 +0000)] 
converted to markdown, added MS-SQL

19 years agomerged Rick Morrison / Runar Petursson's MS-SQL module, with adjustments to alias...
Mike Bayer [Mon, 3 Apr 2006 01:35:48 +0000 (01:35 +0000)] 
merged Rick Morrison / Runar Petursson's MS-SQL module, with adjustments to alias schema-qualified Table objects

19 years agoextra sql statements...
Mike Bayer [Sun, 2 Apr 2006 22:56:19 +0000 (22:56 +0000)] 
extra sql statements...

19 years agogot SQL blocks to work with markdown system, other enhancements
Mike Bayer [Sun, 2 Apr 2006 22:52:13 +0000 (22:52 +0000)] 
got SQL blocks to work with markdown system, other enhancements
sqlconstruction converted to markdown syntax

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