fraiseql-confiture 0.1.0__cp311-cp311-manylinux_2_34_x86_64.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.
Potentially problematic release.
This version of fraiseql-confiture might be problematic. Click here for more details.
- confiture/__init__.py +45 -0
- confiture/_core.cpython-311-x86_64-linux-gnu.so +0 -0
- confiture/cli/__init__.py +0 -0
- confiture/cli/main.py +720 -0
- confiture/config/__init__.py +0 -0
- confiture/config/environment.py +190 -0
- confiture/core/__init__.py +0 -0
- confiture/core/builder.py +336 -0
- confiture/core/connection.py +120 -0
- confiture/core/differ.py +522 -0
- confiture/core/migration_generator.py +298 -0
- confiture/core/migrator.py +369 -0
- confiture/core/schema_to_schema.py +592 -0
- confiture/core/syncer.py +540 -0
- confiture/exceptions.py +141 -0
- confiture/integrations/__init__.py +0 -0
- confiture/models/__init__.py +0 -0
- confiture/models/migration.py +95 -0
- confiture/models/schema.py +203 -0
- fraiseql_confiture-0.1.0.dist-info/METADATA +350 -0
- fraiseql_confiture-0.1.0.dist-info/RECORD +24 -0
- fraiseql_confiture-0.1.0.dist-info/WHEEL +4 -0
- fraiseql_confiture-0.1.0.dist-info/entry_points.txt +2 -0
- fraiseql_confiture-0.1.0.dist-info/licenses/LICENSE +21 -0
confiture/__init__.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Confiture: PostgreSQL migrations, sweetly done 🍓
|
|
2
|
+
|
|
3
|
+
Confiture is a modern PostgreSQL migration tool with a build-from-scratch
|
|
4
|
+
philosophy and 4 migration strategies.
|
|
5
|
+
|
|
6
|
+
Example:
|
|
7
|
+
>>> from confiture import __version__
|
|
8
|
+
>>> print(__version__)
|
|
9
|
+
0.1.0
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from typing import Any
|
|
13
|
+
|
|
14
|
+
__version__ = "0.1.0"
|
|
15
|
+
__author__ = "Lionel Hamayon"
|
|
16
|
+
__email__ = "lionel@fraiseql.com"
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"__version__",
|
|
20
|
+
"__author__",
|
|
21
|
+
"__email__",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
# Lazy imports to avoid errors during development
|
|
25
|
+
# These will be enabled as components are implemented:
|
|
26
|
+
# - SchemaBuilder (Milestone 1.3+)
|
|
27
|
+
# - Migrator (Milestone 1.7+)
|
|
28
|
+
# - Environment (Milestone 1.2+)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def __getattr__(name: str) -> Any:
|
|
32
|
+
"""Lazy import for not-yet-implemented components"""
|
|
33
|
+
if name == "SchemaBuilder":
|
|
34
|
+
from confiture.core.builder import SchemaBuilder
|
|
35
|
+
|
|
36
|
+
return SchemaBuilder
|
|
37
|
+
elif name == "Migrator":
|
|
38
|
+
from confiture.core.migrator import Migrator
|
|
39
|
+
|
|
40
|
+
return Migrator
|
|
41
|
+
elif name == "Environment":
|
|
42
|
+
from confiture.config.environment import Environment
|
|
43
|
+
|
|
44
|
+
return Environment
|
|
45
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
Binary file
|
|
File without changes
|