lunarphase-orm 0.1.0__tar.gz → 0.1.1__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.
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/Cargo.lock +1 -1
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/Cargo.toml +1 -1
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/PKG-INFO +2 -1
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/README.md +1 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/__init__.py +3 -1
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/model.py +1 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/relations.py +1 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/query/builder.py +3 -2
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/pyproject.toml +1 -1
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/.github/workflows/ci.yml +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/.github/workflows/pypi-publish.yml +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/.gitignore +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/BENCHMARK.md +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/DOCUMENTATION.md +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/LICENSE +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/ROADMAP.md +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/benchmarks/advanced_scale_benchmark.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/benchmarks/comprehensive_orm_benchmark.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/benchmarks/diagnostic_3way_benchmark.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/cli/main.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/ast.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/fields.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/state.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/core/uow.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/db/engine.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/lunarphase/query/batcher.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/batcher.rs +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/compiler.rs +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/lib.rs +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/migration_diff.rs +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/src/state_tracker.rs +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_benchmarks.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_coverage_boost.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase1_core_ast.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase2_async_drivers.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase3_auto_batching_relations.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase4_dirty_tracking_uow.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_fase5_auto_migrations_cli.py +0 -0
- {lunarphase_orm-0.1.0 → lunarphase_orm-0.1.1}/tests/test_rust_performance.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lunarphase-orm
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Classifier: Programming Language :: Python :: 3
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: Framework :: AsyncIO
|
|
@@ -20,6 +20,7 @@ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
|
20
20
|
|
|
21
21
|
> **Smart Sync. Zero N+1. High-Performance Python & Rust ORM.**
|
|
22
22
|
|
|
23
|
+
[](https://pypi.org/project/lunarphase-orm/)
|
|
23
24
|
[](https://www.python.org/downloads/)
|
|
24
25
|
[](https://www.rust-lang.org/)
|
|
25
26
|
[](LICENSE)
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
> **Smart Sync. Zero N+1. High-Performance Python & Rust ORM.**
|
|
7
7
|
|
|
8
|
+
[](https://pypi.org/project/lunarphase-orm/)
|
|
8
9
|
[](https://www.python.org/downloads/)
|
|
9
10
|
[](https://www.rust-lang.org/)
|
|
10
11
|
[](LICENSE)
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
LunarPhaseORM: Smart, Async-Native, High-Performance Python & Rust Object-Relational Mapper
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
5
7
|
from lunarphase.core.model import Model, ModelBase
|
|
6
8
|
from lunarphase.core.fields import (
|
|
7
9
|
FieldDescriptor,
|
|
@@ -20,7 +22,7 @@ from lunarphase.query.builder import QueryBuilder
|
|
|
20
22
|
from lunarphase.query.batcher import DeferredAutoBatcher
|
|
21
23
|
from lunarphase.migrations.runner import MigrationRunner
|
|
22
24
|
|
|
23
|
-
__version__ = "0.1.
|
|
25
|
+
__version__ = "0.1.1"
|
|
24
26
|
__all__ = [
|
|
25
27
|
"Model",
|
|
26
28
|
"ModelBase",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
from
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from typing import Any, Generic, List, Optional, Tuple, Type, TypeVar, Dict
|
|
2
3
|
import math
|
|
3
4
|
from lunarphase.core.ast import BinaryOp, ColumnRef, Literal
|
|
4
5
|
from lunarphase.db.engine import get_engine
|
|
@@ -11,7 +12,7 @@ except ImportError:
|
|
|
11
12
|
|
|
12
13
|
T = TypeVar("T", bound="Model")
|
|
13
14
|
|
|
14
|
-
class QueryBuilder:
|
|
15
|
+
class QueryBuilder(Generic[T]):
|
|
15
16
|
def __init__(self, model_cls: Type[T]):
|
|
16
17
|
self.model_cls = model_cls
|
|
17
18
|
self.table_name = getattr(model_cls, "__tablename__", model_cls.__name__.lower())
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|