Age | Commit message (Collapse) | Author |
|
|
|
Psycopg 2.4.2 moved them around.
Stop hard-coding them, instead import from psycopg2.externsions
Also have a symbol for repeatable read.
|
|
Move set_tcp_keepalive() here, plus set_nonblocking() and
set_cloexec().
|
|
Always use
import skytools
def xx():
skytools.foo
this allows maximum laziness when importing.
|
|
|
|
|
|
There fileno() has moved from cursor to connection.
|
|
Separate TCP keepalive code out from connect_database(),
to be usable separately. (Eg. for HTTP connections.)
Add also support for Darwin.
|
|
|
|
Turn on keepalive by default, to avoid hanged scripts in case of
network problems.
Also tune the keepalive timeouts smaller, on Linux at least,
so that the error happens after 5 min blackout.
(4 min idle + 4x15sec keepalive pings)
|
|
|
|
This make the parameter always available.
|
|
|
|
- docstrings
- some preliminary python 3.0 compat (var names, print())
- sync with 2.1-stable
adminscript:
- move exec_cmd function to dbscript
dbstruct:
- support sequnces. SERIAL columns are not automatically created,
but the link beteween column and sequence is.
psycopgwrapper:
- drop support for psycopg1
- beginnings of quick DB-API / DictRow description.
quoting:
- new unquote_fqident() function, reverse of quote_fqident()
- quote_statement() accepts both row and dict
dbscript:
- catch startup errors
- use log.exception for exceptions, will result in nicer logs
sqltools:
- exists_sequence()
_pyquoting:
- fix typo in variable name
|
|
|
|
- remove QuotedString, its unused now
- drop the ugly __setitem__ implementation
- drop __setattr__, __delattr_
row is supposed to be r/o
|
|
|
|
The attempt to make them iter-on-keys seems now misguided,
as iter-on-values is already used in existing code, and iter-on-rows
returns keys in random order.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|