adbc-driver-postgresql 1.2.0__tar.gz → 1.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adbc_driver_postgresql-1.2.0/adbc_driver_postgresql.egg-info → adbc_driver_postgresql-1.4.0}/PKG-INFO +4 -4
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/README.md +1 -1
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/_static_version.py +3 -3
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0/adbc_driver_postgresql.egg-info}/PKG-INFO +4 -4
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/pyproject.toml +1 -1
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/tests/test_dbapi.py +24 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/LICENSE.txt +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/MANIFEST.in +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/NOTICE.txt +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/__init__.py +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/_version.py +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/dbapi.py +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/SOURCES.txt +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/dependency_links.txt +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/requires.txt +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql.egg-info/top_level.txt +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/setup.cfg +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/setup.py +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/tests/test_lowlevel.py +0 -0
- {adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/tests/test_polars.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: adbc-driver-postgresql
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: A libpq-based ADBC driver for working with PostgreSQL.
|
|
5
5
|
Author-email: Apache Arrow Developers <dev@arrow.apache.org>
|
|
6
6
|
License: Apache-2.0
|
|
7
7
|
Project-URL: homepage, https://arrow.apache.org/adbc/
|
|
8
8
|
Project-URL: repository, https://github.com/apache/arrow-adbc
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE.txt
|
|
12
12
|
License-File: NOTICE.txt
|
|
@@ -85,7 +85,7 @@ For users building from the arrow-adbc source repository, you can alternately us
|
|
|
85
85
|
For example, assuming you run cmake from the project root:
|
|
86
86
|
|
|
87
87
|
```shell
|
|
88
|
-
cmake -S c -B build --preset debug -DADBC_BUILD_PYTHON=ON
|
|
88
|
+
cmake -S c -B build --preset debug -DADBC_BUILD_PYTHON=ON -DADBC_DRIVER_POSTSGRESQL=ON
|
|
89
89
|
cmake --build build --target python
|
|
90
90
|
```
|
|
91
91
|
|
|
@@ -62,7 +62,7 @@ For users building from the arrow-adbc source repository, you can alternately us
|
|
|
62
62
|
For example, assuming you run cmake from the project root:
|
|
63
63
|
|
|
64
64
|
```shell
|
|
65
|
-
cmake -S c -B build --preset debug -DADBC_BUILD_PYTHON=ON
|
|
65
|
+
cmake -S c -B build --preset debug -DADBC_BUILD_PYTHON=ON -DADBC_DRIVER_POSTSGRESQL=ON
|
|
66
66
|
cmake --build build --target python
|
|
67
67
|
```
|
|
68
68
|
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
# This file is part of 'miniver': https://github.com/jbweston/miniver
|
|
22
22
|
|
|
23
|
-
version = "1.
|
|
23
|
+
version = "1.4.0"
|
|
24
24
|
|
|
25
25
|
# These values are only set if the distribution was created with 'git archive'
|
|
26
26
|
# NOTE: must add an export-subst to .gitattributes!
|
|
27
|
-
refnames = "HEAD, tag: apache-arrow-adbc-
|
|
28
|
-
git_hash = "
|
|
27
|
+
refnames = "HEAD, tag: apache-arrow-adbc-16-rc3, origin/maint-16"
|
|
28
|
+
git_hash = "05c33a770"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: adbc-driver-postgresql
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: A libpq-based ADBC driver for working with PostgreSQL.
|
|
5
5
|
Author-email: Apache Arrow Developers <dev@arrow.apache.org>
|
|
6
6
|
License: Apache-2.0
|
|
7
7
|
Project-URL: homepage, https://arrow.apache.org/adbc/
|
|
8
8
|
Project-URL: repository, https://github.com/apache/arrow-adbc
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE.txt
|
|
12
12
|
License-File: NOTICE.txt
|
|
@@ -85,7 +85,7 @@ For users building from the arrow-adbc source repository, you can alternately us
|
|
|
85
85
|
For example, assuming you run cmake from the project root:
|
|
86
86
|
|
|
87
87
|
```shell
|
|
88
|
-
cmake -S c -B build --preset debug -DADBC_BUILD_PYTHON=ON
|
|
88
|
+
cmake -S c -B build --preset debug -DADBC_BUILD_PYTHON=ON -DADBC_DRIVER_POSTSGRESQL=ON
|
|
89
89
|
cmake --build build --target python
|
|
90
90
|
```
|
|
91
91
|
|
|
@@ -21,7 +21,7 @@ description = "A libpq-based ADBC driver for working with PostgreSQL."
|
|
|
21
21
|
authors = [{name = "Apache Arrow Developers", email = "dev@arrow.apache.org"}]
|
|
22
22
|
license = {text = "Apache-2.0"}
|
|
23
23
|
readme = "README.md"
|
|
24
|
-
requires-python = ">=3.
|
|
24
|
+
requires-python = ">=3.9"
|
|
25
25
|
dynamic = ["version"]
|
|
26
26
|
dependencies = [
|
|
27
27
|
"adbc-driver-manager",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
+
import datetime
|
|
18
19
|
import string
|
|
19
20
|
from pathlib import Path
|
|
20
21
|
from typing import Generator
|
|
@@ -424,3 +425,26 @@ def test_ingest_large(postgres: dbapi.Connection) -> None:
|
|
|
424
425
|
table = pyarrow.Table.from_batches([batch] * 4)
|
|
425
426
|
with postgres.cursor() as cur:
|
|
426
427
|
cur.adbc_ingest("test_ingest_large", table, mode="replace")
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def test_timestamp_txn(postgres: dbapi.Connection) -> None:
|
|
431
|
+
"""Regression test for #2410."""
|
|
432
|
+
ts = datetime.datetime.now()
|
|
433
|
+
ts_with_tz = datetime.datetime.now(tz=datetime.UTC)
|
|
434
|
+
|
|
435
|
+
with postgres.cursor() as cur:
|
|
436
|
+
cur.execute("DROP TABLE IF EXISTS ts_txn")
|
|
437
|
+
cur.execute("CREATE TABLE ts_txn (ts TIMESTAMP WITH TIME ZONE);")
|
|
438
|
+
postgres.commit()
|
|
439
|
+
|
|
440
|
+
with postgres.cursor() as cur:
|
|
441
|
+
cur.execute("INSERT INTO ts_txn VALUES ($1)", parameters=[ts])
|
|
442
|
+
cur.execute("SELECT pg_current_xact_id_if_assigned()")
|
|
443
|
+
assert cur.fetchone() != (None,)
|
|
444
|
+
postgres.commit()
|
|
445
|
+
|
|
446
|
+
with postgres.cursor() as cur:
|
|
447
|
+
cur.execute("INSERT INTO ts_txn VALUES ($1)", parameters=[ts_with_tz])
|
|
448
|
+
cur.execute("SELECT pg_current_xact_id_if_assigned()")
|
|
449
|
+
assert cur.fetchone() != (None,)
|
|
450
|
+
postgres.commit()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/__init__.py
RENAMED
|
File without changes
|
{adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/_version.py
RENAMED
|
File without changes
|
{adbc_driver_postgresql-1.2.0 → adbc_driver_postgresql-1.4.0}/adbc_driver_postgresql/dbapi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|