| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
[ticket:1094]
|
| |
|
|
| |
maintenance branch
|
| |
|
|
| |
the lifetime of the underlying DBAPI connection. Accessors on Connections and fairies.
|
| | |
|
| | |
|
| |
|
|
| |
Fixed comparison of _UnaryExpressions
|
| | |
|
| |
|
|
|
| |
- merged vertical.py delete tests from trunk r2820, fixed collection
to new style collection
|
| |
|
|
|
| |
Works now, but less readable.
- Shaped the script from ticket #608 into a test case
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
instead of returning to the pool for reuse
|
| |
|
|
|
|
|
| |
this method is called when the invalidate() occurs for a disconnect condition,
so that the entire pool is recreated, thereby avoiding repeat errors on
remaining connections in the pool.
dispose() called as well (also fixed up) but cant guarantee all connections closed.
|
| |
|
|
|
|
| |
base.py. dialects have
is_disconnect() method now. simpler design which also puts control of the ultimate "execute" call back into the hands of the dialects.
|
| |
|
|
|
|
|
|
| |
- improves the framework for auto-invalidation of connections that have
lost their underlying database - the error catching/invalidate
step is totally moved to the connection pool.
- added better condition checking for do_rollback() and do_commit() including
SQLError excepetion wrapping
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- much more functionality moved into ExecutionContext, which impacted
the API used by dialects to some degree
- ResultProxy and subclasses now designed sanely
- merged patch for #522, Unicode subclasses String directly,
MSNVarchar implements for MS-SQL, removed MSUnicode.
- String moves its "VARCHAR"/"TEXT" switchy thing into
"get_search_list()" function, which VARCHAR and CHAR can override
to not return TEXT in any case (didnt do the latter yet)
- implements server side cursors for postgres, unit tests, #514
- includes overhaul of dbapi import strategy #480, all dbapi
importing happens in dialect method "dbapi()", is only called
inside of create_engine() for default and threadlocal strategies.
Dialect subclasses have a datamember "dbapi" referencing the loaded
module which may be None.
- added "mock" engine strategy, doesnt require DBAPI module and
gives you a "Connecition" which just sends all executes to a callable.
can be used to create string output of create_all()/drop_all().
|
| |
|
|
| |
incorrect checkin to trunk
|
| | |
|
| |
|
|
|
|
| |
straight <pre> + trim() func
for now. applies most of [ticket:214], compliemnts of Lele Gaifax
|
| | |
|
| | |
|
| |
|
|
| |
that was not reachable, also fixed dispose() method
|
| | |
|
| |
|
|
| |
MySQL synchronization errors [ticket:387]
|
| |
|
|
| |
(commands out of sync) and invalidates the connection on which it occured.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
- the "delete" cascade will load in all child objects, if they were not
loaded already. this can be turned off (i.e. the old behavior) by setting
passive_deletes=True on a relation().
|
| |
|
|
| |
- "use_threadlocal" on Pool defaults to False (same as create_engine)
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
instead
- consolidated scalar() calls into ResultProxy scalar(), fixed ResultProxy scalar() to
apply typing rules
- general de-cruftification of ClauseElement/Compiled (yes i know theres crufty things everywhere)
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
"echo" keyword parameters are still functional but set/unset
log levels for their respective classes/instances. all logging
can be controlled directly through the Python API by setting
INFO and DEBUG levels for loggers in the "sqlalchemy" namespace.
class-level logging is under "sqlalchemy.<module>.<classname>",
instance-level logging under "sqlalchemy.<module>.<classname>.<hexid>".
Test suite includes "--log-info" and "--log-debug" arguments
which work independently of --verbose/--quiet. Logging added
to orm to allow tracking of mapper configurations, row iteration
fixes [ticket:229] [ticket:79]
|
| |
|
|
|
| |
is returned to pool with cursors still opened. fixes issues with MySQL,
others
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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]
|
| |
|
|
|
|
|
|
|
|
| |
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]
|
| | |
|
| | |
|
| |
|
|
|
|
| |
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)
|
| |
|
|
| |
for sqlite applications that dispose of threads en masse
|
| |
|
|
|
| |
overflow counter should only be decremented if the connection actually
succeeded. added a test script to attempt testing this.
|
| |
|
|
|
| |
singletonthreadpool has a dispose() method, used by proxy_engine test
to better clean up after itself on windows
|
| | |
|
| |
|
|
| |
arguments to be propigated [ticket:221]
|
| | |
|
| | |
|
| | |
|