]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
19 years agoimprovement over previous changeset:
Mike Bayer [Sat, 5 Aug 2006 15:32:00 +0000 (15:32 +0000)] 
improvement over previous changeset:
SingletonThreadPool has a size and does a cleanup pass, so that
only a given number of thread-local connections stay around (needed
for sqlite applications that dispose of threads en masse)

19 years agotemporary workaround dispose_local() added to SingletonThreadPool
Mike Bayer [Sat, 5 Aug 2006 15:11:52 +0000 (15:11 +0000)] 
temporary workaround dispose_local() added to SingletonThreadPool
for sqlite applications that dispose of threads en masse

19 years agoadded reflected 'tinyint' type to MS-SQL [ticket:263]
Mike Bayer [Fri, 4 Aug 2006 23:39:11 +0000 (23:39 +0000)] 
added reflected 'tinyint' type to MS-SQL [ticket:263]

19 years agofixed mysql reflection of default values to be PassiveDefault
Mike Bayer [Fri, 4 Aug 2006 06:47:53 +0000 (06:47 +0000)] 
fixed mysql reflection of default values to be PassiveDefault

19 years agoadjustments to pool stemming from changes made for [ticket:224].
Mike Bayer [Fri, 4 Aug 2006 06:21:58 +0000 (06:21 +0000)] 
adjustments to pool stemming from changes made for [ticket:224].
overflow counter should only be decremented if the connection actually
succeeded.  added a test script to attempt testing this.

19 years agooops: committed the rest of [changeset:1759], removed print in sqlite + restored...
Mike Bayer [Thu, 3 Aug 2006 00:33:00 +0000 (00:33 +0000)] 
oops:  committed the rest of [changeset:1759], removed print in sqlite + restored error check in Join

19 years ago- better check for ambiguous join conditions in sql.Join; propigates to a
Mike Bayer [Thu, 3 Aug 2006 00:28:57 +0000 (00:28 +0000)] 
- better check for ambiguous join conditions in sql.Join; propigates to a
better error message in PropertyLoader (i.e. relation()/backref()) for when
the join condition can't be reasonably determined.
- sqlite creates ForeignKeyConstraint objects properly upon table
reflection.

19 years agor/m _reset method
Jonathan Ellis [Tue, 1 Aug 2006 19:10:34 +0000 (19:10 +0000)] 
r/m _reset method

19 years agoexpand explanation of Query methods
Jonathan Ellis [Tue, 1 Aug 2006 18:43:28 +0000 (18:43 +0000)] 
expand explanation of Query methods

19 years agoadd update method
Jonathan Ellis [Mon, 31 Jul 2006 21:40:31 +0000 (21:40 +0000)] 
add update method

19 years agofix for when default is zero
Jonathan Ellis [Mon, 31 Jul 2006 21:00:48 +0000 (21:00 +0000)] 
fix for when default is zero

19 years agotypo fix noticed by R Munn
Jonathan Ellis [Mon, 31 Jul 2006 17:45:24 +0000 (17:45 +0000)] 
typo fix noticed by R Munn

19 years agodoc update
Jonathan Ellis [Sun, 30 Jul 2006 04:15:55 +0000 (04:15 +0000)] 
doc update

19 years agoauto-execute delete stmts
Jonathan Ellis [Sun, 30 Jul 2006 04:08:20 +0000 (04:08 +0000)] 
auto-execute delete stmts

19 years agoadd mappedtable.delete support
Jonathan Ellis [Sun, 30 Jul 2006 04:04:26 +0000 (04:04 +0000)] 
add mappedtable.delete support

19 years agosoup.engine property
Jonathan Ellis [Sat, 29 Jul 2006 03:52:04 +0000 (03:52 +0000)] 
soup.engine property

19 years agoPassiveDefault('?') for autoloaded sqlite defaults
Jonathan Ellis [Thu, 27 Jul 2006 04:56:15 +0000 (04:56 +0000)] 
PassiveDefault('?') for autoloaded sqlite defaults

(no complaints on-list so I'm checking this in...  go ahead and revert if I'm stepping on any toes here, Mike)

19 years agocustom primary/secondary join conditions in a relation *will* be propigated
Mike Bayer [Thu, 27 Jul 2006 04:33:32 +0000 (04:33 +0000)] 
custom primary/secondary join conditions in a relation *will* be propigated
to backrefs by default.  specifying a backref() will override this behavior.

19 years agooracle boolean type [ticket:257]
Mike Bayer [Wed, 26 Jul 2006 18:05:36 +0000 (18:05 +0000)] 
oracle boolean type [ticket:257]

19 years ago[ticket:256] propigating url.query arguments to connect() function for all db's
Mike Bayer [Tue, 25 Jul 2006 16:40:38 +0000 (16:40 +0000)] 
[ticket:256] propigating url.query arguments to connect() function for all db's

19 years agoremoved erroneous "on_update" example for PassiveDefault
Mike Bayer [Tue, 25 Jul 2006 15:33:18 +0000 (15:33 +0000)] 
removed erroneous "on_update" example for PassiveDefault

19 years agofixed anchor tag
Mike Bayer [Mon, 24 Jul 2006 16:28:31 +0000 (16:28 +0000)] 
fixed anchor tag

19 years ago[ticket:254]
Mike Bayer [Mon, 24 Jul 2006 16:25:40 +0000 (16:25 +0000)] 
[ticket:254]

19 years agowith_labels support
Jonathan Ellis [Mon, 24 Jul 2006 00:44:44 +0000 (00:44 +0000)] 
with_labels support

19 years agofix outdated link into SA docs for Query objects
Jonathan Ellis [Sun, 23 Jul 2006 04:04:22 +0000 (04:04 +0000)] 
fix outdated link into SA docs for Query objects

19 years agode-tabbify
Jonathan Ellis [Sun, 23 Jul 2006 03:35:03 +0000 (03:35 +0000)] 
de-tabbify

19 years agoReST-ify docstring
Jonathan Ellis [Sun, 23 Jul 2006 02:10:38 +0000 (02:10 +0000)] 
ReST-ify docstring

19 years agosmall join api change
Jonathan Ellis [Sat, 22 Jul 2006 06:23:59 +0000 (06:23 +0000)] 
small join api change

with_labels stuff doesn't quite work yet -- needs that select(from_obj=[join]) support -- so no doctest

19 years agofixed reflection of foreign keys to autoload the referenced table
Mike Bayer [Sat, 22 Jul 2006 06:21:58 +0000 (06:21 +0000)] 
fixed reflection of foreign keys to autoload the referenced table
if it was not loaded already, affected postgres, mysql, oracle.
fixes the latest in [ticket:105]

19 years agoschema support for sqlsoup
Jonathan Ellis [Fri, 21 Jul 2006 19:07:25 +0000 (19:07 +0000)] 
schema support for sqlsoup

19 years agofix doctests by ensuring consistent sort order via __cmp__; add join support
Jonathan Ellis [Fri, 21 Jul 2006 16:56:08 +0000 (16:56 +0000)] 
fix doctests by ensuring consistent sort order via __cmp__; add join support

19 years ago_selectable interface; allows sqlsoup to pass its classes to Join and have the underl...
Jonathan Ellis [Fri, 21 Jul 2006 16:53:05 +0000 (16:53 +0000)] 
_selectable interface; allows sqlsoup to pass its classes to Join and have the underlying Table pulled out

19 years agofix doctest integration
Jonathan Ellis [Fri, 21 Jul 2006 16:44:01 +0000 (16:44 +0000)] 
fix doctest integration

19 years agoadd test for allow_null_pks
Jonathan Ellis [Fri, 21 Jul 2006 16:43:32 +0000 (16:43 +0000)] 
add test for allow_null_pks

19 years agoadded allow_null_pks option to Mapper, allows rows where some
Mike Bayer [Fri, 21 Jul 2006 16:11:11 +0000 (16:11 +0000)] 
added allow_null_pks option to Mapper, allows rows where some
primary key columns are null (i.e. when mapping to outer joins etc)

19 years agoassignmapper was setting is_primary=True, causing all sorts of mayhem
Mike Bayer [Thu, 20 Jul 2006 18:25:26 +0000 (18:25 +0000)] 
assignmapper was setting is_primary=True, causing all sorts of mayhem
by not raising an error when redundant mappers were set up, fixed

19 years agofixed [ticket:245] rel_0_2_6
Mike Bayer [Thu, 20 Jul 2006 01:00:30 +0000 (01:00 +0000)] 
fixed [ticket:245]

19 years agopatch to inheritance section
Mike Bayer [Thu, 20 Jul 2006 00:20:45 +0000 (00:20 +0000)] 
patch to inheritance section

19 years agoimplemented latest patch on [ticket:105], modified to support
Mike Bayer [Thu, 20 Jul 2006 00:07:30 +0000 (00:07 +0000)] 
implemented latest patch on [ticket:105], modified to support
new ForeignKeyConstraint upon reflection

19 years agopatch for [ticket:105], adding "owner" support to oracle...not tested yet
Mike Bayer [Wed, 19 Jul 2006 23:50:00 +0000 (23:50 +0000)] 
patch for [ticket:105], adding "owner" support to oracle...not tested yet

19 years agoadded table.exists()
Mike Bayer [Wed, 19 Jul 2006 22:20:49 +0000 (22:20 +0000)] 
added table.exists()

19 years agoadded 'checkfirst' argument to table.create()/table.drop()
Mike Bayer [Wed, 19 Jul 2006 22:13:29 +0000 (22:13 +0000)] 
added 'checkfirst' argument to table.create()/table.drop()
some 0.2.6 prep

19 years agoreduced bind param size in query._get to appease the picky oracle
Mike Bayer [Wed, 19 Jul 2006 20:38:43 +0000 (20:38 +0000)] 
reduced bind param size in query._get to appease the picky oracle
[ticket:244]

19 years agomapper compilation work ongoing, someday it'll work....moved
Mike Bayer [Wed, 19 Jul 2006 20:25:09 +0000 (20:25 +0000)] 
mapper compilation work ongoing, someday it'll work....moved
around the initialization of MapperProperty objects to be after
all mappers are created to better handle circular compilations.
do_init() method is called on all properties now which are more
aware of their "inherited" status if so.

eager loads explicitly disallowed on self-referential relationships, or
relationships to an inheriting mapper (which is also self-referential)

19 years agofix to typing in clause construction which specifically helps
Mike Bayer [Wed, 19 Jul 2006 16:10:15 +0000 (16:10 +0000)] 
fix to typing in clause construction which specifically helps
type issues with polymorphic_union (CAST/ColumnClause propigates
its type to proxy columns)

19 years agofailing test case re: compilation
Mike Bayer [Wed, 19 Jul 2006 06:04:31 +0000 (06:04 +0000)] 
failing test case re: compilation

19 years agoadded "synonym()" function, applied to properties to have a
Mike Bayer [Tue, 18 Jul 2006 17:09:08 +0000 (17:09 +0000)] 
added "synonym()" function, applied to properties to have a
propname the same as another, for the purposes of overriding props
and allowing the original propname to be accessible in select_by().

19 years agoremove print statement
Mike Bayer [Tue, 18 Jul 2006 15:53:34 +0000 (15:53 +0000)] 
remove print statement

19 years agooverhaul to MapperExtension so they arent chained via "next"; this breaks all over...
Mike Bayer [Tue, 18 Jul 2006 15:14:55 +0000 (15:14 +0000)] 
overhaul to MapperExtension so they arent chained via "next"; this breaks all over the place since extensions get copied between mappers etc.  now theyre assembled into a list, of which a single extension can belong to many different lists.

19 years agoecho=True
Mike Bayer [Tue, 18 Jul 2006 15:13:32 +0000 (15:13 +0000)] 
echo=True

19 years agoadded __setitem__ to Constraint
Mike Bayer [Tue, 18 Jul 2006 00:40:29 +0000 (00:40 +0000)] 
added __setitem__ to Constraint

19 years agofixed table name in REFERENCES clause to include schema if applicable
Mike Bayer [Tue, 18 Jul 2006 00:13:23 +0000 (00:13 +0000)] 
fixed table name in REFERENCES clause to include schema if applicable

19 years agosome cleanup on session/uow interaction, check for None
Mike Bayer [Mon, 17 Jul 2006 05:18:44 +0000 (05:18 +0000)] 
some cleanup on session/uow interaction, check for None
when calling refresh or expire in case object was deleted

19 years agosome cascade tweaks
Mike Bayer [Fri, 14 Jul 2006 23:58:44 +0000 (23:58 +0000)] 
some cascade tweaks

19 years agodeferred column load could screw up the connection status in
Mike Bayer [Fri, 14 Jul 2006 21:02:35 +0000 (21:02 +0000)] 
deferred column load could screw up the connection status in
a flush() under some circumstances, this was fixed

19 years agooverhaul to schema, addition of ForeignKeyConstraint/
Mike Bayer [Fri, 14 Jul 2006 20:06:09 +0000 (20:06 +0000)] 
overhaul to schema, addition of ForeignKeyConstraint/
PrimaryKeyConstraint objects (also UniqueConstraint not
completed yet).  table creation and reflection modified
to be more oriented towards these new table-level objects.
reflection for sqlite/postgres/mysql supports composite
foreign keys; oracle/mssql/firebird not converted yet.

19 years agoActiveMapper now supports autoloading of column definitions if you supply
Jonathan LaCour [Fri, 14 Jul 2006 14:54:53 +0000 (14:54 +0000)] 
ActiveMapper now supports autoloading of column definitions if you supply
a __autoload__ = True attribute in your inner mapping class.  It does not
currently support autoloading relationships.

19 years ago$-># for install prompt
Mike Bayer [Thu, 13 Jul 2006 21:53:31 +0000 (21:53 +0000)] 
$-># for install prompt

19 years agoDB connection errors wrapped in DBAPIErrors
Mike Bayer [Thu, 13 Jul 2006 21:05:52 +0000 (21:05 +0000)] 
DB connection errors wrapped in DBAPIErrors

19 years agoadded count/count_by to assignmapper, plus a test in activemapper to try it out
Mike Bayer [Thu, 13 Jul 2006 16:36:31 +0000 (16:36 +0000)] 
added count/count_by to assignmapper, plus a test in activemapper to try it out

19 years agofixed up boolean datatype for sqlite, mysql, ms-sql
Mike Bayer [Thu, 13 Jul 2006 01:12:53 +0000 (01:12 +0000)] 
fixed up boolean datatype for sqlite, mysql, ms-sql

19 years agostill having mappers not getting compiled...sigh...
Mike Bayer [Wed, 12 Jul 2006 20:19:32 +0000 (20:19 +0000)] 
still having mappers not getting compiled...sigh...

19 years agoprimary key identifier is a list now, not param list, [ticket:236]
Mike Bayer [Wed, 12 Jul 2006 19:02:53 +0000 (19:02 +0000)] 
primary key identifier is a list now, not param list, [ticket:236]

19 years agoclarified passivedefault only for INSERT, added brief 'override reflected columns...
Mike Bayer [Wed, 12 Jul 2006 16:44:18 +0000 (16:44 +0000)] 
clarified passivedefault only for INSERT, added brief 'override reflected columns' example

19 years agoslightly less lame version function
Mike Bayer [Tue, 11 Jul 2006 01:12:02 +0000 (01:12 +0000)] 
slightly less lame version function

19 years agosqlite detects version and disables CAST if version < 3.2.3
Mike Bayer [Tue, 11 Jul 2006 00:36:32 +0000 (00:36 +0000)] 
sqlite detects version and disables CAST if version < 3.2.3
fixes to unittests, mapper extension to work better with setting/unsetting extensions
objectstore objects get 'session' attribute

19 years agoexpunge wasnt de-associating the object with a session
Mike Bayer [Mon, 10 Jul 2006 23:05:03 +0000 (23:05 +0000)] 
expunge wasnt de-associating the object with a session

19 years agoactivemapper will use threadlocal mod's objectstore if its installed
Mike Bayer [Mon, 10 Jul 2006 21:53:49 +0000 (21:53 +0000)] 
activemapper will use threadlocal mod's objectstore if its installed
both objectstores no longer subclass SessionContext, get at it via .context attribute instead

19 years agoadjument to regexp for parsing courtesy Barry Warsaw
Mike Bayer [Mon, 10 Jul 2006 21:33:03 +0000 (21:33 +0000)] 
adjument to regexp for parsing courtesy Barry Warsaw

19 years agofix to error message for object with mismatched session
Mike Bayer [Mon, 10 Jul 2006 21:32:34 +0000 (21:32 +0000)] 
fix to error message for object with mismatched session

19 years agohey ho alphas got to go
Mike Bayer [Mon, 10 Jul 2006 01:12:12 +0000 (01:12 +0000)] 
hey ho alphas got to go

19 years agoworks without backrefs too....
Mike Bayer [Mon, 10 Jul 2006 01:06:31 +0000 (01:06 +0000)] 
works without backrefs too....

19 years agosome refactorings to activemapper, made relationship() class have some polymorphic...
Mike Bayer [Sun, 9 Jul 2006 19:48:02 +0000 (19:48 +0000)] 
some refactorings to activemapper, made relationship() class have some polymorphic behavior for initializing its real relation, added support + unittest for self-referential relationship

19 years agoadded workaround for funny pragma behavior on windows pysqlite
Mike Bayer [Sun, 9 Jul 2006 17:58:01 +0000 (17:58 +0000)] 
added workaround for funny pragma behavior on windows pysqlite
singletonthreadpool has a dispose() method, used by proxy_engine test
to better clean up after itself on windows

19 years agosmall fix to relation compilation
Mike Bayer [Sun, 9 Jul 2006 00:39:24 +0000 (00:39 +0000)] 
small fix to relation compilation

19 years ago0.2.5 rel_0_2_5
Mike Bayer [Sat, 8 Jul 2006 17:11:58 +0000 (17:11 +0000)] 
0.2.5

19 years agotook out that whole compilation dependency thing. just need to loop through mapper_r...
Mike Bayer [Sat, 8 Jul 2006 16:07:16 +0000 (16:07 +0000)] 
took out that whole compilation dependency thing.  just need to loop through mapper_registry and compile whatever is not compiled. the "non-reentrant" compile() method, which is a product of the whole compilation dependency tangent, makes this pretty easy.  So it was a pretty roundabout way to go for ultimately a pretty small change to compilation.

19 years agomade mapper compilation "check for remaining mappers" compile anything found, guarant...
Mike Bayer [Fri, 7 Jul 2006 21:32:30 +0000 (21:32 +0000)] 
made mapper compilation "check for remaining mappers" compile anything found, guaranteeing everything to be compiled in all cases

19 years agoremoved debug line
Mike Bayer [Fri, 7 Jul 2006 14:36:25 +0000 (14:36 +0000)] 
removed debug line

19 years agoordering of UPDATE and DELETE statements within groups is now
Mike Bayer [Mon, 3 Jul 2006 15:55:20 +0000 (15:55 +0000)] 
ordering of UPDATE and DELETE statements within groups is now
in order of primary key values, for more deterministic ordering
after_insert/delete/update mapper extensions now called per object,
not per-object-per-table
fixed import in firebird.py

19 years agofixed hyperlink to adv datamapping
Mike Bayer [Sun, 2 Jul 2006 16:34:03 +0000 (16:34 +0000)] 
fixed hyperlink to adv datamapping

19 years agochange exception message
Mike Bayer [Sun, 2 Jul 2006 16:33:46 +0000 (16:33 +0000)] 
change exception message

19 years agogot MS-SQL support largely working, including reflection, basic types, fair amount...
Mike Bayer [Sat, 1 Jul 2006 19:26:30 +0000 (19:26 +0000)] 
got MS-SQL support largely working, including reflection, basic types, fair amount of ORM stuff, etc.
'rowcount' label is reseved in MS-SQL and had to change in sql.py count() as well as orm.query

19 years agosome adjustments to activemapper's objectstore to be composed against SessionContext
Mike Bayer [Sat, 1 Jul 2006 15:30:33 +0000 (15:30 +0000)] 
some adjustments to activemapper's objectstore to be composed against SessionContext
DynamicMetaData checks first for _engine before returning

19 years agofixes to attributes/related so that get_history with passive=True returns no
Mike Bayer [Fri, 30 Jun 2006 03:56:49 +0000 (03:56 +0000)] 
fixes to attributes/related so that get_history with passive=True returns no
AttributeHistory object if an untriggered callable was found (not sure how this used to work
OK....)

19 years agoPut back in the foreign-key checking code in process_relationships for
Jonathan LaCour [Fri, 30 Jun 2006 01:19:52 +0000 (01:19 +0000)] 
Put back in the foreign-key checking code in process_relationships for
ActiveMapper.  It looks like it is required by at least one person, so for
now the code will stay in!

19 years agoThere were two significant changes in this commit:
Jonathan LaCour [Thu, 29 Jun 2006 23:29:37 +0000 (23:29 +0000)] 
There were two significant changes in this commit:

 * Added implicit primary keys to ActiveMapper.  Now, if you do not speicfy a
   primary key on your objects when declaring them, an Integer primary key
   called `id` will automatically be added to your objects for you.

 * Commented out a large chunk of the process_relationships function that
   should no longer be necessary thanks to some of the deferred mapper
   compilation that was added in SQLAlchemy 0.2.3.  I left it in the code, but
   commented it out just in case this change causes a problem in someone's
   else's code and I can put it back in if needed.

19 years agoadded a note about sqlite uris
Mike Bayer [Thu, 29 Jun 2006 21:34:30 +0000 (21:34 +0000)] 
added a note about sqlite uris

19 years agoremoved toengine() calls
Mike Bayer [Thu, 29 Jun 2006 20:47:50 +0000 (20:47 +0000)] 
removed toengine()  calls

19 years agoinserting './lib/' into sys.path since PYTHONPATH no longer straightforward with...
Mike Bayer [Thu, 29 Jun 2006 00:28:55 +0000 (00:28 +0000)] 
inserting './lib/' into sys.path since PYTHONPATH no longer straightforward with latest setuptools

19 years agofixed endless loop bug in select_by(), if the traversal hit
Mike Bayer [Wed, 28 Jun 2006 23:01:04 +0000 (23:01 +0000)] 
fixed endless loop bug in select_by(), if the traversal hit
two mappers that referenced each other

19 years agofirebird patch with support for type_conv
Mike Bayer [Wed, 28 Jun 2006 19:03:29 +0000 (19:03 +0000)] 
firebird patch with support for type_conv

19 years agoUpdated ActiveMapper to support order_by parameters on all relationships.
Jonathan LaCour [Wed, 28 Jun 2006 17:26:48 +0000 (17:26 +0000)] 
Updated ActiveMapper to support order_by parameters on all relationships.
Thanks to Charles Duffy for this patch!

19 years agofixes to pool_invalidate [ticket:224] rel_0_2_4
Mike Bayer [Tue, 27 Jun 2006 23:56:14 +0000 (23:56 +0000)] 
fixes to pool_invalidate [ticket:224]

19 years agonew MySQL types: MSEnum, MSTinyText, MSMediumText, MSLongText, etc.
Mike Bayer [Tue, 27 Jun 2006 22:24:39 +0000 (22:24 +0000)] 
new MySQL types: MSEnum, MSTinyText, MSMediumText, MSLongText, etc.
more support for MS-specific length/precision params in numeric types
patch courtesy Mike Bernson

19 years agolazy load bind params properly propigate column type [ticket:225]
Mike Bayer [Tue, 27 Jun 2006 21:48:53 +0000 (21:48 +0000)] 
lazy load bind params properly propigate column type [ticket:225]

19 years agocursor() method on ConnectionFairy allows db-specific extension
Mike Bayer [Mon, 26 Jun 2006 20:15:54 +0000 (20:15 +0000)] 
cursor() method on ConnectionFairy allows db-specific extension
arguments to be propigated [ticket:221]

19 years agoPG didnt like 'user' for a table name
Mike Bayer [Mon, 26 Jun 2006 20:06:59 +0000 (20:06 +0000)] 
PG didnt like 'user' for a table name

19 years agodont put SERIAL on a column if it has a ForeignKey
Mike Bayer [Mon, 26 Jun 2006 20:01:56 +0000 (20:01 +0000)] 
dont put SERIAL on a column if it has a ForeignKey

19 years agofixed attribute manager's ability to traverse the full set of managed attributes...
Mike Bayer [Mon, 26 Jun 2006 19:55:48 +0000 (19:55 +0000)] 
fixed attribute manager's ability to traverse the full set of managed attributes for a descendant class, + 2 unit tests