Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added BYTESARRAY typecaster | Daniele Varrazzo | 2019-01-18 | 1 | -4/+4 |
| | |||||
* | Preliminary test for a BYTES adapter. | Daniele Varrazzo | 2019-01-18 | 1 | -1/+1 |
| | | | | | Allow returning unparsed bytes from databases with mixed encodings. See issue #519. | ||||
* | Adding ConnectionInfo object documentation | Daniele Varrazzo | 2018-10-12 | 1 | -1/+1 |
| | | | | | | I'm still fought whether docs should be in the C module or in the .rst. I'd prefer the first because DRY, but writing multiline strings in C really sucks. | ||||
* | Prefer https:// URLs when available | Jon Dufresne | 2018-09-22 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into drop-2to3 | Daniele Varrazzo | 2018-05-20 | 1 | -1/+1 |
|\ | |||||
| * | Merge branch 'master' into master | Ashesh Vashi | 2018-05-08 | 1 | -1/+1 |
| |\ | |||||
| * | | Moving the encrypt_password method from the connection class to the | Ashesh Vashi | 2017-09-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | psycopgmodule, and exported it from psycopg2.extensions as per review comments. | ||||
* | | | Drop 2to3 build step; make all code compatible with all Pythons | Jon Dufresne | 2017-12-11 | 1 | -3/+3 |
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make all library code compatible with both Python 2 and Python 3. Helps move to modern Python idioms. Can now write for Python 3 (with workarounds for Python 2) instead of the other way around. In the future, when it is eventually time to drop Python 2, the library will be in a better position to remove workarounds Added a very small comparability module compat.py where required. It includes definitions for: - text_type -- A type. str on Python 3. unicode on Python 2. - string_types -- A tuple. Contains only str on Python 3. Contains str & unicode on Python 2. | ||||
* | | Use dict comprehensions | Daniele Varrazzo | 2017-11-28 | 1 | -1/+1 |
|/ | |||||
* | Expose *DATETIMETZ* objects in the extensions module | Daniele Varrazzo | 2017-03-22 | 1 | -4/+4 |
| | |||||
* | 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 |
| |