]> git.ipfire.org Git - thirdparty/psycopg.git/log
thirdparty/psycopg.git
5 years agoUse an event instead of a queue in wait_async
Daniele Varrazzo [Sat, 21 Mar 2020 09:34:11 +0000 (22:34 +1300)] 
Use an event instead of a queue in wait_async

5 years agoAdded commit/rollback connection methods
Daniele Varrazzo [Fri, 20 Mar 2020 13:40:19 +0000 (02:40 +1300)] 
Added commit/rollback connection methods

5 years agoAdded PQresult info functions
Daniele Varrazzo [Fri, 20 Mar 2020 13:30:27 +0000 (02:30 +1300)] 
Added PQresult info functions

5 years agoAdded DBAPI constants
Daniele Varrazzo [Fri, 20 Mar 2020 11:40:25 +0000 (00:40 +1300)] 
Added DBAPI constants

5 years agoAdded sketch of high-level connection objects
Daniele Varrazzo [Fri, 20 Mar 2020 11:30:08 +0000 (00:30 +1300)] 
Added sketch of high-level connection objects

Trying to create two similar Connection/AsyncConnection classes, a DBAPI
compliant and an async DBAPI-inspired.

The classes share the same implementation of asynchronous connection,
which is independent from the waiting method, and offer different ways
to wait: one blocking the thread, the other as async coroutine.

5 years agodsn fixture returns str instead of bytes
Daniele Varrazzo [Fri, 20 Mar 2020 11:12:31 +0000 (00:12 +1300)] 
dsn fixture returns str instead of bytes

5 years agoblack cleanup
Daniele Varrazzo [Thu, 19 Mar 2020 13:30:19 +0000 (02:30 +1300)] 
black cleanup

5 years agoAdded PGconn.make_empty_result()
Daniele Varrazzo [Thu, 19 Mar 2020 09:03:14 +0000 (22:03 +1300)] 
Added PGconn.make_empty_result()

5 years agoAdded high-level functions to manipulate conninfo
Daniele Varrazzo [Thu, 19 Mar 2020 08:40:15 +0000 (21:40 +1300)] 
Added high-level functions to manipulate conninfo

5 years agoTypo adaapter fixed
Daniele Varrazzo [Thu, 19 Mar 2020 07:57:10 +0000 (20:57 +1300)] 
Typo adaapter fixed

5 years agoAdded error_message function instead of message_str method
Daniele Varrazzo [Thu, 19 Mar 2020 07:55:10 +0000 (20:55 +1300)] 
Added error_message function instead of message_str method

Keeping the pq interface simple and low level and moving the policy a
bit aside.

5 years agoFixed checking for NULL results in ctypes layer
Daniele Varrazzo [Wed, 18 Mar 2020 11:26:11 +0000 (00:26 +1300)] 
Fixed checking for NULL results in ctypes layer

Also check null result from connection functions.

5 years agoAdded exceptions module
Daniele Varrazzo [Wed, 18 Mar 2020 11:25:50 +0000 (00:25 +1300)] 
Added exceptions module

5 years agoRaise a few errors in pg implementation module
Daniele Varrazzo [Tue, 17 Mar 2020 10:46:08 +0000 (23:46 +1300)] 
Raise a few errors in pg implementation module

Better to make this interface a bit thicker instead of forcing user to
write Python as it was C.

5 years agoAdded async basic functions and test for it
Daniele Varrazzo [Mon, 16 Mar 2020 08:12:38 +0000 (21:12 +1300)] 
Added async basic functions and test for it

5 years agoAdded PQdescribePortal wrapper
Daniele Varrazzo [Mon, 16 Mar 2020 06:54:40 +0000 (19:54 +1300)] 
Added PQdescribePortal wrapper

5 years agoAdded prepared statements and description
Daniele Varrazzo [Mon, 16 Mar 2020 06:48:05 +0000 (19:48 +1300)] 
Added prepared statements and description

5 years agoDon't report the value on type error, only the type
Daniele Varrazzo [Mon, 16 Mar 2020 06:06:35 +0000 (19:06 +1300)] 
Don't report the value on type error, only the type

The value may contain sensitive info.

5 years agoAdded tox to create a test grid
Daniele Varrazzo [Sun, 15 Mar 2020 21:05:20 +0000 (10:05 +1300)] 
Added tox to create a test grid

5 years agoAdded tests for PGresult
Daniele Varrazzo [Sun, 15 Mar 2020 13:24:11 +0000 (02:24 +1300)] 
Added tests for PGresult

5 years agopq tests moved into a dir of its own
Daniele Varrazzo [Sun, 15 Mar 2020 11:58:25 +0000 (00:58 +1300)] 
pq tests moved into a dir of its own

5 years agoAdded PQexecParams wrapper
Daniele Varrazzo [Sun, 15 Mar 2020 11:56:35 +0000 (00:56 +1300)] 
Added PQexecParams wrapper

Can send and return binary data too.

5 years agoEncoding/decoding in pq interface dropped
Daniele Varrazzo [Sun, 15 Mar 2020 09:40:36 +0000 (22:40 +1300)] 
Encoding/decoding in pq interface dropped

Only deal with bytes here. Unicode is a policy that will be dealt with
by the clients.

5 years agopq made into a package
Daniele Varrazzo [Sun, 15 Mar 2020 04:14:49 +0000 (17:14 +1300)] 
pq made into a package

5 years agoAdded encoding mapping table between Postgres and Python
Daniele Varrazzo [Sun, 15 Mar 2020 04:09:27 +0000 (17:09 +1300)] 
Added encoding mapping table between Postgres and Python

5 years agoWrapping PQexec and PGresult
Daniele Varrazzo [Sun, 15 Mar 2020 03:04:36 +0000 (16:04 +1300)] 
Wrapping PQexec and PGresult

5 years agoAdded funding file
Daniele Varrazzo [Sun, 15 Mar 2020 02:36:49 +0000 (15:36 +1300)] 
Added funding file

5 years agoAdded funding file
Daniele Varrazzo [Sat, 14 Mar 2020 22:07:14 +0000 (11:07 +1300)] 
Added funding file

5 years agoParsing conninfo and returning defaults moved to its own class
Daniele Varrazzo [Sat, 14 Mar 2020 12:54:03 +0000 (01:54 +1300)] 
Parsing conninfo and returning defaults moved to its own class

5 years agoAdded needs_password, used_password, ssl_in_use on PGconn
Daniele Varrazzo [Sat, 14 Mar 2020 12:38:49 +0000 (01:38 +1300)] 
Added needs_password, used_password, ssl_in_use on PGconn

5 years agoAdded PGconn.backend_pid
Daniele Varrazzo [Sat, 14 Mar 2020 12:07:02 +0000 (01:07 +1300)] 
Added PGconn.backend_pid

5 years agoAdded PQconn.server_version
Daniele Varrazzo [Sat, 14 Mar 2020 12:02:32 +0000 (01:02 +1300)] 
Added PQconn.server_version

5 years agoAdded PGconn.protocol_version
Daniele Varrazzo [Sat, 14 Mar 2020 11:59:36 +0000 (00:59 +1300)] 
Added PGconn.protocol_version

5 years agoAdded PGconn.parameter_status
Daniele Varrazzo [Sat, 14 Mar 2020 11:56:31 +0000 (00:56 +1300)] 
Added PGconn.parameter_status

5 years agoDropped pfefix from a couple of enums
Daniele Varrazzo [Sat, 14 Mar 2020 11:28:10 +0000 (00:28 +1300)] 
Dropped pfefix from a couple of enums

5 years agoAdded PGconn.transaction_status
Daniele Varrazzo [Sat, 14 Mar 2020 11:25:08 +0000 (00:25 +1300)] 
Added PGconn.transaction_status

5 years agoAdded a bunch of informative connection properties
Daniele Varrazzo [Sat, 14 Mar 2020 11:13:29 +0000 (00:13 +1300)] 
Added a bunch of informative connection properties

5 years agoAdded parse_conninfo()
Daniele Varrazzo [Sat, 14 Mar 2020 10:29:43 +0000 (23:29 +1300)] 
Added parse_conninfo()

5 years agoAdded PQping
Daniele Varrazzo [Sat, 14 Mar 2020 05:39:11 +0000 (18:39 +1300)] 
Added PQping

5 years agoAdded PQconn.reset sync and async
Daniele Varrazzo [Sat, 14 Mar 2020 05:30:03 +0000 (18:30 +1300)] 
Added PQconn.reset sync and async

5 years agoPGconn.connectdb renamed to connect
Daniele Varrazzo [Sat, 14 Mar 2020 05:17:09 +0000 (18:17 +1300)] 
PGconn.connectdb renamed to connect

5 years agoAdded PQfinish
Daniele Varrazzo [Sat, 14 Mar 2020 05:14:25 +0000 (18:14 +1300)] 
Added PQfinish

5 years agoAdded PGconn.info wrapping PQconninfo
Daniele Varrazzo [Sat, 14 Mar 2020 05:09:14 +0000 (18:09 +1300)] 
Added PGconn.info wrapping PQconninfo

5 years agoAdded PQconn.get_defaults() wrapping PQconndefault/PQconninfoFree
Daniele Varrazzo [Sat, 14 Mar 2020 04:44:08 +0000 (17:44 +1300)] 
Added PQconn.get_defaults() wrapping PQconndefault/PQconninfoFree

5 years agoCalling the c struct a struct to avoid confusion
Daniele Varrazzo [Sat, 14 Mar 2020 03:52:00 +0000 (16:52 +1300)] 
Calling the c struct a struct to avoid confusion

5 years agoWrapped lipq method for async connection
Daniele Varrazzo [Fri, 13 Mar 2020 11:05:53 +0000 (00:05 +1300)] 
Wrapped lipq method for async connection

5 years agoDropped "Type" suffix from enum
Daniele Varrazzo [Fri, 13 Mar 2020 10:29:14 +0000 (23:29 +1300)] 
Dropped "Type" suffix from enum

5 years agoAdding a first implementation of the libpq wrapper and tests
Daniele Varrazzo [Fri, 13 Mar 2020 10:27:19 +0000 (23:27 +1300)] 
Adding a first implementation of the libpq wrapper and tests

5 years agoThe first commit is a thank you
Daniele Varrazzo [Sat, 7 Mar 2020 16:56:16 +0000 (16:56 +0000)] 
The first commit is a thank you