Daniele Varrazzo
5844e989c4
Added function to parse an hstore into a dict.
2010-11-05 09:34:50 +00:00
Daniele Varrazzo
5693c9cab1
Added implementation of python dict adapter to hstore.
2010-11-05 09:34:50 +00:00
Daniele Varrazzo
2f29429e88
Expose the Xid object in the extension module.
2010-11-05 09:34:49 +00:00
Daniele Varrazzo
4f66de494b
Added tpc_prepare and CONN_STATUS_PREPARED.
2010-11-05 09:34:48 +00:00
Daniele Varrazzo
4ec298e112
Notify object exposed in the extensions module.
2010-11-05 09:34:47 +00:00
Daniele Varrazzo
575b2b5f77
The Inet type knows how to adapt itself.
...
Implemented __conform__ as the Adaptation PEP suggests. It is not
required for the type to be registered as adapter.
2010-09-25 23:55:55 +01:00
Daniele Varrazzo
75a6f783c5
Added PostgreSQL 9.0 error codes.
2010-09-23 23:43:23 +01:00
Federico Di Gregorio
b263fbf274
Added deprecation warning to register_tstz_w_secs
2010-07-13 14:26:52 +02:00
Daniele Varrazzo
927f2bb1f1
Dropped logging.basicConfig() call.
...
It messes up with projects using logging but where no handler is
installed on the root logger. Bug reported by Joe Abbate.
2010-07-09 23:23:10 +01:00
Daniele Varrazzo
4a78e4068b
Dropped register_tstz_w_secs() implementation.
...
The function is no-op now that the default type caster can deal with
seconds in the tz offset.
2010-05-20 02:18:04 +01:00
Daniele Varrazzo
60e7522e47
Added evaluable representation for the FixedOffsetTimezone object.
2010-05-15 14:27:23 +01:00
Daniele Varrazzo
d30daac782
Fixed typo in LocalTimezone doc.
2010-05-15 14:27:23 +01:00
Daniele Varrazzo
e8c2a14362
Added typecasters for arrays of specific MX/Py time-related types.
2010-05-15 14:27:23 +01:00
Daniele Varrazzo
127f92f9db
Changed 'psyco_wait()' to only take the connection.
2010-04-21 15:21:32 +01:00
Daniele Varrazzo
8ba0f00d21
Added 'get_wait_callback()' function.
2010-04-21 15:21:32 +01:00
Daniele Varrazzo
1446f046e9
Added wait callback and functions to deal with it.
2010-04-21 15:21:32 +01:00
Daniele Varrazzo
d162c08cfa
PY* and MX* typecasters imported into the extensions module.
2010-04-14 00:27:28 +01:00
Daniele Varrazzo
54e9c89ea4
DECIMAL typecaster imported into the extensions module.
2010-04-14 00:20:16 +01:00
Federico Di Gregorio
c1a24f4ca2
NOTIFYs fix and poll status changes
...
POLL_OK has been changed from 3 to 0 to let the user specify a short loop
just as "if not curs.poll()" instead of having to check for write and read
separately. For an example of this, see examples/notify.py.
2010-04-05 16:52:25 +02:00
Jan Urbański
01799e9137
Make asynchronous connections produce asynchronous cursors by default
...
Drop the async kwarg from cursor.execute(), cursors created by
asynchronous connections will be asynchronous by default, ones created
by synchronous connections will be synchronous.
Mind that this might break third party subclasses of
psycopg2.extensions.cursor, if they try to chain to the superclass in
their execute() implementation and are passing the async kwarg. The
example cursors in psycopg2.extras have been fixed no to do that.
2010-04-05 11:41:32 +02:00
Federico Di Gregorio
34317dc4c3
Support asynchronous connection building
...
After calling psycopg2.connect(dsn, async=True) you can poll the
connection that will tell you whether its file descriptor should be
waited on to become writable or readable or that the connection
attempt has succeeded.
Edited commit by Jan to not expose internal state in extensions.py.
2010-04-05 11:30:03 +02:00
Daniele Varrazzo
97ced0d4f1
Use the default role for cross referencing Python objects.
2010-02-26 00:49:19 +00:00
Daniele Varrazzo
4412826556
Added documentation for the 'pool' module.
2010-02-26 00:46:23 +00:00
Daniele Varrazzo
a320f25a2a
Completed documentation for errorcodes module.
2010-02-16 00:38:44 +00:00
Daniele Varrazzo
96b7912bcf
Typo fixed in DictRow doc.
2010-02-16 00:38:15 +00:00
Daniele Varrazzo
d08d9ab199
Added errorcodes.lookup() function.
2010-02-15 01:38:49 +00:00
Daniele Varrazzo
bcfdbd1903
Error codes updated to include all errors between PostgreSQL 8.1 and 8.4.
2010-02-15 01:07:28 +00:00
Daniele Varrazzo
be30f43181
Inet adapter fixed.
2010-02-14 20:14:17 +00:00
Federico Di Gregorio
4b58fc640e
License change for lib/errorcodes.py
...
You hereby have my blessing to go ahead and license all my contributions to
the psycopg2 project, including lib/errorcodes.py to LGPL3(+).
-- Johan Dahlin
2010-02-14 01:19:17 +01:00
Daniele Varrazzo
3789f8fb17
Added other info about tz module.
2010-02-14 00:39:48 +01:00
Daniele Varrazzo
6a4ff65b49
Added documentation for the extras module.
2010-02-14 00:39:48 +01:00
Daniele Varrazzo
e1b3c7b940
Fixed Inet constructor.
2010-02-14 00:35:48 +01:00
Daniele Varrazzo
0dbe068df4
Stop the loop variable used to create __all__ leaking in the module.
2010-02-14 00:35:47 +01:00
Federico Di Gregorio
0089201ba2
Binary was not imported from _psycopg; now it is
2010-02-13 00:52:36 +01:00
Federico Di Gregorio
a9673f31d6
SQL_IN adapter is now automatically registered
2010-02-13 00:40:29 +01:00
Federico Di Gregorio
611606d532
Changes license to LGPL3 + OpenSSL exception on all source files
2010-02-12 23:34:53 +01:00
Federico Di Gregorio
e5bed4993b
Fixed register_tstz_w_secs() error
2010-02-10 18:16:00 +01:00
Federico Di Gregorio
390a9c2451
Added support for UUID arrays
2009-10-04 12:34:02 +02:00
Federico Di Gregorio
e1fae0fcac
Fixed bug in RealDictCursor when prefetching
2009-05-09 14:44:59 +02:00
Federico Di Gregorio
06eb574cec
Applied DictRow "diet" patch
2009-05-09 10:19:15 +02:00
Federico Di Gregorio
bb77a6912f
Added missing dict methods in DictRow
2009-04-19 16:25:12 +02:00
Federico Di Gregorio
825a60eec5
Removed spurious print
2009-03-16 22:15:20 +01:00
Federico Di Gregorio
1daf300ca3
Support for seconds in time zone offsets
2009-03-02 11:07:17 +01:00
Federico Di Gregorio
5b04203c9f
Fixed error in register_type()
2009-03-02 10:59:52 +01:00
Federico Di Gregorio
9b259bba86
Removed some spurious tabs
2009-02-23 21:39:25 +01:00
Federico Di Gregorio
eb25f9f154
Added adapter to handle float('inf') and float('nan')
2009-01-23 00:09:20 +01:00
Federico Di Gregorio
4c8e80038e
Added inet support
2008-09-24 01:27:52 +02:00
Federico Di Gregorio
56f6001d6d
Support for NULLs in UUID
2008-09-23 09:11:11 +02:00
Federico Di Gregorio
b92601306e
Added suppport for UUID and related test.
2008-09-19 21:25:16 +02:00
Federico Di Gregorio
e664abb248
Added XXXARRAY imports to psycopg2.extenions
2008-05-30 00:39:50 +02:00