]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
18 years agoworking on sequence quoting support....
Mike Bayer [Mon, 21 Aug 2006 04:38:51 +0000 (04:38 +0000)] 
working on sequence quoting support....

18 years agopostgres reflection uses dialect-wide preparer
Mike Bayer [Mon, 21 Aug 2006 03:51:48 +0000 (03:51 +0000)] 
postgres reflection uses dialect-wide preparer

18 years agorefactoring of ANSIIdentifierPreparer to be one instance per-dialect, simplified...
Mike Bayer [Mon, 21 Aug 2006 03:50:23 +0000 (03:50 +0000)] 
refactoring of ANSIIdentifierPreparer to be one instance per-dialect, simplified caching

18 years ago- postgres reflection moved to use pg_schema tables, can be overridden
Mike Bayer [Mon, 21 Aug 2006 00:37:34 +0000 (00:37 +0000)] 
- postgres reflection moved to use pg_schema tables, can be overridden
with use_information_schema=True argument to create_engine
[ticket:60], [ticket:71]
- added natural_case argument to Table, Column, semi-experimental
flag for use with table reflection to help with quoting rules
[ticket:155]

18 years agoadded a compile check to instances()
Mike Bayer [Fri, 18 Aug 2006 21:33:11 +0000 (21:33 +0000)] 
added a compile check to instances()

18 years ago[ticket:280] statement execution supports using the same BindParam
Mike Bayer [Fri, 18 Aug 2006 20:12:39 +0000 (20:12 +0000)] 
[ticket:280] statement execution supports using the same BindParam
object more than once in an expression; simplified handling of positional
parameters.  nice job by Bill Noon figuring out the basic idea.

18 years ago- unit-of-work does a better check for "orphaned" objects that are
Mike Bayer [Fri, 18 Aug 2006 17:21:01 +0000 (17:21 +0000)] 
- unit-of-work does a better check for "orphaned" objects that are
part of a "delete-orphan" cascade, for certain conditions where the
parent isnt available to cascade from.
- it is now invalid to declare a self-referential relationship with
"delete-orphan" (as the abovementioned check would make them impossible
to save)
- improved the check for objects being part of a session when the
unit of work seeks to flush() them as part of a relationship..

18 years agomore fixes for [ticket:269], added MSMediumBlob type
Mike Bayer [Fri, 18 Aug 2006 00:49:57 +0000 (00:49 +0000)] 
more fixes for [ticket:269], added MSMediumBlob type

18 years agocommit should be outside of the try/except; else when commit fails, rollback gets...
Mike Bayer [Thu, 17 Aug 2006 18:04:13 +0000 (18:04 +0000)] 
commit should be outside of the try/except; else when commit fails, rollback gets called which is technically invalid (although SA transaction probably lets it slide...this should also possibly be made more strict)

18 years agoif a contextual session is established via MapperExtension.get_session
Mike Bayer [Thu, 17 Aug 2006 00:12:59 +0000 (00:12 +0000)] 
if a contextual session is established via MapperExtension.get_session
(as it is using the sessioncontext plugin, etc), a lazy load operation
will use that session by default if the parent object is not
persistent with a session already.

18 years ago[ticket:277] check if pg/oracle sequence exists. checks in all cases before CREATE...
Mike Bayer [Wed, 16 Aug 2006 19:48:24 +0000 (19:48 +0000)] 
[ticket:277] check if pg/oracle sequence exists.  checks in all cases before CREATE SEQUENCE/ DROP SEQUENCE

18 years agoadded "requires_quotes" step, subclasses of ANSIIdentifierPreparer can override
Mike Bayer [Wed, 16 Aug 2006 00:36:30 +0000 (00:36 +0000)] 
added "requires_quotes" step, subclasses of ANSIIdentifierPreparer can override

18 years agofixes for threadless python compiles
Jonathan Ellis [Tue, 15 Aug 2006 16:26:20 +0000 (16:26 +0000)] 
fixes for threadless python compiles

18 years ago- eesh ! the tutorial doctest was broken for quite some time.
Mike Bayer [Tue, 15 Aug 2006 02:02:47 +0000 (02:02 +0000)] 
- eesh !  the tutorial doctest was broken for quite some time.
- add_property() method on mapper does a "compile all mappers"
step in case the given property references a non-compiled mapper
(as it did in the case of the tutorial !)

19 years agothe latest...
Mike Bayer [Sat, 12 Aug 2006 23:35:54 +0000 (23:35 +0000)] 
the latest...

19 years agomodifcation to unitofwork to not maintain ordering within the rel_0_2_7
Mike Bayer [Sat, 12 Aug 2006 22:58:49 +0000 (22:58 +0000)] 
modifcation to unitofwork to not maintain ordering within the
"new" list or within the UOWTask "objects" list; instead, new objects
are tagged with an ordering identifier as they are registered as new
with the session, and the INSERT statements are then sorted within the
mapper save_obj.  the INSERT ordering has basically been pushed allthe way
to the end of the flush cycle. that way the various sorts and
organizations occuring within UOWTask (particularly the circular task
sort) dont have to worry about maintaining order (which they werent anyway)

19 years agofix to __eq__ method in a test object
Mike Bayer [Sat, 12 Aug 2006 21:23:34 +0000 (21:23 +0000)] 
fix to __eq__ method in a test object

19 years agoimproved error message when a backref conflicts with a column-based property
Mike Bayer [Sat, 12 Aug 2006 21:08:31 +0000 (21:08 +0000)] 
improved error message when a backref conflicts with a column-based property

19 years agoadded MSTinyInteger to MS-SQL [ticket:263]
Mike Bayer [Sat, 12 Aug 2006 20:28:17 +0000 (20:28 +0000)] 
added MSTinyInteger to MS-SQL [ticket:263]

19 years agofixed construction of order_by with distinct query
Mike Bayer [Sat, 12 Aug 2006 20:25:38 +0000 (20:25 +0000)] 
fixed construction of order_by with distinct query

19 years ago0.2.7 prep
Mike Bayer [Sat, 12 Aug 2006 20:19:03 +0000 (20:19 +0000)] 
0.2.7 prep

19 years agosome fixes to sqlite datetime organization, was improperly reflecting
Mike Bayer [Sat, 12 Aug 2006 20:12:18 +0000 (20:12 +0000)] 
some fixes to sqlite datetime organization, was improperly reflecting
the "date" type as a "datetime"

19 years agofixes to types so that database-specific types more easily used;
Mike Bayer [Sat, 12 Aug 2006 19:50:07 +0000 (19:50 +0000)] 
fixes to types so that database-specific types more easily used;
fixes to mysql text types to work with this methodology
[ticket:269]

19 years ago[ticket:268]
Mike Bayer [Sat, 12 Aug 2006 19:15:35 +0000 (19:15 +0000)] 
[ticket:268]

19 years agorefactored ANSIIdentifierPreparer to be visitor based; minimizes escaping operations
Mike Bayer [Sat, 12 Aug 2006 18:50:35 +0000 (18:50 +0000)] 
refactored ANSIIdentifierPreparer to be visitor based; minimizes escaping operations
and isinstance()/duck-typing calls

19 years agoturned off default case-folding rules as they wreak havoc with the current unittests,
Mike Bayer [Sat, 12 Aug 2006 17:53:04 +0000 (17:53 +0000)] 
turned off default case-folding rules as they wreak havoc with the current unittests,
temporary isintance() checks in ASNIIdentifierPreparer which will be replaced with visit_
methodology

19 years agoadded docs for ON UPDATE/DELETE, identifier quoting
Mike Bayer [Sat, 12 Aug 2006 17:28:59 +0000 (17:28 +0000)] 
added docs for ON UPDATE/DELETE, identifier quoting

19 years ago quoting facilities set up so that database-specific quoting can be
Mike Bayer [Sat, 12 Aug 2006 17:28:15 +0000 (17:28 +0000)] 
 quoting facilities set up so that database-specific quoting can be
turned on for individual table, schema, and column identifiers when
used in all queries/creates/drops.  Enabled via "quote=True" in
Table or Column, as well as "quote_schema=True" in Table.  Thanks to
Aaron Spike for his excellent efforts.  [ticket:155]

19 years agocomment
Mike Bayer [Fri, 11 Aug 2006 23:21:51 +0000 (23:21 +0000)] 
comment

19 years ago[ticket:251]
Mike Bayer [Fri, 11 Aug 2006 21:50:14 +0000 (21:50 +0000)] 
[ticket:251]

19 years agoremoved superfluous **params
Mike Bayer [Fri, 11 Aug 2006 21:48:03 +0000 (21:48 +0000)] 
removed superfluous **params

19 years agoSelectResults will use a subselect, when calling an aggregate (i.e.
Mike Bayer [Fri, 11 Aug 2006 21:43:55 +0000 (21:43 +0000)] 
SelectResults will use a subselect, when calling an aggregate (i.e.
max, min, etc.) on a SelectResults that has an ORDER BY clause
[ticket:252]

19 years agoreflected 'mediumint' type
Mike Bayer [Fri, 11 Aug 2006 21:37:55 +0000 (21:37 +0000)] 
reflected 'mediumint' type

19 years agoinheritance check uses issubclass() instead of direct __mro__ check
Mike Bayer [Fri, 11 Aug 2006 19:16:27 +0000 (19:16 +0000)] 
inheritance check uses issubclass() instead of direct __mro__ check
to make sure class A inherits from B, allowing mapper inheritance to more
flexibly correspond to class inheritance [ticket:271]

19 years agoadded "nowait" flag to Select() [ticket:270]
Mike Bayer [Fri, 11 Aug 2006 18:48:59 +0000 (18:48 +0000)] 
added "nowait" flag to Select() [ticket:270]

19 years agofixed ms-sql connect() to work with adodbapi
Mike Bayer [Fri, 11 Aug 2006 18:23:48 +0000 (18:23 +0000)] 
fixed ms-sql connect() to work with adodbapi

19 years agomoved rollback catch to mysql module...
Mike Bayer [Thu, 10 Aug 2006 19:17:45 +0000 (19:17 +0000)] 
moved rollback catch to mysql module...

19 years agofix mysql borkage
Jonathan Ellis [Thu, 10 Aug 2006 06:40:44 +0000 (06:40 +0000)] 
fix mysql borkage

19 years agofix mysql borkage
Jonathan Ellis [Thu, 10 Aug 2006 06:32:25 +0000 (06:32 +0000)] 
fix mysql borkage

19 years agoadded __contains__ to OrderedProperties, so that rabbit is not in there
Mike Bayer [Thu, 10 Aug 2006 00:03:33 +0000 (00:03 +0000)] 
added __contains__ to OrderedProperties, so that rabbit is not in there

19 years agoall create()/drop() calls have a keyword argument of "connectable".
Mike Bayer [Wed, 9 Aug 2006 23:58:07 +0000 (23:58 +0000)] 
all create()/drop() calls have a keyword argument of "connectable".
"engine" is deprecated. fixes [ticket:255]

19 years agoadded an objectstore clear
Mike Bayer [Wed, 9 Aug 2006 23:56:29 +0000 (23:56 +0000)] 
added an objectstore clear

19 years agofix to lazy loads when mapping to joins
Mike Bayer [Tue, 8 Aug 2006 16:39:18 +0000 (16:39 +0000)] 
fix to lazy loads when mapping to joins

19 years agoadjusted __getstate__ on InstrumentedList to further avoid callables getting stuck...
Mike Bayer [Tue, 8 Aug 2006 01:02:16 +0000 (01:02 +0000)] 
adjusted __getstate__ on InstrumentedList to further avoid callables getting stuck in there...

19 years agofixed possible error in mysql reflection where certain versions
Mike Bayer [Mon, 7 Aug 2006 21:58:53 +0000 (21:58 +0000)] 
fixed possible error in mysql reflection where certain versions
return an array instead of string for SHOW CREATE TABLE call

19 years agoadded start of a many-to-many test
Mike Bayer [Mon, 7 Aug 2006 05:10:59 +0000 (05:10 +0000)] 
added start of a many-to-many test

19 years agofixed small pickle bug with lazy loaders [ticket:265]
Mike Bayer [Sun, 6 Aug 2006 16:48:30 +0000 (16:48 +0000)] 
fixed small pickle bug with lazy loaders [ticket:265]

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