coloco 0.4.3__tar.gz → 0.4.4__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.
- {coloco-0.4.3 → coloco-0.4.4}/PKG-INFO +1 -1
- {coloco-0.4.3 → coloco-0.4.4}/pyproject.toml +1 -1
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/db.py +2 -1
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/db.py +2 -0
- {coloco-0.4.3 → coloco-0.4.4}/LICENSE +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/README.md +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/__init__.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/__main__.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/api.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/app.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/api.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/build.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/createapp.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/dev.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/node.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/package.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/serve.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/codegen.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/config.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/dependencies.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/exceptions.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/lifespan.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/static.py +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/docker/.dockerignore-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/docker/Dockerfile-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/docker/docker-compose.yml-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/404.svelte-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/app.css-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/app.svelte-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/index.html-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/index.svelte-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/main.ts-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/openapi-ts.config.ts-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/package.json-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/svelte.config.js-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/tsconfig.json-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/vite-env.d.ts-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/vite.config.ts-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/.gitignore-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/README.md-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/example/api.py-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/example/index.svelte-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/main.py-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/pyproject.toml-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/tsconfig.json-tpl +0 -0
- {coloco-0.4.3 → coloco-0.4.4}/tests/__init__.py +0 -0
|
@@ -40,7 +40,8 @@ def db_command(func):
|
|
|
40
40
|
def wrapper(*args, **kwargs):
|
|
41
41
|
tortoise_logger.setLevel(logging.WARNING)
|
|
42
42
|
run(func(*args, **kwargs))
|
|
43
|
-
|
|
43
|
+
# TODO: figure out why the event loop is closed already when using postgres
|
|
44
|
+
# run(Tortoise.close_connections())
|
|
44
45
|
|
|
45
46
|
return app.command(name=func.__name__)(wrapper)
|
|
46
47
|
|
|
@@ -89,6 +89,8 @@ def inject_model_serializers(orm_config: dict, routes: list[ColocoRoute]):
|
|
|
89
89
|
for label, _app in orm_config["apps"].items():
|
|
90
90
|
for model in _app["models"]:
|
|
91
91
|
Tortoise.init_models([model], label, _init_relations=False)
|
|
92
|
+
# Initialize foreign key relations
|
|
93
|
+
Tortoise._init_relations()
|
|
92
94
|
|
|
93
95
|
# Auto-create serializers
|
|
94
96
|
# TODO: configurable
|
|
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
|
|
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
|