]>
git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
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
Randall Smith [Wed, 11 Feb 2009 04:45:35 +0000 (04:45 +0000)]
revised to use PGInfoCache
Randall Smith [Wed, 11 Feb 2009 04:44:43 +0000 (04:44 +0000)]
added DefaultInfoCache
Randall Smith [Thu, 5 Feb 2009 06:03:49 +0000 (06:03 +0000)]
added order_by='foreign_key' option to help with dependency checking
Randall Smith [Wed, 4 Feb 2009 06:42:26 +0000 (06:42 +0000)]
added reflection (inspector) and tests
Randall Smith [Wed, 4 Feb 2009 06:05:45 +0000 (06:05 +0000)]
additional reflection methods
Randall Smith [Wed, 4 Feb 2009 05:43:15 +0000 (05:43 +0000)]
completed refactoring of reflecttable
Randall Smith [Mon, 2 Feb 2009 06:25:14 +0000 (06:25 +0000)]
factored out column reflection from reflecttable
Mike Bayer [Sat, 31 Jan 2009 21:10:26 +0000 (21:10 +0000)]
most orm tests are passing in 3k with pysqlite. collections the biggest area left.
Mike Bayer [Fri, 30 Jan 2009 21:22:19 +0000 (21:22 +0000)]
some lists to iterators
Mike Bayer [Fri, 30 Jan 2009 20:48:54 +0000 (20:48 +0000)]
- modernized UnicodeTest/BinaryTest
- removed PickleType homegrown comparison method
- testtypes passes in 3k for sqlite/pg8000
Mike Bayer [Fri, 30 Jan 2009 19:22:43 +0000 (19:22 +0000)]
- sql round trips are coming on line for sqlite, pg8000
- pg8000 returns col.description as bytes, heh
- absolute module imports play havoc with "python test/foo/test.py" - start using -m
Mike Bayer [Fri, 30 Jan 2009 17:48:43 +0000 (17:48 +0000)]
select.py passes in 3k
Mike Bayer [Fri, 30 Jan 2009 16:34:26 +0000 (16:34 +0000)]
test/base/alltests passes in 3k
Mike Bayer [Fri, 30 Jan 2009 15:38:09 +0000 (15:38 +0000)]
most folks dont put "./lib/" in their PYTHONPATH. so replace with the same approach as that of util.
Mike Bayer [Fri, 30 Jan 2009 15:12:41 +0000 (15:12 +0000)]
use sqlalchemy.util functions here. the previous implementation is
not compatible with py3k. I can run all tests or any combination of tests
by using sqlalchemy.util so it's not clear to me why sqlalchemy.util
reportedly cannot be imported at this phase.
Michael Trier [Fri, 30 Jan 2009 05:09:14 +0000 (05:09 +0000)]
Switched ext compiler test to use sqlite.
Michael Trier [Fri, 30 Jan 2009 05:04:59 +0000 (05:04 +0000)]
Get the callable import right.
Michael Trier [Fri, 30 Jan 2009 04:54:19 +0000 (04:54 +0000)]
Callable must be defined before path magic occurs.
Michael Trier [Fri, 30 Jan 2009 04:35:43 +0000 (04:35 +0000)]
Resolved merge conflict.
Michael Trier [Fri, 30 Jan 2009 04:28:35 +0000 (04:28 +0000)]
Couple more corrections to get mssql tests to pass.
Mike Bayer [Fri, 30 Jan 2009 01:15:05 +0000 (01:15 +0000)]
py3king
Mike Bayer [Fri, 30 Jan 2009 00:00:40 +0000 (00:00 +0000)]
2to3 wrapper which includes a preprocessor
Mike Bayer [Thu, 29 Jan 2009 22:29:32 +0000 (22:29 +0000)]
test fixes
Michael Trier [Thu, 29 Jan 2009 17:03:30 +0000 (17:03 +0000)]
Fixed up some of the mssql dialect tests for date handling.
Mike Bayer [Thu, 29 Jan 2009 16:58:44 +0000 (16:58 +0000)]
correct subclassing
Mike Bayer [Thu, 29 Jan 2009 16:35:51 +0000 (16:35 +0000)]
jek's name change
Mike Bayer [Thu, 29 Jan 2009 16:25:10 +0000 (16:25 +0000)]
doc
Mike Bayer [Thu, 29 Jan 2009 16:19:51 +0000 (16:19 +0000)]
- dialect.type_descriptor() becomes a classmethod
- TypeEngine caches types in impl_dict per dialect class
[ticket:1299]
Michael Trier [Thu, 29 Jan 2009 05:14:47 +0000 (05:14 +0000)]
A couple of cleanup items to remove pdb and correct dialect name on informix.
Mike Bayer [Sun, 25 Jan 2009 20:52:02 +0000 (20:52 +0000)]
mssql type fixes....
Mike Bayer [Sun, 25 Jan 2009 19:50:21 +0000 (19:50 +0000)]
Corrections to MSSQL Date/Time types; generalized server_version_info to a create_engine() pre-step
Mike Bayer [Sun, 25 Jan 2009 00:49:00 +0000 (00:49 +0000)]
0.6 development branch
Mike Bayer [Sun, 25 Jan 2009 00:48:15 +0000 (00:48 +0000)]
- the 'expire' option on query.update() has been renamed to 'fetch', thus matching
that of query.delete()
- query.update() and query.delete() both default to 'evaluate' for the synchronize
strategy.
- the 'synchronize' strategy for update() and delete() raises an error on failure.
There is no implicit fallback onto "fetch". Failure of evaluation is based
on the structure of criteria, so success/failure is deterministic based on
code structure.
Mike Bayer [Sat, 24 Jan 2009 23:43:23 +0000 (23:43 +0000)]
hand-merged pg/mssql changes from trunk -r5699:5727
Mike Bayer [Sat, 24 Jan 2009 22:55:51 +0000 (22:55 +0000)]
merged -r5699:5727 of trunk
Michael Trier [Wed, 21 Jan 2009 18:18:42 +0000 (18:18 +0000)]
One more mssql dialect test fix.
Michael Trier [Wed, 21 Jan 2009 02:50:28 +0000 (02:50 +0000)]
Working through dialect changes.
Michael Trier [Tue, 20 Jan 2009 03:39:40 +0000 (03:39 +0000)]
A couple of fixes for the mssql dialect to correct restructuring / renaming.
Mike Bayer [Tue, 20 Jan 2009 03:08:22 +0000 (03:08 +0000)]
caps adjust
Mike Bayer [Tue, 20 Jan 2009 02:38:54 +0000 (02:38 +0000)]
some import fixes
Mike Bayer [Tue, 20 Jan 2009 02:35:49 +0000 (02:35 +0000)]
- mssql dialects are in place, not fully tested
Mike Bayer [Mon, 19 Jan 2009 18:59:59 +0000 (18:59 +0000)]
- pg uses generic Biginteger now
- fix to _is_excluded() function
Mike Bayer [Mon, 19 Jan 2009 18:44:07 +0000 (18:44 +0000)]
a little guide on how im thinking about types
Mike Bayer [Mon, 19 Jan 2009 18:24:56 +0000 (18:24 +0000)]
remove pyc
Mike Bayer [Mon, 19 Jan 2009 18:24:40 +0000 (18:24 +0000)]
- moved all the dialects over to their final positions
- structured maxdb, sybase, informix dialects. obviously no testing has been done.
Mike Bayer [Sun, 18 Jan 2009 22:36:27 +0000 (22:36 +0000)]
merged -r5676:5699 of trunk
Mike Bayer [Sat, 17 Jan 2009 17:28:04 +0000 (17:28 +0000)]
import cleanup
Mike Bayer [Sat, 17 Jan 2009 07:03:36 +0000 (07:03 +0000)]
- added a compiler extension that allows easy creation of user-defined compilers,
which register themselves with custom ClauseElement subclasses such that the compiler
is invoked along with the primary compiler. The compilers can also be registered
on a per-dialect basis.
This provides a supported path for SQLAlchemy extensions such as ALTER TABLE
extensions and other SQL constructs.
Mike Bayer [Sat, 17 Jan 2009 01:16:51 +0000 (01:16 +0000)]
- oracle support, includes fix for #994
Mike Bayer [Fri, 16 Jan 2009 21:02:46 +0000 (21:02 +0000)]
pg8000 handling unicode fine now
Mike Bayer [Fri, 16 Jan 2009 19:31:28 +0000 (19:31 +0000)]
- more or less pg8000 support. has a rough time with non-ascii data.
- removed "send unicode straight through" logic from sqlite, this becomes
base dialect configurable
- simplfied Interval type to not have awareness of PG dialect. dialects
can name TypeDecorator classes in their colspecs dict.
Mike Bayer [Thu, 15 Jan 2009 16:38:17 +0000 (16:38 +0000)]
convert_unicode by default clears up the issue for now
Mike Bayer [Wed, 14 Jan 2009 23:52:14 +0000 (23:52 +0000)]
more mysql+pyodbc fixes
Mike Bayer [Wed, 14 Jan 2009 21:06:02 +0000 (21:06 +0000)]
merge -r5673:5675 of trunk
Mike Bayer [Wed, 14 Jan 2009 17:52:10 +0000 (17:52 +0000)]
- mysql+pyodbc working for regular usage, ORM, etc. types and unicode still flaky.
- updated testing decorators to receive "name+driver"-style specifications
Mike Bayer [Wed, 14 Jan 2009 16:58:20 +0000 (16:58 +0000)]
more test fixup, type correction
Mike Bayer [Tue, 13 Jan 2009 22:15:29 +0000 (22:15 +0000)]
the most epic dialect of all. the MYSQL DIALECT. didn't port the dialect test over yet.
Mike Bayer [Tue, 13 Jan 2009 18:00:28 +0000 (18:00 +0000)]
our likely approach towards documentation of generic driver + dbapi driver
Mike Bayer [Tue, 13 Jan 2009 17:37:38 +0000 (17:37 +0000)]
merge -r5658:5665 from trunk
Mike Bayer [Tue, 13 Jan 2009 17:33:53 +0000 (17:33 +0000)]
first merge from the hg repo. may need cleanup/refreshing
Mike Bayer [Tue, 13 Jan 2009 17:08:02 +0000 (17:08 +0000)]
break out dialects and drivers
Mike Bayer [Tue, 13 Jan 2009 15:56:51 +0000 (15:56 +0000)]
prefer this methods
Mike Bayer [Tue, 13 Jan 2009 15:45:59 +0000 (15:45 +0000)]
- It's an error to add new Column objects to a declarative class
that specified an existing table using __table__.
Mike Bayer [Tue, 13 Jan 2009 15:38:38 +0000 (15:38 +0000)]
- Column with no name (as in declarative) won't raise a
NoneType error when it's string output is requsted
(such as in a stack trace).
Mike Bayer [Tue, 13 Jan 2009 06:11:17 +0000 (06:11 +0000)]
- Fixed a bug with the unitofwork's "row switch" mechanism,
i.e. the conversion of INSERT/DELETE into an UPDATE, when
combined with joined-table inheritance and an object
which contained no defined values for the child table where
an UPDATE with no SET clause would be rendered.
Jason Kirtland [Tue, 13 Jan 2009 02:43:52 +0000 (02:43 +0000)]
- Tightened up **kw on ColumnProperty and its front-end functions.