ormlambda 3.11.1__tar.gz → 3.11.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.
- {ormlambda-3.11.1 → ormlambda-3.11.2}/PKG-INFO +11 -7
- {ormlambda-3.11.1 → ormlambda-3.11.2}/README.md +8 -5
- {ormlambda-3.11.1 → ormlambda-3.11.2}/pyproject.toml +1 -1
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/__init__.py +1 -1
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/caster/caster.py +1 -1
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/delete.py +0 -1
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/statements.py +2 -1
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/engine/__init__.py +1 -1
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/statements/interfaces/IStatements.py +5 -2
- ormlambda-3.11.1/src/ormlambda/databases/my_sql/caster/read.py +0 -39
- ormlambda-3.11.1/src/ormlambda/databases/my_sql/caster/write.py +0 -37
- {ormlambda-3.11.1 → ormlambda-3.11.2}/LICENSE +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/caster/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/caster/base_caster.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/caster/interfaces/ICaster.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/caster/interfaces/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/abstract_classes/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/abstract_classes/decomposition_query.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/abstract_classes/non_query_base.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/abstract_classes/query_base.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/enums/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/enums/condition_types.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/enums/join_type.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/errors/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/global_checker.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/interfaces/ICustomAlias.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/interfaces/IDecompositionQuery.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/interfaces/IJoinSelector.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/interfaces/INonQueryCommand.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/interfaces/IQueryCommand.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/interfaces/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/delete/IDelete.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/delete/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/delete/abstract_delete.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/insert/IInsert.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/insert/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/insert/abstract_insert.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/select/ISelect.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/select/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/update/IUpdate.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/update/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/update/abstract_update.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/upsert/IUpsert.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/upsert/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/components/upsert/abstract_upsert.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/caster.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/bytes.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/datetime.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/float.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/int.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/iterable.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/none.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/point.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/string.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/ST_AsText.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/ST_Contains.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/alias.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/count.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/create_database.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/drop_database.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/drop_table.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/group_by.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/having.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/insert.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/joins.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/limit.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/offset.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/order.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/select.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/update.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/upsert.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/where.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/functions/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/functions/concat.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/functions/max.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/functions/min.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/functions/sum.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/join_context.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/repository/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/repository/repository.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/types.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/engine/create.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/engine/template.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/engine/url.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/engine/utils.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/model/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/model/base_model.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/repository/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/repository/base_repository.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/repository/interfaces/IDatabaseConnection.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/repository/interfaces/IRepositoryBase.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/repository/interfaces/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/clause_info/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/clause_info/clause_info.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/clause_info/clause_info_context.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/clause_info/interface/IAggregate.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/clause_info/interface/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/column.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/comparer.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/dtypes.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/foreign_key.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/interfaces/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/table/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/table/fields.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/table/table_constructor.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/sql/types.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/statements/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/statements/base_statement.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/statements/interfaces/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/statements/types.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/utils/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/utils/module_tree/__init__.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/utils/module_tree/dfs_traversal.py +0 -0
- {ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/utils/module_tree/dynamic_module.py +0 -0
@@ -1,12 +1,13 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: ormlambda
|
3
|
-
Version: 3.11.
|
3
|
+
Version: 3.11.2
|
4
4
|
Summary: ORM designed to interact with the database (currently with MySQL) using lambda functions and nested functions
|
5
5
|
Author: p-hzamora
|
6
6
|
Author-email: p.hzamora@icloud.com
|
7
7
|
Requires-Python: >=3.12,<4.0
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
10
11
|
Requires-Dist: mysql-connector-python (>=9.0.0,<10.0.0)
|
11
12
|
Requires-Dist: shapely (>=2.0.6,<3.0.0)
|
12
13
|
Description-Content-Type: text/markdown
|
@@ -69,10 +70,12 @@ Once the `AddressModel` class is created, we will not only be able to access all
|
|
69
70
|
|
70
71
|
```python
|
71
72
|
from models.address import Address
|
73
|
+
from ormlambda import create_engine, ORM
|
74
|
+
|
75
|
+
db = create_engine('mysql://root:1234@localhost:3306/sakila')
|
72
76
|
|
73
|
-
db = MySQLRepository(**config_dict)
|
74
77
|
|
75
|
-
AddressModel = ORM(Address,db)
|
78
|
+
AddressModel = ORM(Address, db)
|
76
79
|
|
77
80
|
result = AddressModel.where(Address.City.Country.country.regex(r"^[aA]")).select(
|
78
81
|
lambda address: (
|
@@ -360,10 +363,11 @@ class AddressCombine(BaseModel):
|
|
360
363
|
|
361
364
|
model_config: ConfigDict = {"extra": "forbid"}
|
362
365
|
|
363
|
-
|
364
|
-
|
366
|
+
db = create_engine('mysql://root:1234@localhost:3306/sakila')
|
367
|
+
|
365
368
|
select = (
|
366
|
-
|
369
|
+
ORM(Address, db)
|
370
|
+
.order(lambda x: x.City.Country.country, "DESC")
|
367
371
|
.limit(10)
|
368
372
|
.where(Address.City.Country.country == "Spain")
|
369
373
|
.first(
|
@@ -56,10 +56,12 @@ Once the `AddressModel` class is created, we will not only be able to access all
|
|
56
56
|
|
57
57
|
```python
|
58
58
|
from models.address import Address
|
59
|
+
from ormlambda import create_engine, ORM
|
60
|
+
|
61
|
+
db = create_engine('mysql://root:1234@localhost:3306/sakila')
|
59
62
|
|
60
|
-
db = MySQLRepository(**config_dict)
|
61
63
|
|
62
|
-
AddressModel = ORM(Address,db)
|
64
|
+
AddressModel = ORM(Address, db)
|
63
65
|
|
64
66
|
result = AddressModel.where(Address.City.Country.country.regex(r"^[aA]")).select(
|
65
67
|
lambda address: (
|
@@ -347,10 +349,11 @@ class AddressCombine(BaseModel):
|
|
347
349
|
|
348
350
|
model_config: ConfigDict = {"extra": "forbid"}
|
349
351
|
|
350
|
-
|
351
|
-
|
352
|
+
db = create_engine('mysql://root:1234@localhost:3306/sakila')
|
353
|
+
|
352
354
|
select = (
|
353
|
-
|
355
|
+
ORM(Address, db)
|
356
|
+
.order(lambda x: x.City.Country.country, "DESC")
|
354
357
|
.limit(10)
|
355
358
|
.where(Address.City.Country.country == "Spain")
|
356
359
|
.first(
|
@@ -3,7 +3,7 @@ line-length = 320
|
|
3
3
|
|
4
4
|
[tool.poetry]
|
5
5
|
name = "ormlambda"
|
6
|
-
version = "3.11.
|
6
|
+
version = "3.11.2"
|
7
7
|
description = "ORM designed to interact with the database (currently with MySQL) using lambda functions and nested functions"
|
8
8
|
authors = ["p-hzamora <p.hzamora@icloud.com>"]
|
9
9
|
readme = "README.md"
|
@@ -21,4 +21,4 @@ from .model.base_model import (
|
|
21
21
|
ORM as ORM,
|
22
22
|
) # COMMENT: to avoid relative import we need to import BaseModel after import Table,Column, ForeignKey, IRepositoryBase and Disassembler
|
23
23
|
|
24
|
-
from .engine import create_engine, URL
|
24
|
+
from .engine import create_engine, URL, make_url # noqa: F401
|
@@ -6,7 +6,6 @@ if TYPE_CHECKING:
|
|
6
6
|
from ormlambda import Table
|
7
7
|
from ormlambda.repository import IRepositoryBase
|
8
8
|
from ormlambda.components.delete import DeleteQueryBase
|
9
|
-
from mysql.connector import MySQLConnection
|
10
9
|
|
11
10
|
|
12
11
|
class DeleteQuery[T: Table](DeleteQueryBase[T, IRepositoryBase]):
|
@@ -11,6 +11,7 @@ from mysql.connector import MySQLConnection
|
|
11
11
|
|
12
12
|
|
13
13
|
if TYPE_CHECKING:
|
14
|
+
from ormlambda.sql.types import AliasType
|
14
15
|
from ormlambda import Table
|
15
16
|
from ormlambda.statements.types import OrderTypes
|
16
17
|
from ormlambda.sql.types import ColumnType
|
@@ -464,7 +465,7 @@ class MySQLStatements[T: Table, *Ts](BaseStatement[T, MySQLConnection]):
|
|
464
465
|
return self
|
465
466
|
|
466
467
|
@override
|
467
|
-
def alias[TProp](self, column: ColumnType[TProp], alias:
|
468
|
+
def alias[TProp](self, column: ColumnType[TProp], alias: AliasType[ClauseInfo[T]]) -> ClauseInfo[T]:
|
468
469
|
return Alias(
|
469
470
|
table=column.table,
|
470
471
|
column=column,
|
@@ -1,2 +1,2 @@
|
|
1
1
|
from .create import create_engine # noqa: F401
|
2
|
-
from .url import URL # noqa: F401
|
2
|
+
from .url import URL, make_url # noqa: F401
|
@@ -4,7 +4,6 @@ from enum import Enum
|
|
4
4
|
from abc import abstractmethod, ABC
|
5
5
|
|
6
6
|
|
7
|
-
from ormlambda.common.enums import JoinType
|
8
7
|
|
9
8
|
if TYPE_CHECKING:
|
10
9
|
from ormlambda.repository import BaseRepository
|
@@ -12,6 +11,10 @@ if TYPE_CHECKING:
|
|
12
11
|
from ormlambda.sql.clause_info import IAggregate
|
13
12
|
from ormlambda.sql.types import TupleJoinType, ColumnType
|
14
13
|
from ormlambda.databases.my_sql.join_context import JoinContext
|
14
|
+
from ormlambda.common.enums import JoinType
|
15
|
+
from ormlambda.sql.clause_info import ClauseInfo
|
16
|
+
from ormlambda.sql.types import AliasType
|
17
|
+
|
15
18
|
|
16
19
|
from ..types import (
|
17
20
|
OrderTypes,
|
@@ -319,7 +322,7 @@ class IStatements[T: Table](ABC):
|
|
319
322
|
# endregion
|
320
323
|
|
321
324
|
@abstractmethod
|
322
|
-
def alias(self, column:
|
325
|
+
def alias[TProp](self, column: ColumnType[TProp], alias: AliasType[ClauseInfo[T]]) -> ClauseInfo[T]: ...
|
323
326
|
|
324
327
|
|
325
328
|
class IStatements_two_generic[T, TPool](IStatements[T]):
|
@@ -1,39 +0,0 @@
|
|
1
|
-
from datetime import datetime
|
2
|
-
from typing import Optional
|
3
|
-
from shapely import Point
|
4
|
-
from types import NoneType
|
5
|
-
from ormlambda.common.abstract_classes.caster.cast_base import ReadCastBase
|
6
|
-
|
7
|
-
|
8
|
-
from .types.datetime import MySQLReadDatetime
|
9
|
-
from .types.string import MySQLReadString
|
10
|
-
from .types.int import MySQLReadInt
|
11
|
-
from .types.float import MySQLReadFloat
|
12
|
-
from .types.point import MySQLReadPoint
|
13
|
-
from .types.none import MySQLReadNoneType
|
14
|
-
|
15
|
-
|
16
|
-
class MySQLReadCastBase(ReadCastBase):
|
17
|
-
@staticmethod
|
18
|
-
def cast_str(value: str) -> str:
|
19
|
-
return MySQLReadString.cast(value)
|
20
|
-
|
21
|
-
@staticmethod
|
22
|
-
def cast_int(value: str) -> int:
|
23
|
-
return MySQLReadInt.cast(value)
|
24
|
-
|
25
|
-
@staticmethod
|
26
|
-
def cast_float(value: str) -> float:
|
27
|
-
return MySQLReadFloat.cast(value)
|
28
|
-
|
29
|
-
@staticmethod
|
30
|
-
def cast_Point(value: str) -> Point:
|
31
|
-
return MySQLReadPoint.cast(value)
|
32
|
-
|
33
|
-
@staticmethod
|
34
|
-
def cast_NoneType(value: str) -> NoneType:
|
35
|
-
return MySQLReadNoneType.cast(value)
|
36
|
-
|
37
|
-
@staticmethod
|
38
|
-
def cast_datetime(value: str) -> datetime:
|
39
|
-
return MySQLReadDatetime.cast(value)
|
@@ -1,37 +0,0 @@
|
|
1
|
-
from datetime import datetime
|
2
|
-
from shapely import Point
|
3
|
-
from types import NoneType
|
4
|
-
from ormlambda.common.abstract_classes.caster.cast_base import WriteCastBase
|
5
|
-
|
6
|
-
from .types.datetime import MySQLWriteDatetime
|
7
|
-
from .types.string import MySQLWriteString
|
8
|
-
from .types.int import MySQLWriteInt
|
9
|
-
from .types.float import MySQLWriteFloat
|
10
|
-
from .types.point import MySQLWritePoint
|
11
|
-
from .types.none import MySQLWriteNoneType
|
12
|
-
|
13
|
-
|
14
|
-
class MySQLWriteCastBase(WriteCastBase):
|
15
|
-
@staticmethod
|
16
|
-
def cast_str(value: str, insert_data: bool = False) -> str:
|
17
|
-
return MySQLWriteString.cast(value, insert_data)
|
18
|
-
|
19
|
-
@staticmethod
|
20
|
-
def cast_int(value: int, insert_data: bool = False) -> str:
|
21
|
-
return MySQLWriteInt.cast(value, insert_data)
|
22
|
-
|
23
|
-
@staticmethod
|
24
|
-
def cast_float(value: float, insert_data: bool = False) -> str:
|
25
|
-
return MySQLWriteFloat.cast(value, insert_data)
|
26
|
-
|
27
|
-
@staticmethod
|
28
|
-
def cast_Point(value: Point, insert_data: bool = False) -> str:
|
29
|
-
return MySQLWritePoint.cast(value, insert_data)
|
30
|
-
|
31
|
-
@staticmethod
|
32
|
-
def cast_NoneType(value: NoneType, insert_data: bool = False) -> str:
|
33
|
-
return MySQLWriteNoneType.cast(value, insert_data)
|
34
|
-
|
35
|
-
@staticmethod
|
36
|
-
def cast_datetime(value: datetime, insert_data: bool = False) -> str:
|
37
|
-
return MySQLWriteDatetime.cast(value, insert_data)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/abstract_classes/decomposition_query.py
RENAMED
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/abstract_classes/non_query_base.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/common/interfaces/IDecompositionQuery.py
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/__init__.py
RENAMED
File without changes
|
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/datetime.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/caster/types/iterable.py
RENAMED
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
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/create_database.py
RENAMED
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/clauses/drop_database.py
RENAMED
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
|
File without changes
|
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/databases/my_sql/repository/repository.py
RENAMED
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
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/repository/interfaces/IDatabaseConnection.py
RENAMED
File without changes
|
{ormlambda-3.11.1 → ormlambda-3.11.2}/src/ormlambda/repository/interfaces/IRepositoryBase.py
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|