]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
19 years agoTLEngine needed a partial rewrite....
Mike Bayer [Sun, 28 May 2006 17:46:45 +0000 (17:46 +0000)] 
TLEngine needed a partial rewrite....

19 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

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

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

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

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

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

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

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

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

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

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

19 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

19 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

19 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

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

19 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

19 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

19 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

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

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

19 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

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

19 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

19 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

19 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

19 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

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.