Skip to content

Commit fe04290

Browse files
authored
Port to psycopg3 (#123)
* WIP. * Port some of the things, mostly mogrify. * Fix server_version. * Fix named param, and fstrings. * Fix missing space. * Maybe fix copy. * Do not build with 3.6 * No walrus op. * Fix for show_function_definition. * Fix for list_foreign_tables. * Black. * Add python 3.10. * Python versions * Fix fstring-happy. * This was for debugging. * We can still use python 3.6 with psycopg 3.0.x. * Bigger buffer in copy. * Change psycopg dependency to 3.0.10. * Should not need this workaround. * We should not need these. * Changelog.
1 parent c479ddd commit fe04290

File tree

10 files changed

+295
-366
lines changed

10 files changed

+295
-366
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
python-version: [3.6, 3.7, 3.8, 3.9]
14+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
1515

1616
services:
1717
postgres:

README.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ following imports:
2626
2727
from pgspecial.main import PGSpecial
2828
from pgspecial.namedqueries import NamedQueries
29-
from psycopg2.extensions import cursor
3029
3130
Then you will create and use an instance of PGSpecial:
3231

3332
.. code-block:: python
3433
3534
pgspecial = PGSpecial()
36-
for result in pgspecial.execute(cur: cursor, sql):
35+
for result in pgspecial.execute(cur, sql):
3736
# Do something
3837
3938
If you want to import named queries from an existing config file, it is

changelog.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
Upcoming
2-
========
1+
Upcoming (going to bump MAJOR version to 2)
2+
===========================================
33

44
Bug fixes:
55
----------
66

77
* Add `pytest` mark `dbtest` to `test_slash_dp_pattern_schema` so it can be skipped when necessary. (Thanks: `Benjamin Beasley`_)
88

9+
Internal:
10+
---------
11+
12+
* Switch to psycopg3 - breaking change.
13+
914
1.13.1
1015
======
1116

0 commit comments

Comments
 (0)