ddsql 0.0.1__tar.gz → 0.0.2__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.
- {ddsql-0.0.1 → ddsql-0.0.2}/PKG-INFO +1 -1
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/sqlbase.py +4 -2
- {ddsql-0.0.1 → ddsql-0.0.2}/pyproject.toml +1 -1
- {ddsql-0.0.1 → ddsql-0.0.2}/LICENSE +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/README.md +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/__init__.py +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/adapter.py +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/py.typed +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/query.py +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/serializers/__init__.py +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/serializers/base.py +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/serializers/clickhouse.py +0 -0
- {ddsql-0.0.1 → ddsql-0.0.2}/ddsql/serializers/postgres.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
from abc import ABC
|
|
4
|
-
from typing import TYPE_CHECKING, Any, Dict
|
|
4
|
+
from typing import TYPE_CHECKING, Any, Dict, TypeVar
|
|
5
5
|
|
|
6
6
|
from ddutils.annotation_helpers import is_subclass
|
|
7
7
|
from ddutils.class_helpers import classproperty
|
|
@@ -11,6 +11,8 @@ from ddsql.adapter import Adapter
|
|
|
11
11
|
if TYPE_CHECKING:
|
|
12
12
|
from ddsql.query import Query
|
|
13
13
|
|
|
14
|
+
T = TypeVar('T', bound='SQLBase')
|
|
15
|
+
|
|
14
16
|
|
|
15
17
|
class SQLBase(ABC):
|
|
16
18
|
"""
|
|
@@ -48,7 +50,7 @@ class SQLBase(ABC):
|
|
|
48
50
|
self.query = query
|
|
49
51
|
self.params = {}
|
|
50
52
|
|
|
51
|
-
def with_params(self, **params: Any) ->
|
|
53
|
+
def with_params(self: T, **params: Any) -> T:
|
|
52
54
|
self.params = {**self.params, **params}
|
|
53
55
|
return self
|
|
54
56
|
|
|
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
|
|
File without changes
|