]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
16 years ago - Fixed SQLite reflection methods so that non-present rel_0_4
Mike Bayer [Tue, 17 Mar 2009 15:15:10 +0000 (15:15 +0000)] 
- Fixed SQLite reflection methods so that non-present
      cursor.description, which triggers an auto-cursor
      close, will be detected so that no results doesn't
      fail on recent versions of pysqlite which raise
      an error when fetchone() called with no rows present.

16 years agogetstate fix
Mike Bayer [Thu, 29 Jan 2009 17:58:29 +0000 (17:58 +0000)] 
getstate fix

16 years ago- The per-dialect cache used by TypeEngine to cache
Mike Bayer [Thu, 29 Jan 2009 16:10:08 +0000 (16:10 +0000)] 
- The per-dialect cache used by TypeEngine to cache
dialect-specific types is now a WeakKeyDictionary.
This to prevent dialect objects from
being referenced forever for an application that
creates an arbitrarily large number of engines
or dialects.   There is a small performance penalty
which will be resolved in 0.6.  [ticket:1299]

16 years ago- Fixed bug which was preventing out params of certain types
Mike Bayer [Sat, 3 Jan 2009 19:09:25 +0000 (19:09 +0000)] 
- Fixed bug which was preventing out params of certain types
from being received; thanks a ton to huddlej at wwu.edu !
[ticket:1265]

16 years ago- Fixed shard_id argument on ShardedSession.execute().
Mike Bayer [Sun, 28 Dec 2008 20:06:50 +0000 (20:06 +0000)] 
- Fixed shard_id argument on ShardedSession.execute().
[ticket:1072]

16 years ago- Class-bound accessor can be used as the argument to
Mike Bayer [Sat, 27 Dec 2008 18:34:54 +0000 (18:34 +0000)] 
- Class-bound accessor can be used as the argument to
relation() order_by.  [ticket:939]

16 years agounit tests in 0.5 revealed the proper way to do this
Mike Bayer [Sat, 27 Dec 2008 18:23:24 +0000 (18:23 +0000)] 
unit tests in 0.5 revealed the proper way to do this

16 years ago- Added ScopedSession.is_active accessor. [ticket:976]
Mike Bayer [Sat, 27 Dec 2008 18:19:44 +0000 (18:19 +0000)] 
- Added ScopedSession.is_active accessor. [ticket:976]

16 years ago- NullPool supports reconnect on failure behavior.
Mike Bayer [Sat, 27 Dec 2008 18:07:02 +0000 (18:07 +0000)] 
- NullPool supports reconnect on failure behavior.
[ticket:1094]

16 years ago- postgres
Mike Bayer [Tue, 23 Dec 2008 04:43:00 +0000 (04:43 +0000)] 
- postgres
    - Added Index reflection support to Postgres, using a
      great patch we long neglected, submitted by
      Ken Kuhlman. [ticket:714]

16 years ago- mysql
Mike Bayer [Sun, 21 Dec 2008 18:31:43 +0000 (18:31 +0000)] 
- mysql
    - Fixed bug in exception raise when FK columns not present
      during reflection. [ticket:1241]

16 years agoDon't snarf Query docstrings [ticket:1026]
Jason Kirtland [Fri, 12 Dec 2008 05:14:12 +0000 (05:14 +0000)] 
Don't snarf Query docstrings [ticket:1026]

16 years ago- Connection.invalidate() checks for closed status
Mike Bayer [Thu, 11 Dec 2008 17:41:12 +0000 (17:41 +0000)] 
- Connection.invalidate() checks for closed status
to avoid attribute errors. [ticket:1246]

16 years agoHandle the mssql port properly. If we're using the SQL Server driver then use the...
Michael Trier [Mon, 10 Nov 2008 04:37:08 +0000 (04:37 +0000)] 
Handle the mssql port properly. If we're using the SQL Server driver then use the correct host,port syntax, otherwise use the Port= parameter in the connection string. Fixes #1192. Also backports support to handle custom connection string arguments.

16 years agoFixed up misspelling of propagate throughout.
Michael Trier [Mon, 10 Nov 2008 02:23:57 +0000 (02:23 +0000)] 
Fixed up misspelling of propagate throughout.

16 years ago- Fixed bug in composite types which prevented a primary-key
Mike Bayer [Wed, 5 Nov 2008 21:16:09 +0000 (21:16 +0000)] 
- Fixed bug in composite types which prevented a primary-key
composite type from being mutated [ticket:1213].

16 years ago- Fixed RLock-related bug in mapper which could deadlock upon
Mike Bayer [Wed, 5 Nov 2008 19:08:02 +0000 (19:08 +0000)] 
- Fixed RLock-related bug in mapper which could deadlock upon
reentrant mapper compile() calls, something that occurs when
using declarative constructs inside of ForeignKey objects.
Ported from 0.5.

16 years ago- Fixed 0.4-only bug preventing composite columns
Mike Bayer [Tue, 21 Oct 2008 21:20:39 +0000 (21:20 +0000)] 
- Fixed 0.4-only bug preventing composite columns
from working properly with inheriting mappers
[ticket:1199]

16 years ago- polymorphic_union() function respects the "key" of each
Mike Bayer [Tue, 21 Oct 2008 21:10:51 +0000 (21:10 +0000)] 
- polymorphic_union() function respects the "key" of each
Column if they differ from the column's name.

16 years ago- String's (and Unicode's, UnicodeText's, etc.) convert_unicode rel_0_4_8
Mike Bayer [Sun, 12 Oct 2008 14:39:11 +0000 (14:39 +0000)] 
- String's (and Unicode's, UnicodeText's, etc.) convert_unicode
logic disabled in the sqlite dialect, to adjust for pysqlite
2.5.0's new requirement that only Python unicode objects are
accepted;
http://itsystementwicklung.de/pipermail/list-pysqlite/2008-March/000018.html

16 years agoCorrected incorrect module name. Fixes #1137.
Michael Trier [Fri, 26 Sep 2008 01:18:19 +0000 (01:18 +0000)] 
Corrected incorrect module name. Fixes #1137.

16 years agoremove unused and conflicting "c" format specifier
Mike Bayer [Fri, 19 Sep 2008 21:32:53 +0000 (21:32 +0000)] 
remove unused and conflicting "c" format specifier

16 years ago- Supplied a custom strftime() function which
Mike Bayer [Fri, 19 Sep 2008 20:42:51 +0000 (20:42 +0000)] 
- Supplied a custom strftime() function which
handles dates before 1900.  [ticket:968]
- removed a few bogus classes from util

16 years ago- Added label() method to InstrumentedAttribute
Mike Bayer [Wed, 17 Sep 2008 19:31:24 +0000 (19:31 +0000)] 
- Added label() method to InstrumentedAttribute
to establish forwards compatibility with 0.5.

16 years ago- column.in_(someselect) can now be used as
Mike Bayer [Tue, 16 Sep 2008 18:18:15 +0000 (18:18 +0000)] 
- column.in_(someselect) can now be used as
a columns-clause expression without the subquery
bleeding into the FROM clause [ticket:1074]

16 years agoadded gc.collect() for pypy/jython compat, [ticket:1076]
Mike Bayer [Tue, 16 Sep 2008 17:40:53 +0000 (17:40 +0000)] 
added gc.collect() for pypy/jython compat, [ticket:1076]

16 years ago- Changes made to new, dirty and deleted
Mike Bayer [Tue, 9 Sep 2008 15:02:13 +0000 (15:02 +0000)] 
- Changes made to new, dirty and deleted
collections in
SessionExtension.before_flush() will take
effect for that flush.

16 years ago- added BFILE to the list of reflected types
Mike Bayer [Wed, 3 Sep 2008 18:19:15 +0000 (18:19 +0000)] 
- added BFILE to the list of reflected types
      [ticket:1121]

16 years ago has_sequence() now takes the current "schema" argument into
Mike Bayer [Wed, 3 Sep 2008 18:03:48 +0000 (18:03 +0000)] 
 has_sequence() now takes the current "schema" argument into
      account [ticket:1155]

16 years ago- Added MSMediumInteger type [ticket:1146].
Mike Bayer [Sun, 24 Aug 2008 21:20:15 +0000 (21:20 +0000)] 
- Added MSMediumInteger type [ticket:1146].

16 years agousing contextual_connect() so that pool_threadlocal setting has significance
Mike Bayer [Sun, 10 Aug 2008 05:27:20 +0000 (05:27 +0000)] 
using contextual_connect() so that pool_threadlocal setting has significance

16 years agoadded a "live" test of recycle to further ensure #1133 is not valid
Mike Bayer [Sun, 10 Aug 2008 05:15:11 +0000 (05:15 +0000)] 
added a "live" test of recycle to further ensure #1133 is not valid

16 years ago- Fixed bug regarding inherit_condition passed
Mike Bayer [Fri, 8 Aug 2008 04:25:17 +0000 (04:25 +0000)] 
- Fixed bug regarding inherit_condition passed
with "A=B" versus "B=A" leading to errors
[ticket:1039]

17 years agoconvert @decorators to old-style function calls for python 2.3's benefit
Jonathan Ellis [Thu, 31 Jul 2008 18:28:33 +0000 (18:28 +0000)] 
convert @decorators to old-style function calls for python 2.3's benefit

17 years ago- bump to 0.4.8
Mike Bayer [Thu, 31 Jul 2008 15:29:12 +0000 (15:29 +0000)] 
- bump to 0.4.8
- removed unnecessary mini-py2.3 test suite

17 years ago- added an extremely rudimental set of python 2.3 compatible tests. these rel_0_4_7p1
Mike Bayer [Thu, 31 Jul 2008 15:02:40 +0000 (15:02 +0000)] 
- added an extremely rudimental set of python 2.3 compatible tests.  these
can at least confirm that we're even on the grid python 2.3-wise.
- fixed usage of native set(), generator expressions
- will release 0.4.7p1

17 years ago- Added "add()" and "add_all()" to scoped_session
Mike Bayer [Sun, 27 Jul 2008 16:52:05 +0000 (16:52 +0000)] 
- Added "add()" and "add_all()" to scoped_session
methods.  Workaround for 0.4.7:

from sqlalchemy.orm.scoping import ScopedSession,\
instrument
setattr(
    ScopedSession, "add", instrument("add"))
setattr(
    ScopedSession, "add_all", instrument("add_all"))

17 years ago- added add() and add_all() methods to Session, rel_0_4_7
Mike Bayer [Sat, 26 Jul 2008 16:30:59 +0000 (16:30 +0000)] 
- added add() and add_all() methods to Session,
establishing forwards compatibility with 0.5.

17 years ago- Class-bound attributes sent as arguments to
Mike Bayer [Sat, 26 Jul 2008 16:23:14 +0000 (16:23 +0000)] 
- Class-bound attributes sent as arguments to
relation()'s remote_side and foreign_keys parameters
are now accepted, allowing them to be used with
declarative (and therefore self-referential many-to-one
relations); merged from 0.5.

17 years agofixup for test cases with mysql
Mike Bayer [Sat, 26 Jul 2008 16:03:47 +0000 (16:03 +0000)] 
fixup for test cases with mysql

17 years ago- A critical fix to dynamic relations allows the
Mike Bayer [Sat, 19 Jul 2008 21:40:34 +0000 (21:40 +0000)] 
- A critical fix to dynamic relations allows the
"modified" history to be properly cleared after
a flush() (backported from 0.5).

17 years ago- Added a new SessionExtension hook called after_attach().
Mike Bayer [Sat, 19 Jul 2008 15:47:21 +0000 (15:47 +0000)] 
- Added a new SessionExtension hook called after_attach().
This is called at the point of attachment for objects
via save(), update(), delete(), and merge()
(backported from 0.5).

17 years agomerged select([literal('foo')]) fix from trunk r4933
Mike Bayer [Tue, 15 Jul 2008 15:07:00 +0000 (15:07 +0000)] 
merged select([literal('foo')]) fix from trunk r4933

17 years ago- Removed erroneous 'self' reference when raising
Mike Bayer [Mon, 14 Jul 2008 19:52:59 +0000 (19:52 +0000)] 
- Removed erroneous 'self' reference when raising
UnmappedColumnError during flush() operation.

17 years agoReverted CHANGES change. Not necessary for this type of fix.
Michael Trier [Mon, 14 Jul 2008 17:49:52 +0000 (17:49 +0000)] 
Reverted CHANGES change. Not necessary for this type of fix.

17 years agoAdded notation about MSSmallDate fix into CHANGES.
Michael Trier [Mon, 14 Jul 2008 04:22:13 +0000 (04:22 +0000)] 
Added notation about MSSmallDate fix into CHANGES.

17 years agoFixed messed up __init__ in MSSmallDate. Fixes #1040.
Michael Trier [Mon, 14 Jul 2008 04:15:56 +0000 (04:15 +0000)] 
Fixed messed up __init__ in MSSmallDate. Fixes #1040.

(cherry picked from commit b1e3c1923d9f0f56b5640f7a11f423cadf30a190)

17 years ago- Merged 0.5's declarative behavior such that all
Mike Bayer [Wed, 9 Jul 2008 18:30:07 +0000 (18:30 +0000)] 
- Merged 0.5's declarative behavior such that all
Column and MapperProperty objects keep a state
variable indicating their creation order, which
declarative_base() maintains when generating
Table constructs.

17 years agoAdded PGCidr type to postgres. Closes #1092
Michael Trier [Thu, 3 Jul 2008 03:40:23 +0000 (03:40 +0000)] 
Added PGCidr type to postgres. Closes #1092

17 years ago- add SLFloat type, which matches the SQLite REAL
Mike Bayer [Wed, 2 Jul 2008 18:26:58 +0000 (18:26 +0000)] 
- add SLFloat type, which matches the SQLite REAL
type affinity.  Previously, only SLNumeric was provided
which fulfills NUMERIC affinity, but that's not the
same as REAL.

17 years ago- applied the "reverse" of r4877 from trunk; correct microsecond behavior is availabl...
Mike Bayer [Fri, 27 Jun 2008 20:21:37 +0000 (20:21 +0000)] 
- applied the "reverse" of r4877 from trunk; correct microsecond behavior is available in 0.4 if you turn off "__legacy_microseconds__" [ticket:1090]

17 years ago- The index name generated when you say "index=True"
Mike Bayer [Sun, 22 Jun 2008 17:44:35 +0000 (17:44 +0000)] 
- The index name generated when you say "index=True"
on a Column is truncated to the length appropriate
for the dialect. Additionally, an Index with a too-
long name cannot be explicitly dropped with
Index.drop(), similar to [ticket:571].
[ticket:820]

17 years ago- create_all(), drop_all(), create(), drop() all raise
Mike Bayer [Sun, 22 Jun 2008 16:53:07 +0000 (16:53 +0000)] 
- create_all(), drop_all(), create(), drop() all raise
an error if the table name or schema name contains
more characters than that dialect's configured
character limit.  Some DB's can handle too-long
table names during usage, and SQLA can handle this
as well. But various reflection/
checkfirst-during-create scenarios fail since we are
looking for the name within the DB's catalog tables.
[ticket:571]

17 years agomerged r4861, session.is_active, from trunk
Mike Bayer [Tue, 17 Jun 2008 20:55:05 +0000 (20:55 +0000)] 
merged r4861, session.is_active, from trunk

17 years agomerged PG test from r4859
Mike Bayer [Tue, 17 Jun 2008 20:18:04 +0000 (20:18 +0000)] 
merged PG test from r4859

17 years ago - Repaired server_side_cursors to properly detect
Mike Bayer [Tue, 17 Jun 2008 15:12:56 +0000 (15:12 +0000)] 
- Repaired server_side_cursors to properly detect
      text() clauses.

17 years agoadded sequence for oracle support
Mike Bayer [Fri, 13 Jun 2008 15:26:09 +0000 (15:26 +0000)] 
added sequence for oracle support

17 years ago- the enable_typechecks=False setting on relation()
Mike Bayer [Thu, 12 Jun 2008 03:34:13 +0000 (03:34 +0000)] 
- the enable_typechecks=False setting on relation()
now only allows subtypes with inheriting mappers.
Totally unrelated types, or subtypes not set up with
mapper inheritance against the target mapper are
still not allowed.

17 years agoadded some docstrings and some deprecations
Mike Bayer [Mon, 9 Jun 2008 01:46:35 +0000 (01:46 +0000)] 
added some docstrings and some deprecations

17 years ago- Query.count() will take single-table inheritance
Mike Bayer [Wed, 4 Jun 2008 19:25:35 +0000 (19:25 +0000)] 
- Query.count() will take single-table inheritance
subtypes into account the same way row-based
results do. (ticket:1008]. partial merge of 0.5's r4831.)

17 years ago- fixed bug preventing merge() from functioning in
Mike Bayer [Tue, 3 Jun 2008 14:30:42 +0000 (14:30 +0000)] 
- fixed bug preventing merge() from functioning in
conjunction with a comparable_property()

17 years ago- The contains() operator when used with many-to-many
Mike Bayer [Sun, 1 Jun 2008 14:08:02 +0000 (14:08 +0000)] 
- The contains() operator when used with many-to-many
will alias() the secondary (association) table so
that multiple contains() calls will not conflict
with each other [ticket:1058]

17 years ago- Cursors now have "arraysize" set to 50 by default on
Mike Bayer [Fri, 30 May 2008 20:56:47 +0000 (20:56 +0000)] 
- Cursors now have "arraysize" set to 50 by default on
them, the value of which is configurable using the
"arraysize" argument to create_engine() with the
Oracle dialect.  This to account for cx_oracle's default
setting of "1", which has the effect of many round trips
being sent to Oracle.  This actually works well in
conjunction with BLOB/CLOB-bound cursors, of which
there are any number available but only for the life of
that row request (so BufferedColumnRow is still needed,
but less so). [ticket:1062]

17 years ago- Added 'CALL' to the list of SQL keywords which return
Mike Bayer [Tue, 27 May 2008 20:20:14 +0000 (20:20 +0000)] 
- Added 'CALL' to the list of SQL keywords which return
result rows.

17 years agomerged r4813 from trunk, oracle schema name fix for [ticket:709]
Mike Bayer [Sat, 24 May 2008 23:35:41 +0000 (23:35 +0000)] 
merged r4813 from trunk, oracle schema name fix for [ticket:709]

17 years agoget_default_identifier() normalizes the returned name so that it may
Mike Bayer [Sat, 24 May 2008 17:05:50 +0000 (17:05 +0000)] 
get_default_identifier() normalizes the returned name so that it may
by used as the "schema" argument on a Table.  Fixes the reflection unit
test that requires this.

17 years ago- repaired single table inheritance such that you rel_0_4_6
Mike Bayer [Sat, 10 May 2008 17:31:07 +0000 (17:31 +0000)] 
- repaired single table inheritance such that you
can single-table inherit from a joined-table inherting
mapper without issue [ticket:1036].

17 years agosame as r4710:
Gaëtan de Menten [Fri, 9 May 2008 20:51:35 +0000 (20:51 +0000)] 
same as r4710:
add target_fullname as a public property for _get_colspec

17 years agoback-merged current 0.4 trunk into rel_0_4 branch, which will become the 0.4 maintena...
Mike Bayer [Fri, 9 May 2008 14:07:28 +0000 (14:07 +0000)] 
back-merged current 0.4 trunk into rel_0_4 branch, which will become the 0.4 maintenance branch

18 years agoadded an example on how to share code between sql predicate construction and instance...
Ants Aasma [Fri, 27 Jul 2007 03:30:49 +0000 (03:30 +0000)] 
added an example on how to share code between sql predicate construction and instance methods.

18 years agotook out extra exception catch/raise SQLError in places where it would already
Mike Bayer [Fri, 27 Jul 2007 03:15:34 +0000 (03:15 +0000)] 
took out extra exception catch/raise SQLError in places where it would already
be SQLError

18 years agofixed bad import
Mike Bayer [Thu, 26 Jul 2007 22:39:21 +0000 (22:39 +0000)] 
fixed bad import

18 years ago- all oracle testtypes pass in this rev
Mike Bayer [Thu, 26 Jul 2007 22:34:57 +0000 (22:34 +0000)] 
- all oracle testtypes pass in this rev

18 years ago- removed problematic generate_dbapi_typemap() method. its hardcoded just for oracle
Mike Bayer [Thu, 26 Jul 2007 22:30:09 +0000 (22:30 +0000)] 
- removed problematic generate_dbapi_typemap() method.  its hardcoded just for oracle
so far (which needs it the most).

18 years agotemporarily disabling genrated type_map which breaks all the othe rdialects
Mike Bayer [Thu, 26 Jul 2007 22:18:59 +0000 (22:18 +0000)] 
temporarily disabling genrated type_map which breaks all the othe rdialects

18 years ago- very rudimental support for OUT parameters added; use sql.outparam(name, type)
Mike Bayer [Thu, 26 Jul 2007 22:09:52 +0000 (22:09 +0000)] 
- very rudimental support for OUT parameters added; use sql.outparam(name, type)
    to set up an OUT parameter, just like bindparam(); after execution, values are
    avaiable via result.out_parameters dictionary. [ticket:507]
- dialect.get_type_map() apparently never worked, not sure why unit test seemed
to work the first time around.
- OracleText doesn't seem to return cx_oracle.LOB.

18 years agoUm... "ImportError: No module named profile; please install the python-profiler...
Jason Kirtland [Thu, 26 Jul 2007 21:12:20 +0000 (21:12 +0000)] 
Um...  "ImportError: No module named profile; please install the python-profiler package"

18 years ago- Compiled is just an object now. the ClauseVisitor portion
Mike Bayer [Thu, 26 Jul 2007 18:55:57 +0000 (18:55 +0000)] 
- Compiled is just an object now.  the ClauseVisitor portion
is now specific to ANSICompiler.

18 years ago- fixed clause_element/expression_element change from preivous checkin
Mike Bayer [Thu, 26 Jul 2007 18:37:53 +0000 (18:37 +0000)] 
- fixed clause_element/expression_element change from preivous checkin
- starting to add "out" params for oracle
- implemented partial check for "rejoin on conflicting paths" for [ticket:687]

18 years agomssql and test changes from trunk
Rick Morrison [Thu, 26 Jul 2007 18:18:54 +0000 (18:18 +0000)] 
mssql and test changes from trunk

18 years agoadded addresses table delete
Mike Bayer [Thu, 26 Jul 2007 17:47:16 +0000 (17:47 +0000)] 
added addresses table delete

18 years ago - added array slice support to row[<index>] [ticket:686]
Mike Bayer [Thu, 26 Jul 2007 17:45:25 +0000 (17:45 +0000)] 
  - added array slice support to row[<index>] [ticket:686]

18 years ago- fix to oracle table aliasing
Mike Bayer [Thu, 26 Jul 2007 17:37:30 +0000 (17:37 +0000)] 
- fix to oracle table aliasing
- added select.prefix_with(), adds arbitrary prefixes to a SELECT's columns clause, [ticket:504]

18 years ago- changed 'desired_columns' argument to 'include_columns'
Mike Bayer [Thu, 26 Jul 2007 17:11:37 +0000 (17:11 +0000)] 
- changed 'desired_columns' argument to 'include_columns'
- made 'include_columns' an explicit argument to Table.  I'm
trying to avoid the "x can be a foo, or a bar, or a list of dictionaries of hoho's"-type behavior
- added unit test, closes [ticket:561]

18 years ago- ANSICompiler now uses its own traversal when compiling, returning a composed
Mike Bayer [Thu, 26 Jul 2007 07:19:37 +0000 (07:19 +0000)] 
- ANSICompiler now uses its own traversal when compiling, returning a composed
string from each visit_XXXX method, so that the full string is compiled at once
without using any dictionary storage.  dialects modified accordingly.
tested on mysql/sqlite/postgres fully,
tested with string-only tests for oracle/fb/informix/mssql so far.

18 years ago"You can also specify a list or set of column names to autoload, if you only want...
Jonathan Ellis [Thu, 26 Jul 2007 00:50:07 +0000 (00:50 +0000)] 
"You can also specify a list or set of column names to autoload, if you only want to load a subset of the columns in the actual database."

fixes #561

18 years agofix up a docstring and some examples
Ants Aasma [Thu, 26 Jul 2007 00:01:28 +0000 (00:01 +0000)] 
fix up a docstring and some examples

18 years ago- removed the ridiculous AbstractDialect do-nothing class
Mike Bayer [Wed, 25 Jul 2007 23:36:31 +0000 (23:36 +0000)] 
- removed the ridiculous AbstractDialect do-nothing class
- fixup to docstrings

18 years agotypo fix (unbreak test suite)
Jonathan Ellis [Wed, 25 Jul 2007 23:13:48 +0000 (23:13 +0000)] 
typo fix (unbreak test suite)

18 years agoReally finish proxied list methods. Either these last couple (count, remove, setitem...
Jason Kirtland [Wed, 25 Jul 2007 22:02:49 +0000 (22:02 +0000)] 
Really finish proxied list methods. Either these last couple (count, remove, setitem w/ slice) weren't possible in 0.3 and/or I spaced these.
Improved messaging on flubbed stepped slice assignment in collection decorators.

18 years agoadd checks for well-formed ColumnProperty. fixes #683
Jonathan Ellis [Wed, 25 Jul 2007 21:17:48 +0000 (21:17 +0000)] 
add checks for well-formed ColumnProperty.  fixes #683

18 years agoadd __repr__ for engine, metadata, sqlsoup
Jonathan Ellis [Wed, 25 Jul 2007 19:05:33 +0000 (19:05 +0000)] 
add __repr__ for engine, metadata, sqlsoup

18 years agouse sha instead of crypt to decrease suckage for windows users. also crypt kinda...
Jonathan Ellis [Wed, 25 Jul 2007 19:00:14 +0000 (19:00 +0000)] 
use sha instead of crypt to decrease suckage for windows users.  also crypt kinda blows anyway

18 years ago- added unittest for sharding module
Mike Bayer [Wed, 25 Jul 2007 18:57:56 +0000 (18:57 +0000)] 
- added unittest for sharding module
- fixed shard test/example datatype to "Float" since Numeric
behavior has changed
- added docstrings to sqlalchemy/orm/__init__.py functions;
still need to proof within generated HTML pages/fix errors
- added engine.threadlocal to docs, removed old mods.threadlocal

18 years agotest graceful fallback to lazy loading for cyclical eager load with no join_depth
Mike Bayer [Tue, 24 Jul 2007 22:31:46 +0000 (22:31 +0000)] 
test graceful fallback to lazy loading for cyclical eager load with no join_depth

18 years ago- added has(), like any() but for scalars
Mike Bayer [Tue, 24 Jul 2007 22:00:19 +0000 (22:00 +0000)] 
- added has(), like any() but for scalars
- added **kwargs to has() and any(), criterion is optional; generate equality criterion
against the related table (since we know the related property when has() and any() are used),
i.e. filter(Address.user.has(name='jack')) equivalent to filter(Address.user.has(User.name=='jack'))
- added "from_joinpoint=False" arg to join()/outerjoin().  yes, I know join() is getting a little
crazy, but this flag is needed when you want to keep building along a line of aliased joins,
adding query criterion for each alias in the chain.  self-referential unit test added.
- fixed basic_tree example a little bit

18 years agorenamed new scalar() method to as_scalar(), not deprecating normal ClauseElement...
Mike Bayer [Tue, 24 Jul 2007 20:18:32 +0000 (20:18 +0000)] 
renamed new scalar() method to as_scalar(), not deprecating normal ClauseElement.scalar()...

18 years agorestored Float's full constructor to play better with overriding types, i.e. mysql...
Mike Bayer [Tue, 24 Jul 2007 20:08:20 +0000 (20:08 +0000)] 
restored Float's full constructor to play better with overriding types, i.e. mysql.MSFloat

18 years ago- deprecated scalar=True argument on select(). its replaced
Mike Bayer [Tue, 24 Jul 2007 20:05:10 +0000 (20:05 +0000)] 
- deprecated scalar=True argument on select().  its replaced
by select().scalar() which returns a _ScalarSelect object, that obeys
the ColumnElement interface fully
- removed _selectable() method.  replaced with __selectable__() as an optional
duck-typer; subclassing Selectable (without any __selectable__()) is equivalent
- query._col_aggregate() was assuming bound metadata.  ick !
- probably should deprecate ClauseElement.scalar(), in favor of ClauseElement.execute().scalar()...
otherwise might need to rename select().scalar()

18 years ago- Numeric and Float types now have an "asdecimal" flag; defaults to
Mike Bayer [Tue, 24 Jul 2007 16:36:14 +0000 (16:36 +0000)] 
- Numeric and Float types now have an "asdecimal" flag; defaults to
True for Numeric, False for Float.  when True, values are returned as
decimal.Decimal objects; when False, values are returned as float().
the defaults of True/False are already the behavior for PG and MySQL's
DBAPI modules. [ticket:646]