interloper-sql 0.132.0__tar.gz → 0.134.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.
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/PKG-INFO +2 -2
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/pyproject.toml +4 -4
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/pyproject.toml.orig +4 -4
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/destination.py +3 -3
- interloper_sql-0.134.0/src/interloper_sql/extension.yaml +5 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/view/timezone.py +1 -1
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/README.md +0 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/__init__.py +0 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/connection.py +0 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/types.py +0 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/view/__init__.py +0 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/view/base.py +0 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/view/decorator.py +0 -0
- {interloper_sql-0.132.0 → interloper_sql-0.134.0}/src/interloper_sql/view/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: interloper-sql
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.134.0
|
|
4
4
|
Summary: Interloper SQL integration: portable views over SQL warehouses, and a SQLAlchemy-backed destination for PostgreSQL and other SQL databases
|
|
5
5
|
Author: Guillaume Onfroy
|
|
6
6
|
Author-email: Guillaume Onfroy <guillaume@digitlcloud.com>
|
|
@@ -8,7 +8,7 @@ Requires-Dist: ibis-framework>=12,<13
|
|
|
8
8
|
Requires-Dist: interloper-core
|
|
9
9
|
Requires-Dist: psycopg[binary]>=3.1 ; extra == 'postgres'
|
|
10
10
|
Requires-Dist: sqlalchemy>=2.0 ; extra == 'postgres'
|
|
11
|
-
Requires-Python: >=3.
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
12
|
Provides-Extra: postgres
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "interloper-sql"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.134.0"
|
|
4
4
|
description = "Interloper SQL integration: portable views over SQL warehouses, and a SQLAlchemy-backed destination for PostgreSQL and other SQL databases"
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
requires-python = ">=3.
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"ibis-framework>=12,<13",
|
|
9
9
|
"interloper-core",
|
|
@@ -19,11 +19,11 @@ postgres = [
|
|
|
19
19
|
"sqlalchemy>=2.0",
|
|
20
20
|
]
|
|
21
21
|
|
|
22
|
-
[project.entry-points."interloper.
|
|
22
|
+
[project.entry-points."interloper.extensions"]
|
|
23
23
|
sql = "interloper_sql"
|
|
24
24
|
|
|
25
25
|
[build-system]
|
|
26
|
-
requires = ["uv_build>=0.
|
|
26
|
+
requires = ["uv_build>=0.13.7,<0.14"]
|
|
27
27
|
build-backend = "uv_build"
|
|
28
28
|
|
|
29
29
|
[tool.uv.sources.interloper-core]
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ###############
|
|
4
4
|
[project]
|
|
5
5
|
name = "interloper-sql"
|
|
6
|
-
version = "0.
|
|
6
|
+
version = "0.134.0"
|
|
7
7
|
description = "Interloper SQL integration: portable views over SQL warehouses, and a SQLAlchemy-backed destination for PostgreSQL and other SQL databases"
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
authors = [{ name = "Guillaume Onfroy", email = "guillaume@digitlcloud.com" }]
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
11
|
dependencies = [
|
|
12
12
|
"ibis-framework>=12,<13",
|
|
13
13
|
"interloper-core",
|
|
@@ -16,11 +16,11 @@ dependencies = [
|
|
|
16
16
|
[project.optional-dependencies]
|
|
17
17
|
postgres = ["psycopg[binary]>=3.1", "sqlalchemy>=2.0"]
|
|
18
18
|
|
|
19
|
-
[project.entry-points."interloper.
|
|
19
|
+
[project.entry-points."interloper.extensions"]
|
|
20
20
|
sql = "interloper_sql"
|
|
21
21
|
|
|
22
22
|
[build-system]
|
|
23
|
-
requires = ["uv_build>=0.
|
|
23
|
+
requires = ["uv_build>=0.13.7,<0.14"]
|
|
24
24
|
build-backend = "uv_build"
|
|
25
25
|
|
|
26
26
|
[tool.uv.sources]
|
|
@@ -6,7 +6,7 @@ import datetime
|
|
|
6
6
|
import math
|
|
7
7
|
import threading
|
|
8
8
|
import warnings
|
|
9
|
-
from collections.abc import
|
|
9
|
+
from collections.abc import Generator, Sequence
|
|
10
10
|
from contextlib import contextmanager
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
@@ -68,7 +68,7 @@ class SQLDestination(DatabaseDestination):
|
|
|
68
68
|
return dataset or self.default_dataset
|
|
69
69
|
|
|
70
70
|
@contextmanager
|
|
71
|
-
def _begin(self) ->
|
|
71
|
+
def _begin(self) -> Generator[SAConnection, None, None]:
|
|
72
72
|
"""Yield the connection held by :meth:`transaction`, or a fresh one in its own transaction.
|
|
73
73
|
|
|
74
74
|
Yields:
|
|
@@ -159,7 +159,7 @@ class SQLDestination(DatabaseDestination):
|
|
|
159
159
|
# -- DatabaseDestination hooks ---------------------------------------------
|
|
160
160
|
|
|
161
161
|
@contextmanager
|
|
162
|
-
def transaction(self) ->
|
|
162
|
+
def transaction(self) -> Generator[None, None, None]:
|
|
163
163
|
"""Run a delete and its insert in one database transaction.
|
|
164
164
|
|
|
165
165
|
Yields:
|
|
@@ -39,7 +39,7 @@ def _compile_local_date(
|
|
|
39
39
|
|
|
40
40
|
# Ibis converts between zones only by a constant; sqlglot's ConvertTimezone takes a column and renders
|
|
41
41
|
# in each dialect's own syntax, so every Ibis SQL compiler learns this node from their common base
|
|
42
|
-
SQLGlotCompiler.visit_LocalDate = _compile_local_date # ty: ignore[
|
|
42
|
+
SQLGlotCompiler.visit_LocalDate = _compile_local_date # ty: ignore[missing-attribute]
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
def local_date(instant: ir.TimestampValue, timezone: ir.StringValue | str) -> ir.DateValue:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|