ormlambda 3.12.2__py3-none-any.whl → 3.34.0__py3-none-any.whl

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 (150) hide show
  1. ormlambda/__init__.py +2 -0
  2. ormlambda/caster/__init__.py +1 -1
  3. ormlambda/caster/caster.py +29 -12
  4. ormlambda/common/abstract_classes/clause_info_converter.py +4 -12
  5. ormlambda/common/abstract_classes/decomposition_query.py +17 -2
  6. ormlambda/common/abstract_classes/non_query_base.py +9 -7
  7. ormlambda/common/abstract_classes/query_base.py +3 -1
  8. ormlambda/common/errors/__init__.py +29 -0
  9. ormlambda/common/interfaces/IQueryCommand.py +6 -2
  10. ormlambda/dialects/__init__.py +39 -0
  11. ormlambda/dialects/default/__init__.py +1 -0
  12. ormlambda/dialects/default/base.py +39 -0
  13. ormlambda/dialects/interface/__init__.py +1 -0
  14. ormlambda/dialects/interface/dialect.py +78 -0
  15. ormlambda/dialects/mysql/__init__.py +38 -0
  16. ormlambda/dialects/mysql/base.py +388 -0
  17. ormlambda/dialects/mysql/caster/caster.py +39 -0
  18. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/__init__.py +1 -0
  19. ormlambda/dialects/mysql/caster/types/boolean.py +35 -0
  20. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/bytes.py +7 -7
  21. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/datetime.py +7 -7
  22. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/float.py +7 -7
  23. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/int.py +7 -7
  24. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/iterable.py +7 -7
  25. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/none.py +8 -7
  26. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/point.py +4 -4
  27. ormlambda/{databases/my_sql → dialects/mysql}/caster/types/string.py +7 -7
  28. ormlambda/{databases/my_sql → dialects/mysql}/clauses/ST_AsText.py +8 -7
  29. ormlambda/{databases/my_sql → dialects/mysql}/clauses/ST_Contains.py +10 -5
  30. ormlambda/dialects/mysql/clauses/__init__.py +13 -0
  31. ormlambda/dialects/mysql/clauses/count.py +33 -0
  32. ormlambda/dialects/mysql/clauses/delete.py +9 -0
  33. ormlambda/dialects/mysql/clauses/group_by.py +17 -0
  34. ormlambda/dialects/mysql/clauses/having.py +12 -0
  35. ormlambda/dialects/mysql/clauses/insert.py +9 -0
  36. ormlambda/dialects/mysql/clauses/joins.py +14 -0
  37. ormlambda/dialects/mysql/clauses/limit.py +6 -0
  38. ormlambda/dialects/mysql/clauses/offset.py +6 -0
  39. ormlambda/dialects/mysql/clauses/order.py +8 -0
  40. ormlambda/dialects/mysql/clauses/update.py +8 -0
  41. ormlambda/dialects/mysql/clauses/upsert.py +9 -0
  42. ormlambda/dialects/mysql/clauses/where.py +7 -0
  43. ormlambda/dialects/mysql/mysqlconnector.py +46 -0
  44. ormlambda/dialects/mysql/repository/__init__.py +1 -0
  45. ormlambda/dialects/mysql/repository/repository.py +212 -0
  46. ormlambda/dialects/mysql/types.py +732 -0
  47. ormlambda/dialects/sqlite/__init__.py +5 -0
  48. ormlambda/dialects/sqlite/base.py +47 -0
  49. ormlambda/dialects/sqlite/pysqlite.py +32 -0
  50. ormlambda/engine/__init__.py +1 -0
  51. ormlambda/engine/base.py +77 -0
  52. ormlambda/engine/create.py +9 -23
  53. ormlambda/engine/url.py +31 -19
  54. ormlambda/env.py +30 -0
  55. ormlambda/errors.py +17 -0
  56. ormlambda/model/base_model.py +7 -9
  57. ormlambda/repository/base_repository.py +36 -5
  58. ormlambda/repository/interfaces/IRepositoryBase.py +119 -12
  59. ormlambda/repository/response.py +134 -0
  60. ormlambda/sql/clause_info/aggregate_function_base.py +19 -9
  61. ormlambda/sql/clause_info/clause_info.py +34 -17
  62. ormlambda/sql/clauses/__init__.py +14 -0
  63. ormlambda/{databases/my_sql → sql}/clauses/alias.py +23 -6
  64. ormlambda/{databases/my_sql → sql}/clauses/count.py +15 -1
  65. ormlambda/{databases/my_sql → sql}/clauses/delete.py +22 -7
  66. ormlambda/sql/clauses/group_by.py +30 -0
  67. ormlambda/{databases/my_sql → sql}/clauses/having.py +7 -2
  68. ormlambda/{databases/my_sql → sql}/clauses/insert.py +16 -9
  69. ormlambda/sql/clauses/interfaces/__init__.py +5 -0
  70. ormlambda/{components → sql/clauses}/join/join_context.py +15 -7
  71. ormlambda/{databases/my_sql → sql}/clauses/joins.py +29 -19
  72. ormlambda/sql/clauses/limit.py +15 -0
  73. ormlambda/sql/clauses/offset.py +15 -0
  74. ormlambda/{databases/my_sql → sql}/clauses/order.py +14 -24
  75. ormlambda/{databases/my_sql → sql}/clauses/select.py +12 -13
  76. ormlambda/{databases/my_sql → sql}/clauses/update.py +24 -11
  77. ormlambda/{databases/my_sql → sql}/clauses/upsert.py +17 -12
  78. ormlambda/{databases/my_sql → sql}/clauses/where.py +28 -8
  79. ormlambda/sql/column/__init__.py +1 -0
  80. ormlambda/sql/{column.py → column/column.py} +82 -22
  81. ormlambda/sql/comparer.py +51 -37
  82. ormlambda/sql/compiler.py +668 -0
  83. ormlambda/sql/ddl.py +82 -0
  84. ormlambda/sql/elements.py +36 -0
  85. ormlambda/sql/foreign_key.py +61 -39
  86. ormlambda/{databases/my_sql → sql}/functions/concat.py +13 -5
  87. ormlambda/{databases/my_sql → sql}/functions/max.py +9 -4
  88. ormlambda/{databases/my_sql → sql}/functions/min.py +9 -13
  89. ormlambda/{databases/my_sql → sql}/functions/sum.py +8 -10
  90. ormlambda/sql/sqltypes.py +647 -0
  91. ormlambda/sql/table/__init__.py +1 -1
  92. ormlambda/sql/table/table.py +175 -0
  93. ormlambda/sql/table/table_constructor.py +1 -208
  94. ormlambda/sql/type_api.py +35 -0
  95. ormlambda/sql/types.py +3 -1
  96. ormlambda/sql/visitors.py +74 -0
  97. ormlambda/statements/__init__.py +1 -0
  98. ormlambda/statements/base_statement.py +28 -38
  99. ormlambda/statements/interfaces/IStatements.py +8 -4
  100. ormlambda/{databases/my_sql → statements}/query_builder.py +35 -30
  101. ormlambda/{databases/my_sql → statements}/statements.py +57 -61
  102. ormlambda/statements/types.py +2 -2
  103. ormlambda/types/__init__.py +24 -0
  104. ormlambda/types/metadata.py +42 -0
  105. ormlambda/util/__init__.py +87 -0
  106. ormlambda/{utils → util}/module_tree/dynamic_module.py +1 -1
  107. ormlambda/util/plugin_loader.py +32 -0
  108. ormlambda/util/typing.py +6 -0
  109. ormlambda-3.34.0.dist-info/AUTHORS +32 -0
  110. {ormlambda-3.12.2.dist-info → ormlambda-3.34.0.dist-info}/METADATA +1 -1
  111. ormlambda-3.34.0.dist-info/RECORD +152 -0
  112. ormlambda/components/__init__.py +0 -4
  113. ormlambda/components/delete/__init__.py +0 -2
  114. ormlambda/components/delete/abstract_delete.py +0 -17
  115. ormlambda/components/insert/__init__.py +0 -2
  116. ormlambda/components/insert/abstract_insert.py +0 -25
  117. ormlambda/components/select/__init__.py +0 -1
  118. ormlambda/components/update/__init__.py +0 -2
  119. ormlambda/components/update/abstract_update.py +0 -29
  120. ormlambda/components/upsert/__init__.py +0 -2
  121. ormlambda/components/upsert/abstract_upsert.py +0 -25
  122. ormlambda/databases/__init__.py +0 -5
  123. ormlambda/databases/my_sql/__init__.py +0 -4
  124. ormlambda/databases/my_sql/caster/caster.py +0 -39
  125. ormlambda/databases/my_sql/clauses/__init__.py +0 -20
  126. ormlambda/databases/my_sql/clauses/create_database.py +0 -35
  127. ormlambda/databases/my_sql/clauses/drop_database.py +0 -17
  128. ormlambda/databases/my_sql/clauses/drop_table.py +0 -26
  129. ormlambda/databases/my_sql/clauses/group_by.py +0 -30
  130. ormlambda/databases/my_sql/clauses/limit.py +0 -17
  131. ormlambda/databases/my_sql/clauses/offset.py +0 -17
  132. ormlambda/databases/my_sql/repository/__init__.py +0 -1
  133. ormlambda/databases/my_sql/repository/repository.py +0 -351
  134. ormlambda/engine/template.py +0 -47
  135. ormlambda/sql/dtypes.py +0 -94
  136. ormlambda/utils/__init__.py +0 -1
  137. ormlambda-3.12.2.dist-info/RECORD +0 -125
  138. /ormlambda/{databases/my_sql → dialects/mysql}/caster/__init__.py +0 -0
  139. /ormlambda/{databases/my_sql/types.py → dialects/mysql/repository/pool_types.py} +0 -0
  140. /ormlambda/{components/delete → sql/clauses/interfaces}/IDelete.py +0 -0
  141. /ormlambda/{components/insert → sql/clauses/interfaces}/IInsert.py +0 -0
  142. /ormlambda/{components/select → sql/clauses/interfaces}/ISelect.py +0 -0
  143. /ormlambda/{components/update → sql/clauses/interfaces}/IUpdate.py +0 -0
  144. /ormlambda/{components/upsert → sql/clauses/interfaces}/IUpsert.py +0 -0
  145. /ormlambda/{components → sql/clauses}/join/__init__.py +0 -0
  146. /ormlambda/{databases/my_sql → sql}/functions/__init__.py +0 -0
  147. /ormlambda/{utils → util}/module_tree/__init__.py +0 -0
  148. /ormlambda/{utils → util}/module_tree/dfs_traversal.py +0 -0
  149. {ormlambda-3.12.2.dist-info → ormlambda-3.34.0.dist-info}/LICENSE +0 -0
  150. {ormlambda-3.12.2.dist-info → ormlambda-3.34.0.dist-info}/WHEEL +0 -0
@@ -1,351 +0,0 @@
1
- from __future__ import annotations
2
- import contextlib
3
- from pathlib import Path
4
- from typing import Any, Generator, Iterable, Optional, Type, override, TYPE_CHECKING, Unpack
5
- import uuid
6
- import shapely as shp
7
-
8
- # from mysql.connector.pooling import MySQLConnectionPool
9
- from mysql.connector import MySQLConnection # noqa: F401
10
- from mysql.connector.pooling import MySQLConnectionPool # noqa: F401
11
- from ormlambda.repository import BaseRepository
12
-
13
- # Custom libraries
14
- from ormlambda.repository import IRepositoryBase
15
- from ormlambda.caster import Caster
16
-
17
- from ..clauses import CreateDatabase, TypeExists
18
- from ..clauses import DropDatabase
19
- from ..clauses import DropTable
20
- from ..clauses import Alias
21
-
22
-
23
- if TYPE_CHECKING:
24
- from ormlambda.common.abstract_classes.decomposition_query import ClauseInfo
25
- from ormlambda import Table
26
- from ormlambda.databases.my_sql.clauses.select import Select
27
- from ..types import MySQLArgs
28
-
29
- type TResponse[TFlavour, *Ts] = TFlavour | tuple[dict[str, tuple[*Ts]]] | tuple[tuple[*Ts]] | tuple[TFlavour]
30
-
31
-
32
- class Response[TFlavour, *Ts]:
33
- def __init__(self, repository: IRepositoryBase, response_values: list[tuple[*Ts]], columns: tuple[str], flavour: Type[TFlavour], model: Optional[Table] = None, select: Optional[Select] = None) -> None:
34
- self._repository: IRepositoryBase = repository
35
- self._response_values: list[tuple[*Ts]] = response_values
36
- self._columns: tuple[str] = columns
37
- self._flavour: Type[TFlavour] = flavour
38
- self._model: Table = model
39
- self._select: Select = select
40
-
41
- self._response_values_index: int = len(self._response_values)
42
- # self.select_values()
43
- self._caster = Caster(repository)
44
-
45
- @property
46
- def is_one(self) -> bool:
47
- return self._response_values_index == 1
48
-
49
- @property
50
- def is_there_response(self) -> bool:
51
- return self._response_values_index != 0
52
-
53
- @property
54
- def is_many(self) -> bool:
55
- return self._response_values_index > 1
56
-
57
- def response(self, _tuple: bool, **kwargs) -> TResponse[TFlavour, *Ts]:
58
- if not self.is_there_response:
59
- return tuple([])
60
- cleaned_response = self._response_values
61
-
62
- if self._select is not None:
63
- cleaned_response = self._parser_response()
64
-
65
- cast_flavour = self._cast_to_flavour(cleaned_response, **kwargs)
66
- if _tuple is not True:
67
- return cast_flavour
68
-
69
- return tuple(cast_flavour)
70
-
71
- def _cast_to_flavour(self, data: list[tuple[*Ts]], **kwargs) -> list[dict[str, tuple[*Ts]]] | list[tuple[*Ts]] | list[TFlavour]:
72
- def _dict(**kwargs) -> list[dict[str, tuple[*Ts]]]:
73
- nonlocal data
74
- return [dict(zip(self._columns, x)) for x in data]
75
-
76
- def _tuple(**kwargs) -> list[tuple[*Ts]]:
77
- nonlocal data
78
- return data
79
-
80
- def _set(**kwargs) -> list[set]:
81
- nonlocal data
82
- for d in data:
83
- n = len(d)
84
- for i in range(n):
85
- try:
86
- hash(d[i])
87
- except TypeError:
88
- raise TypeError(f"unhashable type '{type(d[i])}' found in '{type(d)}' when attempting to cast the result into a '{set.__name__}' object")
89
- return [set(x) for x in data]
90
-
91
- def _list(**kwargs) -> list[list]:
92
- nonlocal data
93
- return [list(x) for x in data]
94
-
95
- def _default(**kwargs) -> list[TFlavour]:
96
- nonlocal data
97
- replacer_dicc: dict[str, str] = {}
98
-
99
- for col in self._select.all_clauses:
100
- if hasattr(col, "_alias_aggregate") or col.alias_clause is None or isinstance(col, Alias):
101
- continue
102
- replacer_dicc[col.alias_clause] = col.column
103
-
104
- cleaned_column_names = [replacer_dicc.get(col, col) for col in self._columns]
105
-
106
- result = []
107
- for attr in data:
108
- dicc_attr = dict(zip(cleaned_column_names, attr))
109
- result.append(self._flavour(**dicc_attr, **kwargs))
110
-
111
- return result
112
-
113
- selector: dict[Type[object], Any] = {
114
- dict: _dict,
115
- tuple: _tuple,
116
- set: _set,
117
- list: _list,
118
- }
119
-
120
- selector.get(dict)()
121
- return selector.get(self._flavour, _default)(**kwargs)
122
-
123
- def _parser_response(self) -> TFlavour:
124
- new_response: list[tuple] = []
125
- for row in self._response_values:
126
- new_row: list = []
127
- for i, data in enumerate(row):
128
- alias = self._columns[i]
129
- clause_info = self._select[alias]
130
- if not self._is_parser_required(clause_info):
131
- new_row = row
132
- break
133
- else:
134
- parse_data = self._caster.for_value(data, value_type=clause_info.dtype).from_database
135
- new_row.append(parse_data)
136
- new_row = tuple(new_row)
137
- if not isinstance(new_row, tuple):
138
- new_row = tuple(new_row)
139
-
140
- new_response.append(new_row)
141
- return new_response
142
-
143
- @staticmethod
144
- def _is_parser_required[T: Table](clause_info: ClauseInfo[T]) -> bool:
145
- if clause_info is None:
146
- return False
147
-
148
- return clause_info.dtype is shp.Point
149
-
150
- @staticmethod
151
- def parser_data[T: Table, TProp](clause_info: ClauseInfo[T], data: TProp):
152
- if clause_info.dtype is shp.Point:
153
- return shp.from_wkt(data)
154
- return data
155
-
156
-
157
- class MySQLRepository(BaseRepository[MySQLConnectionPool]):
158
- # def get_connection[**P, TReturn](func: Callable[Concatenate[MySQLRepository, MySQLConnection, P], TReturn]) -> Callable[P, TReturn]:
159
- # def wrapper(self: MySQLRepository, *args: P.args, **kwargs: P.kwargs):
160
- # with self.get_connection() as cnx:
161
- # try:
162
- # return func(self, cnx._cnx, *args, **kwargs)
163
- # except Exception as e:
164
- # cnx._cnx.rollback()
165
- # raise e
166
-
167
- # return wrapper
168
-
169
- #
170
-
171
- def __init__(self, **kwargs: Unpack[MySQLArgs]):
172
- timeout = self.__add_connection_timeout(kwargs)
173
- name = self.__add_pool_name(kwargs)
174
- size = self.__add_pool_size(kwargs)
175
- attr = kwargs.copy()
176
- attr["connection_timeout"] = timeout
177
- attr["pool_name"] = name
178
- attr["pool_size"] = size
179
-
180
- super().__init__(MySQLConnectionPool, **attr)
181
-
182
- @staticmethod
183
- def __add_connection_timeout(kwargs: MySQLArgs) -> int:
184
- if "connection_timeout" not in kwargs.keys():
185
- return 60
186
- return int(kwargs.pop("connection_timeout"))
187
-
188
- @staticmethod
189
- def __add_pool_name(kwargs: MySQLArgs) -> str:
190
- if "pool_name" not in kwargs.keys():
191
- return str(uuid.uuid4())
192
-
193
- return kwargs.pop("pool_name")
194
-
195
- @staticmethod
196
- def __add_pool_size(kwargs: MySQLArgs) -> int:
197
- if "pool_size" not in kwargs.keys():
198
- return 5
199
- return int(kwargs.pop("pool_size"))
200
-
201
- @contextlib.contextmanager
202
- def get_connection(self) -> Generator[MySQLConnection, None, None]:
203
- with self._pool.get_connection() as cnx:
204
- try:
205
- yield cnx._cnx
206
- cnx._cnx.commit()
207
- except Exception as exc:
208
- cnx._cnx.rollback()
209
- raise exc
210
-
211
- @override
212
- def read_sql[TFlavour: Iterable](
213
- self,
214
- query: str,
215
- flavour: tuple | Type[TFlavour] = tuple,
216
- **kwargs,
217
- ) -> tuple[TFlavour]:
218
- """
219
- Return tuple of tuples by default.
220
-
221
- ATTRIBUTE
222
- -
223
- - query:str: string of request to the server
224
- - flavour: Type[TFlavour]: Useful to return tuple of any Iterable type as dict,set,list...
225
- """
226
-
227
- model: Table = kwargs.pop("model", None)
228
- select: Select = kwargs.pop("select", None)
229
- cast_to_tuple: bool = kwargs.pop("cast_to_tuple", True)
230
-
231
- with self.get_connection() as cnx:
232
- with cnx.cursor(buffered=True) as cursor:
233
- cursor.execute(query)
234
- values: list[tuple] = cursor.fetchall()
235
- columns: tuple[str] = cursor.column_names
236
- return Response[TFlavour](
237
- repository=self,
238
- model=model,
239
- response_values=values,
240
- columns=columns,
241
- flavour=flavour,
242
- select=select,
243
- ).response(_tuple=cast_to_tuple, **kwargs)
244
-
245
- # FIXME [ ]: this method does not comply with the implemented interface
246
- def create_tables_code_first(self, path: str | Path) -> None:
247
- return
248
- from ormlambda.utils.module_tree.dynamic_module import ModuleTree
249
-
250
- if not isinstance(path, Path | str):
251
- raise ValueError
252
-
253
- if isinstance(path, str):
254
- path = Path(path).resolve()
255
-
256
- if not path.exists():
257
- raise FileNotFoundError
258
-
259
- module_tree: ModuleTree = ModuleTree(path)
260
-
261
- queries_list: list[str] = module_tree.get_queries()
262
-
263
- for query in queries_list:
264
- with self.get_connection() as cnx:
265
- with cnx.cursor(buffered=True) as cursor:
266
- cursor.execute(query)
267
- return None
268
-
269
- @override
270
- def executemany_with_values(self, query: str, values) -> None:
271
- with self.get_connection() as cnx:
272
- with cnx.cursor(buffered=True) as cursor:
273
- cursor.executemany(query, values)
274
- return None
275
-
276
- @override
277
- def execute_with_values(self, query: str, values) -> None:
278
- with self.get_connection() as cnx:
279
- with cnx.cursor(buffered=True) as cursor:
280
- cursor.execute(query, values)
281
- return None
282
-
283
- @override
284
- def execute(self, query: str) -> None:
285
- with self.get_connection() as cnx:
286
- with cnx.cursor(buffered=True) as cursor:
287
- cursor.execute(query)
288
- return None
289
-
290
- @override
291
- def drop_table(self, name: str) -> None:
292
- return DropTable(self).execute(name)
293
-
294
- @override
295
- def database_exists(self, name: str) -> bool:
296
- temp_config = self._pool._cnx_config
297
-
298
- config_without_db = temp_config.copy()
299
-
300
- if "database" in config_without_db:
301
- config_without_db.pop("database")
302
- self._pool.set_config(**config_without_db)
303
-
304
- with self.get_connection() as cnx:
305
- with cnx.cursor(buffered=True) as cursor:
306
- cursor.execute("SHOW DATABASES LIKE %s;", (name,))
307
- res = cursor.fetchmany(1)
308
-
309
- self._pool.set_config(**temp_config)
310
- return len(res) > 0
311
-
312
- @override
313
- def drop_database(self, name: str) -> None:
314
- return DropDatabase(self).execute(name)
315
-
316
- @override
317
- def table_exists(self, name: str) -> bool:
318
- with self.get_connection() as cnx:
319
- if not cnx.database:
320
- raise Exception("No database selected")
321
- with cnx.cursor(buffered=True) as cursor:
322
- cursor.execute("SHOW TABLES LIKE %s;", (name,))
323
- res = cursor.fetchmany(1)
324
- return len(res) > 0
325
-
326
- @override
327
- def create_database(self, name: str, if_exists: TypeExists = "fail") -> None:
328
- temp_config = self._pool._cnx_config
329
-
330
- config_without_db = temp_config.copy()
331
-
332
- if "database" in config_without_db:
333
- config_without_db.pop("database")
334
- return CreateDatabase(type(self)(**config_without_db)).execute(name, if_exists)
335
-
336
- @property
337
- def database(self) -> Optional[str]:
338
- return self._pool._cnx_config.get("database", None)
339
-
340
- @database.setter
341
- def database(self, value: str) -> None:
342
- """Change the current database using USE statement"""
343
-
344
- if not self.database_exists(value):
345
- raise ValueError(f"You cannot set the non-existent '{value}' database.")
346
-
347
- old_config: MySQLArgs = self._pool._cnx_config.copy()
348
- old_config["database"] = value
349
-
350
- self._pool._remove_connections()
351
- self._pool = type(self)(**old_config)._pool
@@ -1,47 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import TYPE_CHECKING, Optional, Type
4
-
5
- if TYPE_CHECKING:
6
- from ormlambda.repository import IRepositoryBase
7
- from ormlambda.statements.interfaces import IStatements
8
- from ormlambda.caster import ICaster
9
-
10
-
11
- class Template[TCnx]:
12
- repository: Type[IRepositoryBase]
13
- caster: Type[ICaster]
14
- statement: Type[IStatements]
15
-
16
-
17
- class RepositoryTemplateDict[TRepo]:
18
- _instance: Optional[RepositoryTemplateDict[TRepo]] = None
19
-
20
- def __new__[T: Template](cls):
21
- if cls._instance is not None:
22
- return cls._instance
23
-
24
- cls._instance = super().__new__(cls)
25
-
26
- from ..databases.my_sql import (
27
- MySQLCaster,
28
- MySQLRepository,
29
- MySQLStatements,
30
- )
31
-
32
- class MySQLTemplate[TCnx](Template[TCnx]):
33
- repository = MySQLRepository
34
- caster = MySQLCaster
35
- statement = MySQLStatements
36
-
37
- # FIXME [ ]: should return T instead of Template
38
- cls._data: dict[IRepositoryBase, Template] = {
39
- MySQLRepository: MySQLTemplate,
40
- }
41
-
42
- return cls._instance
43
-
44
- # FIXME [ ]: should return T instead of Template
45
- def get[T: Template](self, key: IRepositoryBase) -> Template:
46
- key = key if isinstance(key, type) else type(key)
47
- return self._instance._data[key]
ormlambda/sql/dtypes.py DELETED
@@ -1,94 +0,0 @@
1
- """
2
- String Data Types
3
- Data type Description
4
- CHAR(size) A FIXED length string (can contain letters, numbers, and special characters). The size parameter specifies the column length in characters - can be from 0 to 255. Default is 1
5
- VARCHAR(size) A VARIABLE length string (can contain letters, numbers, and special characters). The size parameter specifies the maximum column length in characters - can be from 0 to 65535
6
- BINARY(size) Equal to CHAR(), but stores binary byte strings. The size parameter specifies the column length in bytes. Default is 1
7
- VARBINARY(size) Equal to VARCHAR(), but stores binary byte strings. The size parameter specifies the maximum column length in bytes.
8
- TINYBLOB For BLOBs (Binary Large OBjects). Max length: 255 bytes
9
- TINYTEXT Holds a string with a maximum length of 255 characters
10
- TEXT(size) Holds a string with a maximum length of 65,535 bytes
11
- BLOB(size) For BLOBs (Binary Large OBjects). Holds up to 65,535 bytes of data
12
- MEDIUMTEXT Holds a string with a maximum length of 16,777,215 characters
13
- MEDIUMBLOB For BLOBs (Binary Large OBjects). Holds up to 16,777,215 bytes of data
14
- LONGTEXT Holds a string with a maximum length of 4,294,967,295 characters
15
- LONGBLOB For BLOBs (Binary Large OBjects). Holds up to 4,294,967,295 bytes of data
16
- ENUM(val1, val2, val3, ...) A string object that can have only one value, chosen from a list of possible values. You can list up to 65535 values in an ENUM list. If a value is inserted that is not in the list, a blank value will be inserted. The values are sorted in the order you enter them
17
- SET(val1, val2, val3, ...) A string object that can have 0 or more values, chosen from a list of possible values. You can list up to 64 values in a SET list
18
-
19
-
20
-
21
- Numeric Data Types
22
- Data type Description
23
- BIT(size) A bit-value type. The number of bits per value is specified in size. The size parameter can hold a value from 1 to 64. The default value for size is 1.
24
- TINYINT(size) A very small integer. Signed range is from -128 to 127. Unsigned range is from 0 to 255. The size parameter specifies the maximum display width (which is 255)
25
- BOOL Zero is considered as false, nonzero values are considered as true.
26
- BOOLEAN Equal to BOOL
27
- SMALLINT(size) A small integer. Signed range is from -32768 to 32767. Unsigned range is from 0 to 65535. The size parameter specifies the maximum display width (which is 255)
28
- MEDIUMINT(size) A medium integer. Signed range is from -8388608 to 8388607. Unsigned range is from 0 to 16777215. The size parameter specifies the maximum display width (which is 255)
29
- INT(size) A medium integer. Signed range is from -2147483648 to 2147483647. Unsigned range is from 0 to 4294967295. The size parameter specifies the maximum display width (which is 255)
30
- INTEGER(size) Equal to INT(size)
31
- BIGINT(size) A large integer. Signed range is from -9223372036854775808 to 9223372036854775807. Unsigned range is from 0 to 18446744073709551615. The size parameter specifies the maximum display width (which is 255)
32
- FLOAT(size, d) A floating point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter. This syntax is deprecated in MySQL 8.0.17, and it will be removed in future MySQL versions
33
- FLOAT(p) A floating point number. MySQL uses the p value to determine whether to use FLOAT or DOUBLE for the resulting data type. If p is from 0 to 24, the data type becomes FLOAT(). If p is from 25 to 53, the data type becomes DOUBLE()
34
- DOUBLE(size, d) A normal-size floating point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter
35
- DOUBLE PRECISION(size, d)
36
- DECIMAL(size, d) An exact fixed-point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter. The maximum number for size is 65. The maximum number for d is 30. The default value for size is 10. The default value for d is 0.
37
- DEC(size, d) Equal to DECIMAL(size,d)
38
- Note: All the numeric data types may have an extra option: UNSIGNED or ZEROFILL. If you add the UNSIGNED option, MySQL disallows negative values for the column. If you add the ZEROFILL option, MySQL automatically also adds the UNSIGNED attribute to the column.
39
-
40
- Date and Time Data Types
41
- Data type Description
42
- DATE A date. Format: YYYY-MM-DD. The supported range is from '1000-01-01' to '9999-12-31'
43
- DATETIME(fsp) A date and time combination. Format: YYYY-MM-DD hh:mm:ss. The supported range is from '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. Adding DEFAULT and ON UPDATE in the column definition to get automatic initialization and updating to the current date and time
44
- TIMESTAMP(fsp) A timestamp. TIMESTAMP values are stored as the number of seconds since the Unix epoch ('1970-01-01 00:00:00' UTC). Format: YYYY-MM-DD hh:mm:ss. The supported range is from '1970-01-01 00:00:01' UTC to '2038-01-09 03:14:07' UTC. Automatic initialization and updating to the current date and time can be specified using DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP in the column definition
45
- TIME(fsp) A time. Format: hh:mm:ss. The supported range is from '-838:59:59' to '838:59:59'
46
- YEAR A year in four-digit format. Values allowed in four-digit format: 1901 to 2155, and 0000.
47
- MySQL 8.0 does not support year in two-digit format.
48
- """
49
-
50
- from decimal import Decimal
51
- from typing import Any, Literal
52
- import datetime
53
-
54
- from shapely import Point
55
- import numpy as np
56
-
57
- from .column import Column
58
-
59
-
60
- STRING = Literal["CHAR(size)", "VARCHAR(size)", "BINARY(size)", "VARBINARY(size)", "TINYBLOB", "TINYTEXT", "TEXT(size)", "BLOB(size)", "MEDIUMTEXT", "MEDIUMBLOB", "LONGTEXT", "LONGBLOB", "ENUM(val1, val2, val3, ...)", "SET(val1, val2, val3, ...)"]
61
- NUMERIC_SIGNED = Literal["BIT(size)", "TINYINT(size)", "BOOL", "BOOLEAN", "SMALLINT(size)", "MEDIUMINT(size)", "INT(size)", "INTEGER(size)", "BIGINT(size)", "FLOAT(size, d)", "FLOAT(p)", "DOUBLE(size, d)", "DOUBLE PRECISION(size, d)", "DECIMAL(size, d)", "DEC(size, d)"]
62
- NUMERIC_UNSIGNED = Literal["BIT(size)", "TINYINT(size)", "BOOL", "BOOLEAN", "SMALLINT(size)", "MEDIUMINT(size)", "INT(size)", "INTEGER(size)", "BIGINT(size)", "FLOAT(size, d)", "FLOAT(p)", "DOUBLE(size, d)", "DOUBLE PRECISION(size, d)", "DECIMAL(size, d)", "DEC(size, d)"]
63
- DATE = Literal["DATE", "DATETIME(fsp)", "TIMESTAMP(fsp)", "TIME(fsp)", "YEAR"]
64
-
65
-
66
- # FIXME [ ]: this method does not comply with the implemented interface; we need to adjust it in the future to scale it to other databases
67
- @staticmethod
68
- def transform_py_dtype_into_query_dtype(dtype: Any) -> str:
69
- # TODOL: must be found a better way to convert python data type into SQL clauses
70
- # float -> DECIMAL(5,2) is an error
71
- dicc: dict[Any, str] = {int: "INTEGER", float: "FLOAT(5,2)", Decimal: "FLOAT", datetime.datetime: "DATETIME", datetime.date: "DATE", bytes: "BLOB", bytearray: "BLOB", str: "VARCHAR(255)", np.uint64: "BIGINT UNSIGNED", Point: "Point"}
72
-
73
- res = dicc.get(dtype, None)
74
- if res is None:
75
- raise ValueError(f"datatype '{dtype}' is not expected.")
76
- return dicc[dtype]
77
-
78
-
79
- # FIXME [ ]: this method does not comply with the implemented interface; we need to adjust it in the future to scale it to other databases
80
- def get_query_clausule(column_obj: Column) -> str:
81
- dtype: str = transform_py_dtype_into_query_dtype(column_obj.dtype)
82
- query: str = f"{column_obj.column_name} {dtype}"
83
-
84
- # FIXME [ ]: that's horrible but i'm tired; change it in the future
85
- if column_obj.is_primary_key:
86
- query += " PRIMARY KEY"
87
- if column_obj.is_auto_generated:
88
- if column_obj.dtype is datetime.datetime:
89
- query += " DEFAULT CURRENT_TIMESTAMP"
90
- if column_obj.is_auto_increment:
91
- query += " AUTO_INCREMENT"
92
- if column_obj.is_unique:
93
- query += " UNIQUE"
94
- return query
@@ -1 +0,0 @@
1
- from .module_tree import ModuleTree # noqa: F401
@@ -1,125 +0,0 @@
1
- ormlambda/__init__.py,sha256=tAhxXMEeBVObdo417TvykP3s-LPG2yrFgaswNbylbsQ,683
2
- ormlambda/caster/__init__.py,sha256=JWJ6qdPTk_uyJHGfFpvFCZeOXdP6DzL4-MtMFZVDPRY,150
3
- ormlambda/caster/base_caster.py,sha256=c3vCGoKDyJ39kfUiS7sNKhKdjBRYSK1Ie88lwDIXqgE,1774
4
- ormlambda/caster/caster.py,sha256=EiJFeb1t7wRLTloumuZYJgUt_ZNS8FEBAbLguBFLk30,1878
5
- ormlambda/caster/interfaces/ICaster.py,sha256=MCBBVBho9KH67vCcUk8nclY0a7QoqxgdyVJJR0-QDT0,759
6
- ormlambda/caster/interfaces/__init__.py,sha256=TRoIxxgxuhUhCJq2ldLS3UEa1THrMXEIyTH5K46vyGw,43
7
- ormlambda/common/__init__.py,sha256=g4yGxH4WEgvQ7Rix4lpp3FQ-3SeRhptNd5sabgZLQNk,59
8
- ormlambda/common/abstract_classes/__init__.py,sha256=l39_WaBH38wrDV2KXb83c73ct7oxSIIVj2Ep4UcvxrU,186
9
- ormlambda/common/abstract_classes/clause_info_converter.py,sha256=_gAloKLmkkx-horxoU752CJIldAIRkLtkJH2q5WSQA4,3162
10
- ormlambda/common/abstract_classes/decomposition_query.py,sha256=T5ilaUO9n9JlgeYhCVcp0aUKFzaPXinlYXg9ziwyGFw,5153
11
- ormlambda/common/abstract_classes/non_query_base.py,sha256=vdZK5jkS3IYD-0F2NGycyEqc2FDzZ3wMN9xzKTH8NBE,989
12
- ormlambda/common/abstract_classes/query_base.py,sha256=6qUFPwsVx45kUW3b66pHiSyjhcH4mzbdkddlGeUnG7c,266
13
- ormlambda/common/enums/__init__.py,sha256=4lVKCHi1JalwgNzjsAXqX-C54NJEH83y2v5baMO8fN4,103
14
- ormlambda/common/enums/condition_types.py,sha256=QZnhhlTwzLcZ9kkmG6a08fQjUUJsJ5XGAH7QCiJRL1A,330
15
- ormlambda/common/enums/join_type.py,sha256=EosZVnvAc72LlZHuICIgoKWwUJzhvWOIIAohcbDYPQo,354
16
- ormlambda/common/errors/__init__.py,sha256=nc6SJs6v7MbXwcEgcSW7SSG_iBECfz_10YzWwqU1D-E,888
17
- ormlambda/common/global_checker.py,sha256=9FtdGl0SCSLEBBFBtburmP_Sh5h2tx88ZG08vjUordc,894
18
- ormlambda/common/interfaces/ICustomAlias.py,sha256=GS-Riw_8yCr7N9DXSf5nZxkrwMH6eomNd-BdEhCA7fY,161
19
- ormlambda/common/interfaces/IDecompositionQuery.py,sha256=2fwcXONBnYpxL1YHPHaLxqQJ4NANGuTky69QNa74xd4,853
20
- ormlambda/common/interfaces/IJoinSelector.py,sha256=-w-MJmwq65tpDLtigWSLgvAqeOl75DA-EyWIugNkfCs,490
21
- ormlambda/common/interfaces/INonQueryCommand.py,sha256=7CjLW4sKqkR5zUIGvhRXOtzTs6vypJW1a9EJHlgCw2c,260
22
- ormlambda/common/interfaces/IQueryCommand.py,sha256=hfzCosK4-n8RJIb2PYs8b0qU3TNmfYluZXBf47KxxKs,331
23
- ormlambda/common/interfaces/__init__.py,sha256=np5wuAnBVAHDyD01-X3M9qPmzbjOzP6KNAj9BFazGd4,300
24
- ormlambda/components/__init__.py,sha256=DfPVPLGLbQpbfBmXGKYcJRTELxzzdeNbZbuiMgZrPiA,168
25
- ormlambda/components/delete/IDelete.py,sha256=06ZEdbKBxsHSwsGMBu0E1om4WJjojZAm-L3b95eQrcc,139
26
- ormlambda/components/delete/__init__.py,sha256=X_at2L4QkxDVK1olXhFHqNemkB8Dxbb7BYqv0EJyu7M,102
27
- ormlambda/components/delete/abstract_delete.py,sha256=4ZgttbvIGpL9_QTJBHNf7jx_1-UoqT9ggNuhE2Au-eM,533
28
- ormlambda/components/insert/IInsert.py,sha256=YIfMPlKu7UGgnVpZuhpr0Mtnefe-O85hqk8-GZrVK7w,139
29
- ormlambda/components/insert/__init__.py,sha256=TGShCJZwejK3zZCRistBAKoDy2NNDRR_w1LXIbN66Dk,102
30
- ormlambda/components/insert/abstract_insert.py,sha256=OmsfVMx8ifD2_ajRSXX8-EeKRTS7FTwbgSjdwASz_eg,695
31
- ormlambda/components/join/__init__.py,sha256=7hwAB-nKaMirTT6uNZ1JtYNkkIx5zMSa6jaqr28d8Cg,67
32
- ormlambda/components/join/join_context.py,sha256=SLxVSwCURLOBSMB-aN7PV69sBQXOOP1sCezAKn3Wnqo,3256
33
- ormlambda/components/select/ISelect.py,sha256=saA0Iat4lXfd1vc7a7t6Stc_3BJHAysGWH1AcmrhQhw,372
34
- ormlambda/components/select/__init__.py,sha256=aIO4Bkk1od7cC9qbwyZ__K1X8hw92OozmfSaKdu3inY,43
35
- ormlambda/components/update/IUpdate.py,sha256=U-3Wx8lyCglhxf9gCXWO3MVgydG6gfRpzp00_MHC5cU,168
36
- ormlambda/components/update/__init__.py,sha256=o1VjlfXgjftZgp64O10rzCGaDZCbdTZRRtjIlojTUWA,102
37
- ormlambda/components/update/abstract_update.py,sha256=BXskuatPtWzYtB2xKN30SFTe4iVu_XApTNLjR0ZY5Ig,893
38
- ormlambda/components/upsert/IUpsert.py,sha256=2m6Bcwa0X80IDLnf0QErqr01uYEydOnRta9_T1nxjK4,139
39
- ormlambda/components/upsert/__init__.py,sha256=2hv7-McdU8Jv1ZJ4J3v94brN2H_fXvVDS8ZEA9CsfPA,102
40
- ormlambda/components/upsert/abstract_upsert.py,sha256=a5_dJxTKI6GtxNTesxKtGFyy-AR6dXA6V2CAYiILn9o,695
41
- ormlambda/databases/__init__.py,sha256=-m7uIigkbFNU5JHeOE8DeTA2bRVYEppw2XPASTSvW_o,136
42
- ormlambda/databases/my_sql/__init__.py,sha256=2Ue97WtcpfB6-8SgUIHLOzk_iT44YUzG6baXCHmV9uA,212
43
- ormlambda/databases/my_sql/caster/__init__.py,sha256=Df2sdZaAJ1Mi5Ego0sILMk5pF1NbK-nlV0hbpzd0PWE,47
44
- ormlambda/databases/my_sql/caster/caster.py,sha256=6byP5RJsWmnLZ2C9Br8OpdpilLedogDlTv3i8HMObu8,1217
45
- ormlambda/databases/my_sql/caster/types/__init__.py,sha256=lZ9YFqDjY6d6-Vy0tBMZfLI5EhyKXrb12Ys4eYiWjAg,396
46
- ormlambda/databases/my_sql/caster/types/bytes.py,sha256=Aq4iO-JmHeCXLqcQfNqsSTUpc1gceqY3TC4H3PJfv3g,899
47
- ormlambda/databases/my_sql/caster/types/datetime.py,sha256=Tw27k_svBFpmZGQDzTfi14Cl413VknOZ1t4nDXHk_dk,1062
48
- ormlambda/databases/my_sql/caster/types/float.py,sha256=8nyQIvZD0N99Z7TRAbJkMW138JSZTX5kQLtqSUtco8s,899
49
- ormlambda/databases/my_sql/caster/types/int.py,sha256=-fhwtaq05LxtM9VDrBy7lLh5VRh-2aGJDotT-Z8PtX4,889
50
- ormlambda/databases/my_sql/caster/types/iterable.py,sha256=CVgYrQN9hIyAcFK4__e42HC3u0Rh4yKuzy3Rvc28xJk,902
51
- ormlambda/databases/my_sql/caster/types/none.py,sha256=D2eF8sgLEywipKiJtXc_gYx3Edn5rcOUrw-DigTcprU,793
52
- ormlambda/databases/my_sql/caster/types/point.py,sha256=g5G691CsyQQtK6BGoKVpDzUtMRJNIKz_98xeHxqTGLE,1426
53
- ormlambda/databases/my_sql/caster/types/string.py,sha256=uYIfXHLrXhiShd9KRALBc2ULm7d5Y2swuz9lDX3Zucg,890
54
- ormlambda/databases/my_sql/clauses/ST_AsText.py,sha256=Fx-CgQ01aSkcuSlcdmLIWb7f3kd7r6kWs_BGu1HOVx8,1165
55
- ormlambda/databases/my_sql/clauses/ST_Contains.py,sha256=K9cZwQaQQCgZTQdnAokln5lVSyV99CkeRnmOd2RIots,968
56
- ormlambda/databases/my_sql/clauses/__init__.py,sha256=H1DDCYiqAhrxXgovUaju5tsgLv8kU6y8Lh6vZO9uHTM,863
57
- ormlambda/databases/my_sql/clauses/alias.py,sha256=Xo0zQwyza3SMMRPIlBJWDQAJdW3bHjrC_UDps26P-QU,989
58
- ormlambda/databases/my_sql/clauses/count.py,sha256=rh7KNzpxkKEZpqmFV0oc8xHVgOHVGTGHrPGmCF-eLB4,1384
59
- ormlambda/databases/my_sql/clauses/create_database.py,sha256=zpd8uosxKJsf9BULvAHSd1-fU5de8OI7WRqVa8oyiA4,1209
60
- ormlambda/databases/my_sql/clauses/delete.py,sha256=jJd6kIDepBJmf5f6CRxHjt-jGePG6iZXbgCDU_rQ-xk,1856
61
- ormlambda/databases/my_sql/clauses/drop_database.py,sha256=2GYhtWzHSWM7Yy3v_l2hiY4fFumG8DSCGGLgP0t3Rhk,437
62
- ormlambda/databases/my_sql/clauses/drop_table.py,sha256=vPEE7N7z-N0vfVp0t-Qee1TBdZ9Fkvp_rvPP8LAcvdc,673
63
- ormlambda/databases/my_sql/clauses/group_by.py,sha256=982UhiUzTHe_tocOXFx3d4SoOYzBN4-V9vgz1rbaBnA,780
64
- ormlambda/databases/my_sql/clauses/having.py,sha256=yfRJP3Zw4JEdQPkJtqQ4cZwxcUJTBLlb4e7nTRMaUSk,400
65
- ormlambda/databases/my_sql/clauses/insert.py,sha256=xR9IRiJeTIw-65MhnbK_uemMdvIEAaqFPg4IFBtC9Yk,3691
66
- ormlambda/databases/my_sql/clauses/joins.py,sha256=PEq7_qxgjJK5R_m8WkqJWppEc-bQFIbAb88qn81uGOg,5170
67
- ormlambda/databases/my_sql/clauses/limit.py,sha256=32Fii_WHjrX7K5B7H5uWlzYM6KBMFsE-Uz-70CEvTok,386
68
- ormlambda/databases/my_sql/clauses/offset.py,sha256=PKieZvCYLSSza-Nhcam5DJEYv--jBU8RHwju3P_f9Kk,390
69
- ormlambda/databases/my_sql/clauses/order.py,sha256=n4vrssvUH9e8vlDHvML6Bclw6KHurkWePQ_WZavVxRE,2316
70
- ormlambda/databases/my_sql/clauses/select.py,sha256=sxlOGisdEkbjBQtFkUv3YG1jCDyu6rpWWHvmj_Jef5E,1870
71
- ormlambda/databases/my_sql/clauses/update.py,sha256=GAXqEPEnUUO-M1zlaTU1Esso0s6lL7nmZWSEErZK2iE,2940
72
- ormlambda/databases/my_sql/clauses/upsert.py,sha256=ULtN81n3dy6GfD0kenq5gu-c6IdscbLeWHk35vo0EqU,2058
73
- ormlambda/databases/my_sql/clauses/where.py,sha256=IIyXt98S_ExpC0IHqEO2OL1j-VK9An3Kkbsd2t-2OQU,1694
74
- ormlambda/databases/my_sql/functions/__init__.py,sha256=hA8t3mUpV2p-pO4TVp5rjC5Yp7aIkWPsS8NpLi3DUh0,171
75
- ormlambda/databases/my_sql/functions/concat.py,sha256=jGUQEj28Gh89ilwJqwFpP5mXyw9tvZ4iC2DrvS4X25M,1346
76
- ormlambda/databases/my_sql/functions/max.py,sha256=AjROl4V9RYPMQoo0TomoTB8fRiMyN5-n6hTGRT_G-pY,1461
77
- ormlambda/databases/my_sql/functions/min.py,sha256=9g8twv0wUfpxrRK2socnfkJtmd_78pU6HDk_4AiV03c,1487
78
- ormlambda/databases/my_sql/functions/sum.py,sha256=PUItqZ4ZbBcOfPzGbYDVvhVKV1RxLMuI63xNbSD8KrA,1487
79
- ormlambda/databases/my_sql/query_builder.py,sha256=GnOmuH-oOnMf_LP7Aw44fQDnJ51Z1w_OAeJC3MN7byM,5278
80
- ormlambda/databases/my_sql/repository/__init__.py,sha256=_T7m-UpgJlx7eYdjBw8jdSVFGnjFYAcbp45g4EM7YEk,54
81
- ormlambda/databases/my_sql/repository/repository.py,sha256=DXxY1I4NMA7zshWpzSc6TKf3RlNsOfdk_DDjCF7PoxQ,12149
82
- ormlambda/databases/my_sql/statements.py,sha256=gvCV9WQc1IsRN4o7ctQcmEAfOZY8KyBIOMTFnPu3qyw,12576
83
- ormlambda/databases/my_sql/types.py,sha256=6c7LMS1VGR8ko1LB1T8DQzn1l10Mzk8PfIeYEOb9w30,1839
84
- ormlambda/engine/__init__.py,sha256=Nubog0bQrWZHPsl7g-l3nlFN8be_aHMrQEYfE2RVme8,93
85
- ormlambda/engine/create.py,sha256=HwtLi9T_Z7mnZIPfSmutRPT7SlIDFfs82oJuVe-pObo,955
86
- ormlambda/engine/template.py,sha256=colmdl-IBSGc1eIqIYShsVkseQwF5_gwwc6Pt8ndN24,1350
87
- ormlambda/engine/url.py,sha256=qSsFGqZcCzJm8XO4qvjlZQ2qLPiyJvp1WI4GpL43Ftc,25404
88
- ormlambda/engine/utils.py,sha256=fFoiKsiFuLcjcBVYNebVoYnMrEj3aZdoxEVSNfCY-GM,522
89
- ormlambda/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
- ormlambda/model/base_model.py,sha256=S_PYs5ZO-LTgiJSyAmGUtXwFKLb9VnM2Rqlq4pdhppY,1021
91
- ormlambda/repository/__init__.py,sha256=4KAhKn6vWV7bslewvGMNqbbbUnz1DLnH4yy-M5QNAQA,112
92
- ormlambda/repository/base_repository.py,sha256=5PeMcBMFGmdTlob-M2_iX1PJ1sNZa3mimx9fWgOuiTM,422
93
- ormlambda/repository/interfaces/IDatabaseConnection.py,sha256=pxczjx0b53yjjg5hvVDloMgUTFDahVC3HlJLQjo9_1w,283
94
- ormlambda/repository/interfaces/IRepositoryBase.py,sha256=24AFQ9ZBnFBQtdt3nkyFXkUbEzEsD2P7OS0FnFECJB8,1206
95
- ormlambda/repository/interfaces/__init__.py,sha256=t8Mn0aRZm8uF4MGaqjEANTTADCdOwNF0THZ_qebyzwo,126
96
- ormlambda/sql/__init__.py,sha256=0CWQzfxhTRWXozoRsg460o_ZwjW9w4uyL5jQUcD4eHg,121
97
- ormlambda/sql/clause_info/__init__.py,sha256=wOr8M0ZW7fJ-OGHok9eExh7fVP6kiwqGckEsKdE0U7A,255
98
- ormlambda/sql/clause_info/aggregate_function_base.py,sha256=X-JFl_2TUU_NH0pnrYxo7nIE5gtQlwSTw4lnNBmioUc,3157
99
- ormlambda/sql/clause_info/clause_info.py,sha256=M3toTYXQg7XaNHmRUEwaHit4XaNM9Sck2h6ZX1NIOnE,12136
100
- ormlambda/sql/clause_info/clause_info_context.py,sha256=Y32p3x4mqcdNHbAowrKaN_ldnGn7zvaP1UdAkWWryhM,2852
101
- ormlambda/sql/clause_info/interface/IAggregate.py,sha256=P-QPaTMAMHVR5M9-ClmL8wsj0uNGG5xpxjuAwWnzKxA,216
102
- ormlambda/sql/clause_info/interface/IClauseInfo.py,sha256=Gnr6vArgimCt0oJqW-_q2_5jMi8EDBW1wZ8rEF2uzTk,921
103
- ormlambda/sql/clause_info/interface/__init__.py,sha256=bTNYVMPuJebEvQpPa5LBQaAesGnfljQ8BKsj1UxN09k,100
104
- ormlambda/sql/column.py,sha256=NRGfwmRg3-AMHZk0kz9UzOi9GzDp43A5kgYliqrNSPE,6085
105
- ormlambda/sql/comparer.py,sha256=XTi4QT2ICtssCPsF8yrMwLDswnu7lF3MO217hAAY0t8,5334
106
- ormlambda/sql/dtypes.py,sha256=Ji4QOyKD0n9bKe7yXIIduy9uEX5BaXolQSIsx0NXYJY,7843
107
- ormlambda/sql/foreign_key.py,sha256=lz5TiHmPFKdfL7ESwUt_MnUy2XYUTiOUiQtammoQTwQ,5530
108
- ormlambda/sql/interfaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
- ormlambda/sql/table/__init__.py,sha256=nAHXi63eDJeGGCf4f0A7W6x4Rh3FJ2dpfzxPEN6r3bc,62
110
- ormlambda/sql/table/fields.py,sha256=ovNR3bJ473aKW-2NhbKr0iJlVpgW06jurHLob2IyZU8,2116
111
- ormlambda/sql/table/table_constructor.py,sha256=_sc1WnhnjchvIzxQZ85qZJFGZExlmhgKBoeWA-tk1eU,8642
112
- ormlambda/sql/types.py,sha256=z5FME0m9j7zSKlxS21cZxHRg0pyTfiJbq7VWZ6IT0kM,832
113
- ormlambda/statements/__init__.py,sha256=mFER-VoLf5L2BjdQhWMw6rVQi8kpr-qZzi1ZSWRPIIU,99
114
- ormlambda/statements/base_statement.py,sha256=5Z5mnna2h2U165IaHxikq9AEOPfc1Nm5Ca2GXzLqk68,5798
115
- ormlambda/statements/interfaces/IStatements.py,sha256=bmvAFAWOUQiBaesfI_VASNjy07zJwH8O489Qz-F0RzU,12762
116
- ormlambda/statements/interfaces/__init__.py,sha256=a3RyTNVA7DwWMqvVi7gFYP4MArdU-RUYixJcxfc79HY,76
117
- ormlambda/statements/types.py,sha256=0AYnj6WCQcS-4fhsaK_yu2zQR3guPhPluq_sZxH1UhQ,1938
118
- ormlambda/utils/__init__.py,sha256=SEgDWkwbSrYRv0If92Ewq53DKnxxv5HqEAQbETd1C6Q,50
119
- ormlambda/utils/module_tree/__init__.py,sha256=LNQtqkwO1ul49Th3aHAIiyt0Wt899GmXCc44Uz1eDyY,53
120
- ormlambda/utils/module_tree/dfs_traversal.py,sha256=lSF03G63XtJFLp03ueAmsHMBvhUkjptDbK3IugXm8iU,1425
121
- ormlambda/utils/module_tree/dynamic_module.py,sha256=vJOqvm5-WKksudXBK1IcTn4WsuLxt1qXNISq-_21sy4,8705
122
- ormlambda-3.12.2.dist-info/LICENSE,sha256=xBprFw8GJLdHMOoUqDk0427EvjIcbEREvXXVFULuuXU,1080
123
- ormlambda-3.12.2.dist-info/METADATA,sha256=IKyumD6YF1P4XuLEszrny77R6H6Hp21SxI_xtC9fQBU,13377
124
- ormlambda-3.12.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
125
- ormlambda-3.12.2.dist-info/RECORD,,
File without changes
File without changes
File without changes