Commit Graph

27 Commits

Author SHA1 Message Date
Mike Bayer 7b82393355 sequence/default adjustments to allow postgres 8.1 tests to function 2006-08-31 23:33:55 +00:00
Mike Bayer 47332cb147 - changed "invalidate" semantics with pooled connection; will
instruct the underlying connection record to reconnect the next
time its called.  "invalidate" will also automatically be called
if any error is thrown in the underlying call to connection.cursor().
this will hopefully allow the connection pool to reconnect to a
database that had been stopped and started without restarting
the connecting application [ticket:121]
2006-08-26 21:32:11 +00:00
Mike Bayer 8260ca2723 - cleanup on connection methods + documentation. custom DBAPI
arguments specified in query string, 'connect_args' argument
to 'create_engine', or custom creation function via 'creator'
function to 'create_engine'.
- added "recycle" argument to Pool, is "pool_recycle" on create_engine,
defaults to 3600 seconds; connections after this age will be closed and
replaced with a new one, to handle db's that automatically close
stale connections [ticket:274]
2006-08-25 16:27:10 +00:00
Mike Bayer a8d1aecfab - urls support escaped characters in passwords [ticket:281] 2006-08-22 18:58:01 +00:00
Mike Bayer 43d3b77307 - unit tests updated to run without any pysqlite installed; pool
test uses a mock DBAPI
2006-08-21 20:01:32 +00:00
Mike Bayer d0a3313edf - 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]
2006-08-21 00:37:34 +00:00
Mike Bayer bd04cffad8 more fixes for [ticket:269], added MSMediumBlob type 2006-08-18 00:49:57 +00:00
Mike Bayer 698725a1a9 [ticket:277] check if pg/oracle sequence exists. checks in all cases before CREATE SEQUENCE/ DROP SEQUENCE 2006-08-16 19:48:24 +00:00
Mike Bayer 26efe4f643 fixes to types so that database-specific types more easily used;
fixes to mysql text types to work with this methodology
[ticket:269]
2006-08-12 19:50:07 +00:00
Mike Bayer 4e033e73f3 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
2006-08-12 17:53:04 +00:00
Mike Bayer aaefbb7e04 - 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.
2006-08-03 00:28:57 +00:00
Mike Bayer 946984d812 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]
2006-07-22 06:21:58 +00:00
Mike Bayer 934ac330ea added table.exists() 2006-07-19 22:20:49 +00:00
Mike Bayer 8b50115acc added 'checkfirst' argument to table.create()/table.drop()
some 0.2.6 prep
2006-07-19 22:13:29 +00:00
Mike Bayer bc6fbfa84a 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.
2006-07-14 20:06:09 +00:00
Mike Bayer 55edd4ce95 adjument to regexp for parsing courtesy Barry Warsaw 2006-07-10 21:33:03 +00:00
Mike Bayer 1b0ac7e43b 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
2006-07-09 17:58:01 +00:00
Mike Bayer b3927fbb88 inserting './lib/' into sys.path since PYTHONPATH no longer straightforward with latest setuptools 2006-06-29 00:28:55 +00:00
Mike Bayer dc1cc365c2 when QueuePool times out it raises a TimeoutError instead of
erroneously making another connection
2006-06-26 02:06:44 +00:00
Mike Bayer 0e0cedaf9d identified another TLTransaction scenario, and adjusted TLConnection/TLSession to fix this as well (reverted previous change, and overriding in_transaction() instead) 2006-06-22 20:03:09 +00:00
Mike Bayer 5f3451fcc3 TLConnection insures that it is used to create a transaction via the session when begin() is called, so that it has proper transactional context, + unittests 2006-06-22 19:46:44 +00:00
Mike Bayer f6718830bf unsupported unit test on mysql 2006-06-16 19:28:36 +00:00
Mike Bayer 53faada96c fixed nested rollbacks 2006-06-14 15:50:40 +00:00
Mike Bayer d37d8681e4 fixed bug where tables with schema name werent getting indexed in metadata correctly 2006-06-06 16:38:30 +00:00
Mike Bayer bdb41655d1 added "NonExistentTable" exception throw to reflection, courtesy lbruno@republico.estv.ipv.pt, for [ticket:138] 2006-06-06 00:11:54 +00:00
Mike Bayer 82ee832c8d more fixes to transaction nesting, interacts better with close() statement 2006-06-05 18:25:35 +00:00
Mike Bayer 120dcee5a7 reorganized unit tests into subdirectories 2006-06-05 17:25:51 +00:00