]>
git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
Mike Bayer [Sun, 31 May 2009 18:16:23 +0000 (18:16 +0000)]
its raise x from e
Mike Bayer [Sun, 31 May 2009 16:33:00 +0000 (16:33 +0000)]
- added an "inline_ddl" flag to Constraint. this controls if DDL is emitted
from within CREATE TABLE, and is flipped off automatically when the item
is placed within an Add/DropConstraint object.
- the use_alter flag on ForeignKey is now a shortcut option for operations that
can be hand-constructed using the DDL() event system. A side effect of this refactor
is that ForeignKeyConstraint objects with use_alter=True will *not* be emitted on
SQLite, which does not support ALTER for foreign keys. This has no effect on SQLite's
behavior since SQLite does not actually honor FOREIGN KEY constraints.
- the "on" callable passed to DDL() needs to accept **kw arguments.
In the case of MetaData before/after create/drop, the list of
Table objects for which CREATE/DROP DDL is to be issued is passed
as the kw argument "tables". This is necessary for metadata-level
DDL that is dependent on the presence of specific tables.
- the "metadata" argument is removed from DefaultGenerator and subclasses,
but remains locally present on Sequence, which is a standalone construct
in DDL.
- really trying to pare down usage of testing.mock_engine()
Mike Bayer [Sun, 31 May 2009 14:56:56 +0000 (14:56 +0000)]
the compiler works for types ! heh
Mike Bayer [Sun, 31 May 2009 01:27:46 +0000 (01:27 +0000)]
- lots of paring down and cleanup of schema / DDL. reworked
all _CreateDropBase classes to extend from the same event
framework as DDL(). semi-support for dialect-conditional
Constraint objects, needs work.
Mike Bayer [Sat, 30 May 2009 21:03:41 +0000 (21:03 +0000)]
- repair were-never-working instrumentation tests
- use nicer py3k reraise style detailed in pep3109 (directly affects how the traceback is formatted vs. with_traceback())
- seriously considering writing regular tests for sqlsoup since this is going to be impossible to 2to3-ize
Mike Bayer [Sat, 30 May 2009 19:56:08 +0000 (19:56 +0000)]
some nextisms
Mike Bayer [Sat, 30 May 2009 19:38:08 +0000 (19:38 +0000)]
reverted a change which dates back to [changeset:5037] - there
doesn't seem to be any way for an old style class to be in the `__subclasses__()`
collection of a new style class. also fixes a 2to3 screwup
allowing test/orm/attributes.py to pass fully on py3k
Mike Bayer [Sat, 30 May 2009 19:12:21 +0000 (19:12 +0000)]
serializer
Mike Bayer [Sat, 30 May 2009 18:52:26 +0000 (18:52 +0000)]
orderinglist slice fixes
Mike Bayer [Sat, 30 May 2009 18:27:13 +0000 (18:27 +0000)]
the light has been seen. all tests pass 2k + 3k + new tests
Mike Bayer [Sat, 30 May 2009 17:13:13 +0000 (17:13 +0000)]
fixes to __setitem__ in the list adapter to handle some slices that
usually go right to __setslice__
Mike Bayer [Sat, 30 May 2009 16:22:53 +0000 (16:22 +0000)]
- py3k stuff
- we don't need column_dict in construct_params now
Mike Bayer [Sat, 30 May 2009 01:11:12 +0000 (01:11 +0000)]
use util.threading
Mike Bayer [Sat, 30 May 2009 01:05:25 +0000 (01:05 +0000)]
- removed the connect() method of metadata,threadlocalmetadata
- removed import of "thread" which is unused, is not "public" in py3k anyway
Mike Bayer [Fri, 29 May 2009 23:27:16 +0000 (23:27 +0000)]
squeezing out py3k fixes....sooo slowwww
Mike Bayer [Fri, 29 May 2009 21:57:15 +0000 (21:57 +0000)]
merged -r5987:5991 of trunk
Mike Bayer [Thu, 28 May 2009 01:00:27 +0000 (01:00 +0000)]
fix some tests, a py3k import
Mike Bayer [Thu, 28 May 2009 00:49:31 +0000 (00:49 +0000)]
oops, checked in a pdb
Mike Bayer [Thu, 28 May 2009 00:39:12 +0000 (00:39 +0000)]
merged -r5974:5987 of trunk
Mike Bayer [Wed, 27 May 2009 00:22:52 +0000 (00:22 +0000)]
fixes
Mike Bayer [Tue, 26 May 2009 22:31:29 +0000 (22:31 +0000)]
schema, reflection, and type refinements. in particular the default precision/scale args are
removed from Numeric/Float.
Mike Bayer [Tue, 26 May 2009 17:21:41 +0000 (17:21 +0000)]
most ORM tests passing in py3.1 with these changes
Mike Bayer [Tue, 26 May 2009 17:05:36 +0000 (17:05 +0000)]
move StringIO to its own line for 2to3 compat
Mike Bayer [Tue, 26 May 2009 01:01:25 +0000 (01:01 +0000)]
- pg8000 fixes
- removed hardcoded TIMESTAMP func, deprecated in 0.5.4p2
Mike Bayer [Mon, 25 May 2009 15:29:18 +0000 (15:29 +0000)]
merged r5976
Mike Bayer [Mon, 25 May 2009 15:20:44 +0000 (15:20 +0000)]
merge -r5936:5974 of trunk
Philip Jenvey [Sun, 3 May 2009 00:54:06 +0000 (00:54 +0000)]
refactor
Philip Jenvey [Sun, 3 May 2009 00:05:28 +0000 (00:05 +0000)]
fix _sort not always using the node's id as its key
fixes #1380
Mike Bayer [Sat, 2 May 2009 17:46:21 +0000 (17:46 +0000)]
merge r5939 from trunk
Mike Bayer [Sat, 2 May 2009 15:48:32 +0000 (15:48 +0000)]
merged -r 5869:5936 of trunk, including dialect changes re: extract()
Philip Jenvey [Fri, 1 May 2009 06:36:36 +0000 (06:36 +0000)]
explicitly gc_collect weakref tests
fixes #1382
Philip Jenvey [Thu, 30 Apr 2009 19:43:32 +0000 (19:43 +0000)]
merge r5895 from trunk
Randall Smith [Thu, 30 Apr 2009 04:23:20 +0000 (04:23 +0000)]
fix mssql cursor closed issue on reflection
Randall Smith [Wed, 29 Apr 2009 19:29:59 +0000 (19:29 +0000)]
pass cache to _prepare_reflection_args
Randall Smith [Wed, 29 Apr 2009 04:17:59 +0000 (04:17 +0000)]
cache _prepare_reflection_args
Randall Smith [Sat, 25 Apr 2009 18:58:43 +0000 (18:58 +0000)]
removed attrs key from get_columns return value
Randall Smith [Sat, 25 Apr 2009 18:41:11 +0000 (18:41 +0000)]
removed unecessary oracle specific logic
Randall Smith [Sat, 25 Apr 2009 07:35:03 +0000 (07:35 +0000)]
moved reflecttable to inspector for mssql
Michael Trier [Fri, 24 Apr 2009 02:31:31 +0000 (02:31 +0000)]
removed the connection_memoize stuff.
Randall Smith [Thu, 23 Apr 2009 02:46:19 +0000 (02:46 +0000)]
raise NoSuchTableError in reflecttable
Michael Trier [Thu, 23 Apr 2009 01:38:09 +0000 (01:38 +0000)]
Corrected mysql import for CLIENT_FLAGS. Added commented out memoize decorators that will not work without a ProxyConnection.
Michael Trier [Wed, 22 Apr 2009 13:23:21 +0000 (13:23 +0000)]
Corrected mysql version info check.
Randall Smith [Wed, 22 Apr 2009 07:17:34 +0000 (07:17 +0000)]
moved reflecttable to inspector for postgresql, oracle, sqlite and mysql
Michael Trier [Sun, 19 Apr 2009 21:23:39 +0000 (21:23 +0000)]
Corrected exception references in Postgres dialect.
Michael Trier [Sun, 19 Apr 2009 21:23:36 +0000 (21:23 +0000)]
standardized tests on test_schema and test_schema_2.
Michael Trier [Sun, 19 Apr 2009 21:23:32 +0000 (21:23 +0000)]
Fixed function call counts for 2.5 / 2.6
Lele Gaifax [Wed, 15 Apr 2009 09:34:03 +0000 (09:34 +0000)]
Typo in docstring
Lele Gaifax [Wed, 15 Apr 2009 09:30:10 +0000 (09:30 +0000)]
Whitespace normalization, adjust some docstrings to reST/Sphinx conventions
Jason Kirtland [Wed, 1 Apr 2009 02:04:10 +0000 (02:04 +0000)]
Reverting property workaround
Jason Kirtland [Wed, 1 Apr 2009 01:52:16 +0000 (01:52 +0000)]
Migrated gc.collect hack to testlib.compat
Jason Kirtland [Wed, 1 Apr 2009 01:34:49 +0000 (01:34 +0000)]
Patch-o
Jason Kirtland [Tue, 31 Mar 2009 21:59:48 +0000 (21:59 +0000)]
Updated $py.class ignores
Jason Kirtland [Tue, 31 Mar 2009 21:57:23 +0000 (21:57 +0000)]
And added this one
Jason Kirtland [Tue, 31 Mar 2009 21:46:17 +0000 (21:46 +0000)]
Adding missing sqlite portion of alowry's patch from r5881
Jason Kirtland [Tue, 31 Mar 2009 21:35:44 +0000 (21:35 +0000)]
Special gc.collect() tickling for Jython patch from pjenvey
Mike Bayer [Tue, 31 Mar 2009 20:54:10 +0000 (20:54 +0000)]
a myriad of close_first calls to get sql.alltests to run
Mike Bayer [Tue, 31 Mar 2009 20:16:38 +0000 (20:16 +0000)]
the return of --mockpool, mocking you and your crappy code that doesn't clean up after itself
Michael Trier [Tue, 31 Mar 2009 19:54:01 +0000 (19:54 +0000)]
Minor changes to adodbapi.
Jason Kirtland [Tue, 31 Mar 2009 19:49:13 +0000 (19:49 +0000)]
- Added support for create_engine(isolation_level=...); postgres &
sqlite initially [ticket:443]
- Dialects gained visit_pool
- Pools gained a first_connect event
Patch from Adam Lowry. Thank you Adam!
Michael Trier [Tue, 31 Mar 2009 19:29:27 +0000 (19:29 +0000)]
Corrected MSSQL support for 0.6.
Mike Bayer [Tue, 31 Mar 2009 18:57:22 +0000 (18:57 +0000)]
a pared down ext.compiler with minimal boilerplate.
Mike Bayer [Tue, 31 Mar 2009 17:55:03 +0000 (17:55 +0000)]
revert back to the 0.5 way of calling DBAPIError.instance(), but add the tback as the 3rd argument. didn't realize this
usage. sorry empty !
Mike Bayer [Tue, 31 Mar 2009 17:00:02 +0000 (17:00 +0000)]
- rollback everything before dropping tables. PG + jython is a rough combo
- zxJDBC totally not returning rowcounts correctly
- some dict ordering for jython
Michael Trier [Tue, 31 Mar 2009 16:20:28 +0000 (16:20 +0000)]
Fixed up the tests for the new style exception instance_cls.
Michael Trier [Tue, 31 Mar 2009 07:14:44 +0000 (07:14 +0000)]
Corrections to 0.6 to fix mssql problems.
Mike Bayer [Mon, 30 Mar 2009 22:32:36 +0000 (22:32 +0000)]
- jython support. works OK for expressions, there's a major weakref bug in ORM tho
- reraises of exceptions pass along the original stack trace
Mike Bayer [Sun, 29 Mar 2009 21:40:01 +0000 (21:40 +0000)]
merged -r5841:5869 of trunk, including a local information_schema.py for MSSQL
Mike Bayer [Sat, 21 Mar 2009 19:34:45 +0000 (19:34 +0000)]
- connection initialize moves to a connection pool event [ticket:1340]
- sqlite doesn't support schemas. not sure if some versions do, but marking those as unsupported for now.
- added a testing.requires callable for schema support.
- standardized the "extra schema" name for unit tests as "test_schema" and "test_schema_2".
- sqlite needs description_encoding (was some other version of pysqlite tested here ?)
- other test fixes.
Arc Riley [Wed, 18 Mar 2009 00:13:39 +0000 (00:13 +0000)]
Set the set in __builtins__ check to Py2-only, set is always available in Py3
I believe some other test may be overriding __builtins__ to be a dict instead of a module only on Py3, but this is the easiest fix.
Arc Riley [Tue, 17 Mar 2009 23:37:21 +0000 (23:37 +0000)]
Removed __builtin__ and buffer hack for MySQLdb for Py3
Randall Smith [Tue, 17 Mar 2009 22:04:15 +0000 (22:04 +0000)]
updated documentation
Arc Riley [Tue, 17 Mar 2009 18:29:38 +0000 (18:29 +0000)]
changed file() to open() for better portability
Randall Smith [Tue, 17 Mar 2009 04:11:07 +0000 (04:11 +0000)]
minor updates to documentation strings
Randall Smith [Tue, 17 Mar 2009 03:01:40 +0000 (03:01 +0000)]
moved tests in test/reflection.py into test/engine/reflection.py
Randall Smith [Sun, 15 Mar 2009 05:30:24 +0000 (05:30 +0000)]
refactored reflecttable
Mike Bayer [Sun, 15 Mar 2009 03:41:03 +0000 (03:41 +0000)]
- merged -r5797:5841 of trunk, including ported changes to MSSQL, Postgres
- got server_version_info attribute on sqlite, postgres, needs work
Randall Smith [Thu, 12 Mar 2009 04:05:58 +0000 (04:05 +0000)]
reflection fully implemented for mysql
Randall Smith [Sat, 7 Mar 2009 20:36:19 +0000 (20:36 +0000)]
fixed pkey for include_columns and fkey options
Randall Smith [Sat, 7 Mar 2009 20:28:40 +0000 (20:28 +0000)]
applied Michael's patch to fix issue with CREATE TABLE parser state
Randall Smith [Fri, 6 Mar 2009 20:23:52 +0000 (20:23 +0000)]
refactored mysql to separtate parsing from reflecting
Randall Smith [Wed, 4 Mar 2009 05:44:13 +0000 (05:44 +0000)]
moved get_table_names
Randall Smith [Wed, 4 Mar 2009 05:43:26 +0000 (05:43 +0000)]
added check for get_default_schema_name implementation
Randall Smith [Wed, 4 Mar 2009 04:15:57 +0000 (04:15 +0000)]
added **kw to base BaseDialect reflection method sigs
Randall Smith [Mon, 2 Mar 2009 05:59:01 +0000 (05:59 +0000)]
added reflection methods
Randall Smith [Mon, 2 Mar 2009 05:46:16 +0000 (05:46 +0000)]
dialects can subclass Inspector
Randall Smith [Sun, 1 Mar 2009 06:02:57 +0000 (06:02 +0000)]
removed redundant methods from Inspector
Randall Smith [Sun, 1 Mar 2009 04:05:19 +0000 (04:05 +0000)]
using util.decorator and adding *kw to reflection method signatures
Mike Bayer [Sat, 28 Feb 2009 17:03:59 +0000 (17:03 +0000)]
updates for latest 0.6 of sphinx
Randall Smith [Sat, 28 Feb 2009 06:06:44 +0000 (06:06 +0000)]
moving to simpler cache technique
Randall Smith [Thu, 19 Feb 2009 05:40:35 +0000 (05:40 +0000)]
refactored. tests/dialects/sqlite and tests/engine/reflection pass
Randall Smith [Wed, 18 Feb 2009 06:38:53 +0000 (06:38 +0000)]
reflection methods not use decorator for caching
Randall Smith [Sun, 15 Feb 2009 07:52:27 +0000 (07:52 +0000)]
finished oracle - all tests pass
Mike Bayer [Sat, 14 Feb 2009 23:02:33 +0000 (23:02 +0000)]
- merged -r5727:5797 of trunk
- newest pg8000 handles unicode statements correctly.
Randall Smith [Fri, 13 Feb 2009 05:38:39 +0000 (05:38 +0000)]
normalized reflection arguments
Randall Smith [Thu, 12 Feb 2009 06:32:03 +0000 (06:32 +0000)]
essential refactoring complete - tests pass
Randall Smith [Thu, 12 Feb 2009 06:31:22 +0000 (06:31 +0000)]
added more methods for convenience
Randall Smith [Thu, 12 Feb 2009 04:40:03 +0000 (04:40 +0000)]
make sure inputs are unicode when binding to unicode
Randall Smith [Wed, 11 Feb 2009 06:30:27 +0000 (06:30 +0000)]
refactored mssql for reflection (tests pass/fail same)
Randall Smith [Wed, 11 Feb 2009 06:29:39 +0000 (06:29 +0000)]
set info_cache class
Randall Smith [Wed, 11 Feb 2009 06:28:49 +0000 (06:28 +0000)]
fixed view support