apexdevkit 1.18.9__tar.gz → 1.18.11__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 (52) hide show
  1. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/PKG-INFO +2 -2
  2. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/query/query.py +23 -23
  3. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/connector.py +15 -11
  4. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/pyproject.toml +1 -1
  5. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/LICENSE +0 -0
  6. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/README.md +0 -0
  7. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/__init__.py +0 -0
  8. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/annotation/__init__.py +0 -0
  9. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/annotation/deprecate.py +0 -0
  10. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/environment.py +0 -0
  11. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/error.py +0 -0
  12. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/__init__.py +0 -0
  13. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/builder.py +0 -0
  14. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/dependable.py +0 -0
  15. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/docs.py +0 -0
  16. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/name.py +0 -0
  17. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/request.py +0 -0
  18. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/resource.py +0 -0
  19. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/response.py +0 -0
  20. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/router.py +0 -0
  21. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/schema.py +0 -0
  22. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fastapi/service.py +0 -0
  23. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/fluent.py +0 -0
  24. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/formatter.py +0 -0
  25. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/__init__.py +0 -0
  26. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/fake.py +0 -0
  27. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/fluent.py +0 -0
  28. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/httpx.py +0 -0
  29. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/json.py +0 -0
  30. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/http/url.py +0 -0
  31. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/id.py +0 -0
  32. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/key_fn.py +0 -0
  33. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/py.typed +0 -0
  34. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/query/__init__.py +0 -0
  35. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/query/generator.py +0 -0
  36. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/__init__.py +0 -0
  37. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/base.py +0 -0
  38. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/database.py +0 -0
  39. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/decorator.py +0 -0
  40. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/in_memory.py +0 -0
  41. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/interface.py +0 -0
  42. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/mongo.py +0 -0
  43. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/mssql.py +0 -0
  44. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/sql.py +0 -0
  45. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/repository/sqlite.py +0 -0
  46. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/server.py +0 -0
  47. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/synchronization.py +0 -0
  48. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/__init__.py +0 -0
  49. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/database.py +0 -0
  50. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/fake.py +0 -0
  51. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/testing/rest.py +0 -0
  52. {apexdevkit-1.18.9 → apexdevkit-1.18.11}/apexdevkit/value.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: apexdevkit
3
- Version: 1.18.9
3
+ Version: 1.18.11
4
4
  Summary: Apex Development Tools for python.
5
5
  Author: Apex Dev
6
6
  Author-email: dev@apex.ge
@@ -141,29 +141,29 @@ class Filter:
141
141
 
142
142
 
143
143
  class Operation(Enum):
144
- BETWEEN: str = "BETWEEN"
145
- RANGE: str = "RANGE"
146
- NULL: str = "NULL"
147
- BLANK: str = "BLANK"
148
- IN: str = "IN"
149
- CONTAINS: str = "CONTAINS"
150
- LIKE: str = "LIKE"
151
- BEGINS: str = "BEGINS"
152
- ENDS: str = "ENDS"
153
- EQUALS: str = "="
154
- NOT_EQUALS: str = "<>"
155
- GREATER: str = ">"
156
- GREATER_OR_EQUALS: str = ">="
157
- LESS: str = "<"
158
- LESS_OR_EQUALS: str = "<="
159
- AND: str = "AND"
160
- OR: str = "OR"
161
- NOT: str = "NOT"
144
+ BETWEEN = "BETWEEN"
145
+ RANGE = "RANGE"
146
+ NULL = "NULL"
147
+ BLANK = "BLANK"
148
+ IN = "IN"
149
+ CONTAINS = "CONTAINS"
150
+ LIKE = "LIKE"
151
+ BEGINS = "BEGINS"
152
+ ENDS = "ENDS"
153
+ EQUALS = "="
154
+ NOT_EQUALS = "<>"
155
+ GREATER = ">"
156
+ GREATER_OR_EQUALS = ">="
157
+ LESS = "<"
158
+ LESS_OR_EQUALS = "<="
159
+ AND = "AND"
160
+ OR = "OR"
161
+ NOT = "NOT"
162
162
 
163
163
 
164
164
  class Aggregation(Enum):
165
- COUNT: str = "COUNT"
166
- MAX: str = "MAX"
167
- MIN: str = "MIN"
168
- SUM: str = "SUM"
169
- AVG: str = "AVG"
165
+ COUNT = "COUNT"
166
+ MAX = "MAX"
167
+ MIN = "MIN"
168
+ SUM = "SUM"
169
+ AVG = "AVG"
@@ -55,22 +55,26 @@ class MsSqlConnector:
55
55
  db_password: str
56
56
  db_name: str
57
57
  db_tds_version = "7.0"
58
+ db_port: str | None = None
58
59
 
59
60
  def connect(self) -> ContextManager[Connection]:
60
61
  return ConnectionContextManager(self._connection())
61
62
 
62
63
  def _connection(self) -> Connection:
63
- return MsSqlConnectionAdapter(
64
- pymssql.connect(
65
- tds_version=self.db_tds_version,
66
- server=self.db_host,
67
- user=self.db_user,
68
- password=self.db_password,
69
- database=self.db_name,
70
- as_dict=True,
71
- autocommit=True,
72
- )
73
- )
64
+ connection_params = {
65
+ "tds_version": self.db_tds_version,
66
+ "server": self.db_host,
67
+ "user": self.db_user,
68
+ "password": self.db_password,
69
+ "database": self.db_name,
70
+ "as_dict": True,
71
+ "autocommit": True,
72
+ }
73
+
74
+ if self.db_port is not None:
75
+ connection_params["port"] = self.db_port
76
+
77
+ return MsSqlConnectionAdapter(pymssql.connect(**connection_params))
74
78
 
75
79
 
76
80
  class ConnectionContextManager(AbstractContextManager[Connection]):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "apexdevkit"
3
- version = "1.18.9"
3
+ version = "1.18.11"
4
4
  description = "Apex Development Tools for python."
5
5
  authors = ["Apex Dev <dev@apex.ge>"]
6
6
  readme = "README.md"
File without changes
File without changes