]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
20 years agoconnection more careful about checking if its closed before operations
Mike Bayer [Mon, 29 May 2006 02:57:33 +0000 (02:57 +0000)] 
connection more careful about checking if its closed before operations
small fix to table sort if no tables
unit test tweaks

20 years agoadded extra info for association object
Mike Bayer [Mon, 29 May 2006 02:33:03 +0000 (02:33 +0000)] 
added extra info for association object
threadlocal transaction benefits from an explicit close() on the connection besides de-referencing it

20 years agoexceptions...
Mike Bayer [Mon, 29 May 2006 02:12:53 +0000 (02:12 +0000)] 
exceptions...

20 years agounit test adjustments to insure weakref status on connecitonfairy
Mike Bayer [Mon, 29 May 2006 02:11:14 +0000 (02:11 +0000)] 
unit test adjustments to insure weakref status on connecitonfairy

20 years agopool needed weakref
Mike Bayer [Sun, 28 May 2006 23:57:14 +0000 (23:57 +0000)] 
pool needed weakref
modified auto rollback to only occur when no transaction
more unit tests

20 years agomore tlocal trans stuff
Mike Bayer [Sun, 28 May 2006 20:27:08 +0000 (20:27 +0000)] 
more tlocal trans stuff

20 years agoskips blank arguments
Mike Bayer [Sun, 28 May 2006 19:16:43 +0000 (19:16 +0000)] 
skips blank arguments

20 years agoextra tests...
Mike Bayer [Sun, 28 May 2006 19:02:09 +0000 (19:02 +0000)] 
extra tests...

20 years agodo-nothing dispose() method in SingletonThreadPool
Mike Bayer [Sun, 28 May 2006 18:01:22 +0000 (18:01 +0000)] 
do-nothing dispose() method in SingletonThreadPool

20 years agowould help if commit() worked too...
Mike Bayer [Sun, 28 May 2006 17:59:06 +0000 (17:59 +0000)] 
would help if commit() worked too...

20 years agoTLEngine needed a partial rewrite....
Mike Bayer [Sun, 28 May 2006 17:46:45 +0000 (17:46 +0000)] 
TLEngine needed a partial rewrite....

20 years agocheck for not enough inserted pks to backfill the object
Mike Bayer [Sun, 28 May 2006 16:37:22 +0000 (16:37 +0000)] 
check for not enough inserted pks to backfill the object

20 years agoraises error for bad url
Mike Bayer [Sun, 28 May 2006 16:12:15 +0000 (16:12 +0000)] 
raises error for bad url

20 years agopropigate "pool" argument
Mike Bayer [Sun, 28 May 2006 16:07:15 +0000 (16:07 +0000)] 
propigate "pool" argument

20 years agoselectresults docs
Mike Bayer [Sun, 28 May 2006 05:52:52 +0000 (05:52 +0000)] 
selectresults docs

20 years agoit's police....
Mike Bayer [Sun, 28 May 2006 01:01:45 +0000 (01:01 +0000)] 
it's police....

20 years agoformatting etc
Mike Bayer [Sun, 28 May 2006 00:31:34 +0000 (00:31 +0000)] 
formatting etc

20 years agotake two rel_0_2_0
Mike Bayer [Sat, 27 May 2006 20:33:41 +0000 (20:33 +0000)] 
take two

20 years ago0.2 prep
Mike Bayer [Sat, 27 May 2006 20:33:22 +0000 (20:33 +0000)] 
0.2 prep

20 years agokeep verbose false
Mike Bayer [Sat, 27 May 2006 19:48:34 +0000 (19:48 +0000)] 
keep verbose false

20 years agolatest overhaul to association objects, plus an actual unit test
Mike Bayer [Sat, 27 May 2006 19:44:05 +0000 (19:44 +0000)] 
latest overhaul to association objects, plus an actual unit test
this change probably fixes [ticket:134]

20 years agodoc update
Mike Bayer [Sat, 27 May 2006 17:51:30 +0000 (17:51 +0000)] 
doc update

20 years agobroke out dumper into a separate module
Mike Bayer [Sat, 27 May 2006 17:46:03 +0000 (17:46 +0000)] 
broke out dumper into a separate module

20 years agodoc updates, added 'save' method to assignmapper
Mike Bayer [Sat, 27 May 2006 16:59:07 +0000 (16:59 +0000)] 
doc updates, added 'save' method to assignmapper

20 years agocircular dependency sort will not create new UOWTasks/UOWDependencyProcessors mid...
Mike Bayer [Sat, 27 May 2006 16:39:05 +0000 (16:39 +0000)] 
circular dependency sort will not create new UOWTasks/UOWDependencyProcessors mid-stream
further construction on migrating UOWTask to be fully polymorphic

20 years agounitofwork more Set oriented now
Mike Bayer [Sat, 27 May 2006 05:45:21 +0000 (05:45 +0000)] 
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.

20 years agoconverted sqlsoup, got its doctests working (werent working in 0.1 either....), added...
Mike Bayer [Sat, 27 May 2006 01:19:56 +0000 (01:19 +0000)] 
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

20 years agomerged r. morrisons 0.2 update from branch to trunk
Mike Bayer [Sat, 27 May 2006 00:16:45 +0000 (00:16 +0000)] 
merged r. morrisons 0.2 update from branch to trunk

20 years agoadded has_key to RowProxy, + caching of key lookups
Mike Bayer [Sat, 27 May 2006 00:13:12 +0000 (00:13 +0000)] 
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

20 years agouncompleted additional inheritance tests
Mike Bayer [Fri, 26 May 2006 23:35:56 +0000 (23:35 +0000)] 
uncompleted additional inheritance tests

20 years agosome TODOs
Mike Bayer [Thu, 25 May 2006 18:30:36 +0000 (18:30 +0000)] 
some TODOs

20 years agobind parameter conflict in _get() resolved
Mike Bayer [Thu, 25 May 2006 18:20:39 +0000 (18:20 +0000)] 
bind parameter conflict in _get() resolved

20 years agopretty major change to inheritance topological sorting - mapper dependencies are...
Mike Bayer [Thu, 25 May 2006 17:53:06 +0000 (17:53 +0000)] 
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.

20 years agocorrection to running single named tests
Mike Bayer [Thu, 25 May 2006 16:23:39 +0000 (16:23 +0000)] 
correction to running single named tests

20 years agoworkaround for get that requires multiple ids in the case of joined table inheritance
Mike Bayer [Thu, 25 May 2006 15:02:59 +0000 (15:02 +0000)] 
workaround for get that requires multiple ids in the case of joined table inheritance

20 years agoadded 0.1.7 changes to changelog
Mike Bayer [Thu, 25 May 2006 14:48:32 +0000 (14:48 +0000)] 
added 0.1.7 changes to changelog
latest sqlsoup from 0.1.7
s. cazzells fixes to assignmapper, threadlocal

20 years agomerged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1
Mike Bayer [Thu, 25 May 2006 14:20:23 +0000 (14:20 +0000)] 
merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1

20 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]

20 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

20 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

20 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

20 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

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

20 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

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

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

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

20 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....)

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

20 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

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

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

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

20 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

20 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()

20 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

20 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

20 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

20 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

20 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

20 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

20 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

20 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....)

20 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

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

20 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

20 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

20 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

20 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

20 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....

20 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

20 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!

20 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

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

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

20 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.

20 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....

20 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

20 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

20 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

20 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]

20 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

20 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

20 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

20 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

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

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

20 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

20 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

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

20 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

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

20 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

20 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

20 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

20 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

20 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.

20 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

20 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

20 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