Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ignore None arguments passed to make_dsn()fix-517 | Daniele Varrazzo | 2017-03-01 | 1 | -0/+3 |
| | | | | Close #517. | ||||
* | connection.isolation_level is now writable | Daniele Varrazzo | 2017-02-16 | 1 | -1/+1 |
| | |||||
* | Exposing ISOLATION_LEVEL_DEFAULT to Python | Daniele Varrazzo | 2017-02-04 | 1 | -0/+1 |
| | | | | | This is now the state that is returned to Python if nothing has been explicitly set. | ||||
* | Python source cleanup using flake8 | Daniele Varrazzo | 2016-10-11 | 1 | -42/+40 |
| | |||||
* | Dropped use of b() "macro" and 2to3 fixer | Daniele Varrazzo | 2016-08-15 | 1 | -11/+2 |
| | | | | Just use the b"" strings syntax supported from python 2.6. | ||||
* | Allow make_dsn to take no parameter | Daniele Varrazzo | 2016-03-03 | 1 | -1/+1 |
| | | | | | The behaviour of connect() is unchanged: either dsn or params must be specified. | ||||
* | Validate output result from make_dsn() | Daniele Varrazzo | 2016-03-03 | 1 | -1/+6 |
| | | | | | The output is not necessarily munged anyway: if no keyword is passed, validate the input but return it untouched. | ||||
* | Verify that the dsn is not manipulated by make_dsn if not necessary | Daniele Varrazzo | 2016-03-03 | 1 | -0/+7 |
| | |||||
* | Implementation of make_dsn in Python | Daniele Varrazzo | 2016-03-03 | 1 | -3/+42 |
| | | | | | This is equivalent to what proposed in #363, but with a much simpler implementation. | ||||
* | Add psycopg2.extensions.quote_ident. | Oleksandr Shulgin | 2015-10-14 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into feature/parse-dsn | Oleksandr Shulgin | 2015-06-02 | 1 | -1/+1 |
|\ | | | | | | | | | Conflicts: lib/extensions.py | ||||
| * | Add libpq version discovery | Oleksandr Shulgin | 2015-06-01 | 1 | -1/+1 |
| | | |||||
* | | Move parse_dsn to extensions, add tests | Oleksandr Shulgin | 2015-06-01 | 1 | -1/+1 |
|/ | |||||
* | Make Column picklable on Python >= 3.3 | Daniele Varrazzo | 2015-02-08 | 1 | -1/+1 |
| | | | | | Also expose the type from the extensions module, not from the main module. | ||||
* | Add register_default_jsonb() and register the type | Daniele Varrazzo | 2014-08-13 | 1 | -2/+4 |
| | |||||
* | Fix multiple misspellings | Piotr Kasprzyk | 2013-04-26 | 1 | -1/+1 |
| | |||||
* | Dropped __all__ from modules | Daniele Varrazzo | 2013-04-07 | 1 | -2/+0 |
| | | | | | | They were only used to generate docs with Epydoc, now largely forgotten. Imports in extras cleaned up to expose the API only. | ||||
* | Enable by default the range typecasters | Daniele Varrazzo | 2013-04-07 | 1 | -0/+4 |
| | | | | | Otherwise it would have been enabled importing psycopg2.extras, which is a surprising behaviour. | ||||
* | Expose the Diagnostics object in the extensions module | Daniele Varrazzo | 2013-03-17 | 1 | -1/+1 |
| | |||||
* | Merge branch 'json' into devel | Daniele Varrazzo | 2012-09-27 | 1 | -0/+11 |
|\ | |||||
| * | Added register_default_json() function | Daniele Varrazzo | 2012-09-19 | 1 | -6/+3 |
| | | | | | | | | Register a typecaster for PostgreSQL 9.2 json. | ||||
| * | Added json typecaster | Daniele Varrazzo | 2012-09-19 | 1 | -0/+14 |
| | | |||||
* | | Fixed SQL_IN when getquoted() is called without prepare() | Daniele Varrazzo | 2012-09-24 | 1 | -5/+6 |
|/ | |||||
* | Put back a distinct ISOLATION_LEVEL_READ_UNCOMMITTED value | Daniele Varrazzo | 2011-12-15 | 1 | -3/+1 |
| | |||||
* | Reverted isolation level values to backward compatible values | Federico Di Gregorio | 2011-12-15 | 1 | -4/+6 |
| | | | | | | | | This basically removes the READ UNCOMMITED level (that internally PostgreSQL maps to READ COMMITED anyway) to keep the numeric values compattible with old psycopg versions. For full details and discussion see this thread: http://archives.postgresql.org/psycopg/2011-12/msg00008.php | ||||
* | Added new_array_type() function | Daniele Varrazzo | 2011-09-22 | 1 | -1/+1 |
| | | | | Allows the creation of a generic array typecaster from Python. | ||||
* | Don't leak private variables into the psycopg2.extensions interface | Daniele Varrazzo | 2011-09-22 | 1 | -0/+1 |
| | |||||
* | Merge branch 'neg-escape' into devel | Daniele Varrazzo | 2011-05-30 | 1 | -1/+1 |
|\ | |||||
| * | Fixed escape for negative numbers prefixed by minus operator | Daniele Varrazzo | 2011-05-30 | 1 | -1/+1 |
| | | | | | | | | Closes ticket #57. | ||||
* | | Use all the isolation levels accepted by PostgreSQL | Daniele Varrazzo | 2011-05-11 | 1 | -7/+5 |
|/ | | | | In PG 9.1 repeatable read and serializable are distinct levels. | ||||
* | Only use absolute imports in the package | Daniele Varrazzo | 2011-01-08 | 1 | -23/+23 |
| | | | | | In Python 3.2b2 the relative imports are not converted into explicit ones (with .). | ||||
* | None/IN adaptation ported to Python 3. | Daniele Varrazzo | 2011-01-02 | 1 | -5/+6 |
| | |||||
* | Merge branch 'python2' into python3 | Daniele Varrazzo | 2011-01-01 | 1 | -0/+14 |
|\ | | | | | | | | | | | | | | | | | Conflicts: ChangeLog NEWS-2.3 lib/extensions.py psycopg/microprotocols.c setup.py | ||||
| * | Fixed adaptation of None in composite types (ticket #26). | Daniele Varrazzo | 2011-01-01 | 1 | -0/+13 |
| | | | | | | | | | | | | | | Added an adapter for None: it is usually not invoked as adaptation to NULL is a fast path in mogrify, but can be invoked by composite types. Notice that composite types still have the option to fast-path None (e.g. list adapter does). | ||||
* | | Added b() function to return bytes in both Py2 and Py3. | Daniele Varrazzo | 2010-12-31 | 1 | -0/+10 |
| | | |||||
* | | Fixed PG -> Py encodings mapping with non-alnum chars. | Daniele Varrazzo | 2010-12-21 | 1 | -0/+8 |
|/ | | | | | | We mangle the encoding names a little bit before asking it to the backend: be sure to be able to find the equivalent Python code back or decoding (unicode cast or Py3) will barf. | ||||
* | Expose the Xid object in the extension module. | Daniele Varrazzo | 2010-11-05 | 1 | -1/+1 |
| | |||||
* | Added tpc_prepare and CONN_STATUS_PREPARED. | Daniele Varrazzo | 2010-11-05 | 1 | -2/+3 |
| | |||||
* | Notify object exposed in the extensions module. | Daniele Varrazzo | 2010-11-05 | 1 | -1/+1 |
| | |||||
* | Added typecasters for arrays of specific MX/Py time-related types. | Daniele Varrazzo | 2010-05-15 | 1 | -0/+2 |
| | |||||
* | Added 'get_wait_callback()' function. | Daniele Varrazzo | 2010-04-21 | 1 | -1/+1 |
| | |||||
* | Added wait callback and functions to deal with it. | Daniele Varrazzo | 2010-04-21 | 1 | -0/+6 |
| | |||||
* | PY* and MX* typecasters imported into the extensions module. | Daniele Varrazzo | 2010-04-14 | 1 | -0/+3 |
| | |||||
* | DECIMAL typecaster imported into the extensions module. | Daniele Varrazzo | 2010-04-14 | 1 | -1/+1 |
| | |||||
* | NOTIFYs fix and poll status changes | Federico Di Gregorio | 2010-04-05 | 1 | -2/+2 |
| | | | | | | 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. | ||||
* | Support asynchronous connection building | Federico Di Gregorio | 2010-04-05 | 1 | -0/+5 |
| | | | | | | | | | 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. | ||||
* | Stop the loop variable used to create __all__ leaking in the module. | Daniele Varrazzo | 2010-02-14 | 1 | -1/+1 |
| | |||||
* | Binary was not imported from _psycopg; now it is | Federico Di Gregorio | 2010-02-13 | 1 | -1/+1 |
| | |||||
* | SQL_IN adapter is now automatically registered | Federico Di Gregorio | 2010-02-13 | 1 | -2/+0 |
| | |||||
* | Changes license to LGPL3 + OpenSSL exception on all source files | Federico Di Gregorio | 2010-02-12 | 1 | -9/+17 |
| |