sqlakit 0.7.1__tar.gz → 0.7.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.
Files changed (26) hide show
  1. {sqlakit-0.7.1 → sqlakit-0.7.2}/PKG-INFO +1 -1
  2. {sqlakit-0.7.1 → sqlakit-0.7.2}/pyproject.toml +1 -1
  3. {sqlakit-0.7.1 → sqlakit-0.7.2}/pyproject.toml.orig +1 -1
  4. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_query.py +1 -1
  5. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/asyncio/sql.py +3 -3
  6. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/sql.py +3 -3
  7. {sqlakit-0.7.1 → sqlakit-0.7.2}/LICENSE +0 -0
  8. {sqlakit-0.7.1 → sqlakit-0.7.2}/README.md +0 -0
  9. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/__init__.py +0 -0
  10. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_base.py +0 -0
  11. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_db.py +0 -0
  12. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_discovery.py +0 -0
  13. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_model.py +0 -0
  14. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_recording.py +0 -0
  15. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_registry.py +0 -0
  16. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_routing.py +0 -0
  17. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/_sql.py +0 -0
  18. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/asyncio/__init__.py +0 -0
  19. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/asyncio/_db.py +0 -0
  20. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/asyncio/_registry.py +0 -0
  21. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/asyncio/orm.py +0 -0
  22. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/exceptions.py +0 -0
  23. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/orm.py +0 -0
  24. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/py.typed +0 -0
  25. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/testing.py +0 -0
  26. {sqlakit-0.7.1 → sqlakit-0.7.2}/sqlakit/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlakit
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: A toolkit for SQLAlchemy applications.
5
5
  Keywords: sqlalchemy,database,orm,sql,asyncio
6
6
  Author: Anton Ruhlov
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sqlakit"
3
- version = "0.7.1"
3
+ version = "0.7.2"
4
4
  description = "A toolkit for SQLAlchemy applications."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sqlakit"
3
- version = "0.7.1"
3
+ version = "0.7.2"
4
4
  description = "A toolkit for SQLAlchemy applications."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -466,7 +466,7 @@ class BaseQuery(Generic[ModelT]):
466
466
  )
467
467
  return query
468
468
 
469
- def from_sql(self, template: str, **context: Any) -> Self: # noqa: ANN401
469
+ def from_sql(self, template: str, /, **context: Any) -> Self: # noqa: ANN401
470
470
  """Take the rows of a SQL template, mapped onto the model.
471
471
 
472
472
  ```python
@@ -46,7 +46,7 @@ class SQL:
46
46
  def __repr__(self) -> str:
47
47
  return f"{type(self).__name__}({self.db!r})"
48
48
 
49
- def __call__(self, template: str, **context: Any) -> SQLQuery: # noqa: ANN401
49
+ def __call__(self, template: str, /, **context: Any) -> SQLQuery: # noqa: ANN401
50
50
  """Read the rows of a template. Short for `from_file`.
51
51
 
52
52
  ```python
@@ -55,7 +55,7 @@ class SQL:
55
55
  """
56
56
  return self.from_file(template, **context)
57
57
 
58
- def from_file(self, template: str, **context: Any) -> SQLQuery: # noqa: ANN401
58
+ def from_file(self, template: str, /, **context: Any) -> SQLQuery: # noqa: ANN401
59
59
  """Read the rows of a template kept under the database's ``templates=``.
60
60
 
61
61
  ```python
@@ -66,7 +66,7 @@ class SQL:
66
66
  """
67
67
  return SQLQuery(self.db, template, context)
68
68
 
69
- def from_string(self, source: str, **context: Any) -> SQLQuery: # noqa: ANN401
69
+ def from_string(self, source: str, /, **context: Any) -> SQLQuery: # noqa: ANN401
70
70
  """Read the rows of SQL written out here rather than kept in a file.
71
71
 
72
72
  ```python
@@ -45,7 +45,7 @@ class SQL:
45
45
  def __repr__(self) -> str:
46
46
  return f"{type(self).__name__}({self.db!r})"
47
47
 
48
- def __call__(self, template: str, **context: Any) -> SQLQuery: # noqa: ANN401
48
+ def __call__(self, template: str, /, **context: Any) -> SQLQuery: # noqa: ANN401
49
49
  """Read the rows of a template. Short for `from_file`.
50
50
 
51
51
  ```python
@@ -54,7 +54,7 @@ class SQL:
54
54
  """
55
55
  return self.from_file(template, **context)
56
56
 
57
- def from_file(self, template: str, **context: Any) -> SQLQuery: # noqa: ANN401
57
+ def from_file(self, template: str, /, **context: Any) -> SQLQuery: # noqa: ANN401
58
58
  """Read the rows of a template kept under the database's ``templates=``.
59
59
 
60
60
  ```python
@@ -65,7 +65,7 @@ class SQL:
65
65
  """
66
66
  return SQLQuery(self.db, template, context)
67
67
 
68
- def from_string(self, source: str, **context: Any) -> SQLQuery: # noqa: ANN401
68
+ def from_string(self, source: str, /, **context: Any) -> SQLQuery: # noqa: ANN401
69
69
  """Read the rows of SQL written out here rather than kept in a file.
70
70
 
71
71
  ```python
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes