piccolo 1.24.0__tar.gz → 1.24.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.
- {piccolo-1.24.0 → piccolo-1.24.2}/PKG-INFO +3 -2
- piccolo-1.24.2/piccolo/__init__.py +1 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/combination.py +5 -5
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/timestamp.py +5 -1
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/timestamptz.py +3 -1
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/delete.py +1 -1
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/update.py +1 -1
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo.egg-info/PKG-INFO +3 -2
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_defaults.py +34 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_delete.py +15 -0
- piccolo-1.24.0/piccolo/__init__.py +0 -1
- {piccolo-1.24.0 → piccolo-1.24.2}/LICENSE +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/README.md +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/app/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/app/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/app/commands/new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/app/commands/show_all.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/app/commands/templates/piccolo_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/app/commands/templates/tables.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/app/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/README.md.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_blacksheep_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_esmerald_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_falcon_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_fastapi_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_lilya_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_litestar_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_quart_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_sanic_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_starlette_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/conftest.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/__init__.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_blacksheep_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_esmerald_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_falcon_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_lilya_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_litestar_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_quart_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_sanic_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/_starlette_endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/endpoints.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/piccolo_app.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/piccolo_migrations/README.md +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/tables.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/templates/base.html.jinja_raw +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/templates/home.html.jinja_raw +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/main.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/piccolo_conf.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/piccolo_conf_test.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/requirements.txt.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/static/favicon.ico +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/static/main.css +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/fixtures/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/fixtures/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/fixtures/commands/dump.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/fixtures/commands/load.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/fixtures/commands/shared.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/fixtures/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/meta/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/meta/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/meta/commands/version.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/meta/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/diffable_table.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/migration_manager.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/operations.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/schema_differ.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/schema_snapshot.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/serialisation.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/auto/serialisation_legacy.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/backwards.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/check.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/clean.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/forwards.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/templates/migration.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/tables.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/playground/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/playground/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/playground/commands/run.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/playground/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/project/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/project/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/project/commands/new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/project/commands/templates/piccolo_conf.py.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/project/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/schema/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/schema/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/schema/commands/exceptions.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/schema/commands/generate.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/schema/commands/graph.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/schema/commands/templates/graphviz.dot.jinja +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/schema/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/shell/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/shell/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/shell/commands/run.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/shell/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/sql_shell/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/sql_shell/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/sql_shell/commands/run.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/sql_shell/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/tester/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/tester/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/tester/commands/run.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/tester/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/commands/change_password.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/commands/change_permissions.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/commands/create.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/commands/list.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_migrations/2019-11-14T21-52-21.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_migrations/2020-06-11T21-38-55.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_migrations/2021-04-30T16-14-15.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_migrations/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/tables.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/choices.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/column_types.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/date.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/interval.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/time.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/defaults/uuid.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/indexes.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/m2m.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/operators/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/operators/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/operators/comparison.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/operators/math.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/operators/string.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/readable.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/columns/reference.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/conf/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/conf/apps.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/custom_types.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/engine/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/engine/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/engine/cockroach.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/engine/exceptions.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/engine/finder.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/engine/postgres.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/engine/sqlite.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/main.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/py.typed +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/functions/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/functions/aggregate.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/functions/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/functions/datetime.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/functions/math.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/functions/string.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/functions/type_conversion.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/alter.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/count.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/create.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/create_index.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/drop_index.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/exists.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/indexes.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/insert.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/objects.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/raw.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/refresh.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/select.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/methods/table_exists.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/mixins.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/operators/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/operators/json.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/query/proxy.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/querystring.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/schema.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/table.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/table_reflection.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/testing/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/testing/model_builder.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/testing/random_builder.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/testing/test_case.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/dictionary.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/encoding.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/graphlib/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/graphlib/_graphlib.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/lazy_loader.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/list.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/naming.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/objects.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/printing.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/pydantic.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/repr.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/sql_values.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/sync.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo/utils/warnings.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo.egg-info/SOURCES.txt +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo.egg-info/dependency_links.txt +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo.egg-info/entry_points.txt +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo.egg-info/requires.txt +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/piccolo.egg-info/top_level.txt +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/profiling/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/profiling/run_profile.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/pyproject.toml +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/setup.cfg +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/setup.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/app/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/app/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/app/commands/test_new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/app/commands/test_show_all.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/asgi/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/asgi/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/asgi/commands/test_new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/fixtures/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/fixtures/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/fixtures/commands/test_dump_load.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/fixtures/commands/test_shared.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/meta/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/meta/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/meta/commands/test_version.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/integration/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/integration/test_migrations.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/test_diffable_table.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/test_migration_manager.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/test_schema_differ.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/test_schema_snapshot.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/auto/test_serialisation.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/test_base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/test_check.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/test_clean.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/test_forwards_backwards.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/test_migrations/2020-03-31T20-38-22.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/test_migrations/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/commands/test_new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/migrations/test_migration.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/project/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/project/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/project/commands/test_new.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/schema/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/shell/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/shell/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/shell/commands/test_run.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/sql_shell/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/sql_shell/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/sql_shell/commands/test_run.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/tester/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/user/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/user/commands/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/user/commands/test_change_password.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/user/commands/test_change_permissions.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/user/commands/test_create.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/user/commands/test_list.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/apps/user/test_tables.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/m2m/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/m2m/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/m2m/test_m2m.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/m2m/test_m2m_schema.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_array.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_bigint.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_boolean.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_bytea.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_choices.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_combination.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_date.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_db_column_name.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_double_precision.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_get_sql_value.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_integer.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_interval.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_json.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_jsonb.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_numeric.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_primary_key.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_readable.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_real.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_reference.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_reserved_column_names.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_smallint.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_time.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_timestamp.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_timestamptz.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_uuid.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/columns/test_varchar.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/conf/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/conf/example.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/conf/test_apps.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/engine/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/engine/test_extra_nodes.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/engine/test_logging.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/engine/test_nested_transaction.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/engine/test_pool.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/engine/test_transaction.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/engine/test_version_parsing.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/mega/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/mega/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/mega/piccolo_migrations/2021-09-20T21-23-25-698988.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/mega/piccolo_migrations/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/mega/tables.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/music/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/music/piccolo_app.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/music/tables.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/example_apps/music/tables_detailed.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/functions/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/functions/base.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/functions/test_datetime.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/functions/test_functions.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/functions/test_math.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/functions/test_string.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/functions/test_type_conversion.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/mixins/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/mixins/test_columns_delegate.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/mixins/test_order_by_delegate.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/operators/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/operators/test_json.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/test_await.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/test_camelcase.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/test_freeze.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/test_gather.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/test_querystring.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/query/test_slots.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/test_create.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/test_get_related.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/test_get_related_readable.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/test_instantiate.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/test_remove.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/test_save.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/instance/test_to_dict.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_all_columns.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_alter.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_batch.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_callback.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_constructor.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_count.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_create.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_create_db_tables.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_create_table_class.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_drop_db_tables.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_exists.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_from_dict.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_indexes.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_inheritance.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_insert.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_join.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_join_on.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_metaclass.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_objects.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_output.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_raw.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_ref.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_refresh.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_repr.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_select.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_str.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_table_exists.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_update.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/table/test_update_self.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/test_main.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/test_schema.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/testing/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/testing/test_model_builder.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/testing/test_random_builder.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/testing/test_test_case.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/__init__.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_dictionary.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_encoding.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_lazy_loader.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_list.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_naming.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_printing.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_pydantic.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_sql_values.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_sync.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_table_reflection.py +0 -0
- {piccolo-1.24.0 → piccolo-1.24.2}/tests/utils/test_warnings.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: piccolo
|
3
|
-
Version: 1.24.
|
3
|
+
Version: 1.24.2
|
4
4
|
Summary: A fast, user friendly ORM and query builder which supports asyncio.
|
5
5
|
Home-page: https://github.com/piccolo-orm/piccolo
|
6
6
|
Author: Daniel Townsend
|
@@ -54,6 +54,7 @@ Dynamic: description
|
|
54
54
|
Dynamic: description-content-type
|
55
55
|
Dynamic: home-page
|
56
56
|
Dynamic: license
|
57
|
+
Dynamic: license-file
|
57
58
|
Dynamic: project-url
|
58
59
|
Dynamic: provides-extra
|
59
60
|
Dynamic: requires-dist
|
@@ -0,0 +1 @@
|
|
1
|
+
__VERSION__ = "1.24.2"
|
@@ -45,11 +45,11 @@ class Combination(CombinableMixin):
|
|
45
45
|
)
|
46
46
|
|
47
47
|
@property
|
48
|
-
def
|
48
|
+
def querystring_for_update_and_delete(self) -> QueryString:
|
49
49
|
return QueryString(
|
50
50
|
"({} " + self.operator + " {})",
|
51
|
-
self.first.
|
52
|
-
self.second.
|
51
|
+
self.first.querystring_for_update_and_delete,
|
52
|
+
self.second.querystring_for_update_and_delete,
|
53
53
|
)
|
54
54
|
|
55
55
|
def __str__(self):
|
@@ -131,7 +131,7 @@ class WhereRaw(CombinableMixin):
|
|
131
131
|
self.querystring = QueryString(sql, *args)
|
132
132
|
|
133
133
|
@property
|
134
|
-
def
|
134
|
+
def querystring_for_update_and_delete(self) -> QueryString:
|
135
135
|
return self.querystring
|
136
136
|
|
137
137
|
def __str__(self):
|
@@ -218,7 +218,7 @@ class Where(CombinableMixin):
|
|
218
218
|
return QueryString(template, *args)
|
219
219
|
|
220
220
|
@property
|
221
|
-
def
|
221
|
+
def querystring_for_update_and_delete(self) -> QueryString:
|
222
222
|
args: t.List[t.Any] = []
|
223
223
|
if self.value != UNDEFINED:
|
224
224
|
args.append(self.value)
|
@@ -70,6 +70,7 @@ class TimestampCustom(Default):
|
|
70
70
|
month: int = 1,
|
71
71
|
day: int = 1,
|
72
72
|
hour: int = 0,
|
73
|
+
minute: int = 0,
|
73
74
|
second: int = 0,
|
74
75
|
microsecond: int = 0,
|
75
76
|
):
|
@@ -77,6 +78,7 @@ class TimestampCustom(Default):
|
|
77
78
|
self.month = month
|
78
79
|
self.day = day
|
79
80
|
self.hour = hour
|
81
|
+
self.minute = minute
|
80
82
|
self.second = second
|
81
83
|
self.microsecond = microsecond
|
82
84
|
|
@@ -87,6 +89,7 @@ class TimestampCustom(Default):
|
|
87
89
|
month=self.month,
|
88
90
|
day=self.day,
|
89
91
|
hour=self.hour,
|
92
|
+
minute=self.minute,
|
90
93
|
second=self.second,
|
91
94
|
microsecond=self.microsecond,
|
92
95
|
)
|
@@ -113,8 +116,9 @@ class TimestampCustom(Default):
|
|
113
116
|
return cls(
|
114
117
|
year=instance.year,
|
115
118
|
month=instance.month,
|
116
|
-
day=instance.
|
119
|
+
day=instance.day,
|
117
120
|
hour=instance.hour,
|
121
|
+
minute=instance.minute,
|
118
122
|
second=instance.second,
|
119
123
|
microsecond=instance.microsecond,
|
120
124
|
)
|
@@ -47,6 +47,7 @@ class TimestamptzCustom(TimestampCustom):
|
|
47
47
|
month=self.month,
|
48
48
|
day=self.day,
|
49
49
|
hour=self.hour,
|
50
|
+
minute=self.minute,
|
50
51
|
second=self.second,
|
51
52
|
microsecond=self.microsecond,
|
52
53
|
tzinfo=datetime.timezone.utc,
|
@@ -59,8 +60,9 @@ class TimestamptzCustom(TimestampCustom):
|
|
59
60
|
return cls(
|
60
61
|
year=instance.year,
|
61
62
|
month=instance.month,
|
62
|
-
day=instance.
|
63
|
+
day=instance.day,
|
63
64
|
hour=instance.hour,
|
65
|
+
minute=instance.minute,
|
64
66
|
second=instance.second,
|
65
67
|
microsecond=instance.microsecond,
|
66
68
|
)
|
@@ -104,7 +104,7 @@ class Update(Query[TableInstance, t.List[t.Any]]):
|
|
104
104
|
querystring = QueryString(
|
105
105
|
"{} WHERE {}",
|
106
106
|
querystring,
|
107
|
-
self.where_delegate._where.
|
107
|
+
self.where_delegate._where.querystring_for_update_and_delete,
|
108
108
|
)
|
109
109
|
|
110
110
|
if self.returning_delegate._returning:
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: piccolo
|
3
|
-
Version: 1.24.
|
3
|
+
Version: 1.24.2
|
4
4
|
Summary: A fast, user friendly ORM and query builder which supports asyncio.
|
5
5
|
Home-page: https://github.com/piccolo-orm/piccolo
|
6
6
|
Author: Daniel Townsend
|
@@ -54,6 +54,7 @@ Dynamic: description
|
|
54
54
|
Dynamic: description-content-type
|
55
55
|
Dynamic: home-page
|
56
56
|
Dynamic: license
|
57
|
+
Dynamic: license-file
|
57
58
|
Dynamic: project-url
|
58
59
|
Dynamic: provides-extra
|
59
60
|
Dynamic: requires-dist
|
@@ -22,6 +22,8 @@ from piccolo.columns.column_types import (
|
|
22
22
|
TimestampNow,
|
23
23
|
Varchar,
|
24
24
|
)
|
25
|
+
from piccolo.columns.defaults.timestamp import TimestampCustom
|
26
|
+
from piccolo.columns.defaults.timestamptz import TimestamptzCustom
|
25
27
|
from piccolo.table import Table
|
26
28
|
|
27
29
|
|
@@ -98,3 +100,35 @@ class TestDefaults(TestCase):
|
|
98
100
|
ForeignKey(references=MyTable, default=1)
|
99
101
|
with self.assertRaises(ValueError):
|
100
102
|
ForeignKey(references=MyTable, default="hello world")
|
103
|
+
|
104
|
+
|
105
|
+
class TestDatetime(TestCase):
|
106
|
+
|
107
|
+
def test_datetime(self):
|
108
|
+
"""
|
109
|
+
Make sure we can create a `TimestampCustom` / `TimestamptzCustom` from
|
110
|
+
a datetime, and then convert it back into the same datetime again.
|
111
|
+
|
112
|
+
https://github.com/piccolo-orm/piccolo/issues/1169
|
113
|
+
|
114
|
+
"""
|
115
|
+
datetime_obj = datetime.datetime(
|
116
|
+
year=2025,
|
117
|
+
month=1,
|
118
|
+
day=30,
|
119
|
+
hour=12,
|
120
|
+
minute=10,
|
121
|
+
second=15,
|
122
|
+
microsecond=100,
|
123
|
+
)
|
124
|
+
|
125
|
+
self.assertEqual(
|
126
|
+
TimestampCustom.from_datetime(datetime_obj).datetime,
|
127
|
+
datetime_obj,
|
128
|
+
)
|
129
|
+
|
130
|
+
datetime_obj = datetime_obj.astimezone(tz=datetime.timezone.utc)
|
131
|
+
self.assertEqual(
|
132
|
+
TimestamptzCustom.from_datetime(datetime_obj).datetime,
|
133
|
+
datetime_obj,
|
134
|
+
)
|
@@ -44,3 +44,18 @@ class TestDelete(DBTestCase):
|
|
44
44
|
Band.delete().run_sync()
|
45
45
|
|
46
46
|
Band.delete(force=True).run_sync()
|
47
|
+
|
48
|
+
def test_delete_with_joins(self):
|
49
|
+
"""
|
50
|
+
Make sure delete works if the `where` clause specifies joins.
|
51
|
+
"""
|
52
|
+
|
53
|
+
self.insert_rows()
|
54
|
+
|
55
|
+
Band.delete().where(Band.manager._.name == "Guido").run_sync()
|
56
|
+
|
57
|
+
response = (
|
58
|
+
Band.count().where(Band.manager._.name == "Guido").run_sync()
|
59
|
+
)
|
60
|
+
|
61
|
+
self.assertEqual(response, 0)
|
@@ -1 +0,0 @@
|
|
1
|
-
__VERSION__ = "1.24.0"
|
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
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_blacksheep_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_esmerald_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_falcon_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_fastapi_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_lilya_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_litestar_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_quart_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_sanic_app.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/_starlette_app.py.jinja
RENAMED
File without changes
|
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/conftest.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/__init__.py.jinja
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
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/endpoints.py.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/piccolo_app.py.jinja
RENAMED
File without changes
|
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/home/tables.py.jinja
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/piccolo_conf.py.jinja
RENAMED
File without changes
|
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/requirements.txt.jinja
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/asgi/commands/templates/app/static/favicon.ico
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/migrations/commands/templates/migration.py.jinja
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
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/project/commands/templates/piccolo_conf.py.jinja
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
|
File without changes
|
File without changes
|
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_migrations/2019-11-14T21-52-21.py
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_migrations/2020-06-11T21-38-55.py
RENAMED
File without changes
|
{piccolo-1.24.0 → piccolo-1.24.2}/piccolo/apps/user/piccolo_migrations/2021-04-30T16-14-15.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
|
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
|