velocity-python 0.9.5__tar.gz → 0.9.7__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.
- {velocity_python-0.9.5 → velocity_python-0.9.7}/PKG-INFO +1 -1
- {velocity_python-0.9.5 → velocity_python-0.9.7}/pyproject.toml +1 -1
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/__init__.py +1 -1
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/__init__.py +7 -1
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/data_service.py +153 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/row_scoped.py +13 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/workflow_actions.py +12 -5
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/table.py +45 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/postgres/sql.py +25 -0
- velocity_python-0.9.7/src/velocity/metadata/__init__.py +52 -0
- velocity_python-0.9.7/src/velocity/metadata/declarations.py +325 -0
- velocity_python-0.9.7/src/velocity/metadata/merge.py +252 -0
- velocity_python-0.9.7/src/velocity/metadata/validate.py +81 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/testing/fake_db.py +42 -3
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity_python.egg-info/PKG-INFO +1 -1
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity_python.egg-info/SOURCES.txt +6 -0
- velocity_python-0.9.7/tests/test_data_service_get_metadata.py +385 -0
- velocity_python-0.9.7/tests/test_metadata.py +630 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_actions.py +22 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/LICENSE +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/README.md +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/setup.cfg +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/amplify.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/assets/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/assets/backfill.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/assets/indexing.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/assets/references.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/assets/service.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/assets/usage_index.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/authz.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/blobs.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/base.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/dispatch.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/infra.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/jobs.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/provisioning.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/retention.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/security.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/single_session.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/capabilities/workflow.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/ci_gate.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/config.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/frontend_checks.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/operations.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/policies.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/reconcile.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/deploy/targets.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/dirty_pipeline.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/email.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/facets.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/failures.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/feature_flags.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/base_handler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/context.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/context_factory.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/exceptions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/lambda_handler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/masquerade.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/action_names.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/audit_trail.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/client_errors.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/client_input.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/job_handler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/permissions_actions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/session_control.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/tiles_actions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/web_handler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/perf.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/response.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/sqs_handler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/identity.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/job_lifecycle.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/job_results.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/mirror.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/ops.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/permissions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/queue_defaults.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/s3.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/scheduler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/schema.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/settings.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/sms.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/ssm_config.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_base_handler_error_response.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_deploy_least_privilege.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_deploy_policy_size.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_deploy_reconcile.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_email.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_lambda_handler_json_serialization.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_response.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tests/test_sms.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/tiles.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/user_data.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/validation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/cache.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/_pgddl.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/audit.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/async_support.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/column.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/database.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/decorators.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/jsonproxy.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/lazy_engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/result.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/row.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/sequence.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/transaction.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/core/view.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/effective.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/exceptions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/fragments.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/integrity.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/maintenance.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/migrations.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/base/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/base/initializer.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/base/operators.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/base/sql.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/base/types.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/mysql/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/mysql/operators.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/mysql/reserved.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/mysql/sql.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/mysql/types.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/postgres/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/postgres/operators.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/postgres/reserved.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/postgres/types.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlite/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlite/operators.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlite/reserved.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlite/sql.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlite/types.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlserver/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlserver/operators.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlserver/reserved.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlserver/sql.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/sqlserver/types.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/servers/tablehelper.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/common_db_test.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/common.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/conftest.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_column.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_connections.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_database.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_general_usage.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_imports.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_integrity_triggers.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_result.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_row.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_row_comprehensive.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_schema_locking.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_schema_locking_unit.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_sequence.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_sql_comprehensive.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_table.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_table_comprehensive.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/postgres/test_transaction.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/sql/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/sql/common.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/sql/test_postgres_select_advanced.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/sql/test_postgres_select_variances.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_cursor_rowcount_fix.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_db_utils.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_postgres.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_postgres_unchanged.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_process_error_robustness.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_result_caching.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_result_sql_aware.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_row_get_missing_column.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_schema_locking_initializers.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_schema_locking_simple.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_sql_builder.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_tablehelper.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tests/test_view_helper.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/tunnel.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/db/utils.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/hooks.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/logging.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/conv/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/conv/iconv.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/conv/oconv.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/db.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/export.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/format.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/mail.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/merge.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/pdf.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/qr.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_db.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_fix.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_format.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_iconv.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_mail_send.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_merge.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_oconv.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_original_error.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tests/test_timer.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/timer.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/misc/tools.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/core/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/core/capabilities.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/core/store.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/core/where.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/exceptions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/base/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/cassandra/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/cassandra/translation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/couchbase/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/couchbase/translation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/dynamodb/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/dynamodb/translation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/elasticsearch/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/elasticsearch/translation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/memory/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/mongodb/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/mongodb/translation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/nosql/servers/redis/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/_mirror_core.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/authorizenet_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/authorizenet_mirror.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/base_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/braintree_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/braintree_mirror.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/charge_rules.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/money.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/plaid_api.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/plaid_webhook.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/redact.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/schema.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/stripe_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/payment/stripe_mirror.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/rules/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/rules/engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/rules/expressions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/rules/facts.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/rules/storage.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/testing/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/__init__.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/access.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/contract.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/definitions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/designer.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/hooks.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/notices.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/operator.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/outbox.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/points.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/schema.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/traveler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/workflow/views.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity_python.egg-info/dependency_links.txt +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity_python.egg-info/entry_points.txt +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity_python.egg-info/requires.txt +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity_python.egg-info/top_level.txt +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_access_error_403.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_action_names.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_activity_tracking_aborted_tx.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_amplify_redirects.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_asset_indexing.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_asset_references.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_assets_service.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_async_support.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_audit_log_confidential.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_audit_mixin.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_audit_registry_table_gate.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_authz.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_aws_package_hygiene.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_batch_operations.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_blob_store.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_business_objects.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_capabilities.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_capability_catalog.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_capability_dependencies.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_check_changelog.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_ci_gate.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_client_errors_mixin.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_client_input_contract_export.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_client_sql_boundary.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_client_table_gate_case_and_pointers.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_cognito_client_lazy.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_cognito_user_cache.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_column_tx_arg.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_concurrency_safety.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_connection_pool.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_connection_resilience.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_context_enqueue_idempotency.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_context_flags_loader.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_context_job_descriptions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_context_queue_job.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_conv_combine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_data_service_owner_scope.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_data_service_query_cap.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_data_service_renumber.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_data_service_row_number.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_data_service_save_as.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_data_service_security_gates.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_db_audit_required.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_db_credentials_ssm_cascade.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_db_effective.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_db_integrity.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_db_maintenance.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_db_pgddl_triggers.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_db_tunnel.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_declared_column_types.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_decorators.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_delete_hook_fk_blocked.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_deploy_config_fields.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_deploy_engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_deploy_frontend_checks.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_deploy_operations_queue.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_dirty_pipeline_consumer.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_dirty_pipeline_fast_path.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_dlq_constant.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_docs_snippets.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_email_processing.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_enqueue_metric_namespace.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_enqueue_send_failures.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_ensure_infrastructure.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_export_workbook.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_facets.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_facets_and_where.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_failures.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_feature_flags.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_get_cognito_user_provider.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_hooks.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_http_handler_rollback.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_iconv_money_to_cents.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_identifier_injection_guard.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_identity.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_job_handler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_job_lifecycle.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_job_record_guard.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_job_record_guard_postgres.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_job_results.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_json_columns.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_jsonb_dict_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_lambda_handler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_lambda_handler_auth.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_lambda_handler_masquerade.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_lambda_handler_user_cache.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_lazy_engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_masquerade_grant.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_merge_on_conflict.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_mirror.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_mirror_upsert_public.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_mixins_import.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_n_plus_one.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_nosql_dynamodb.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_nosql_memory.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_nosql_mongodb.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_nosql_redis.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_nosql_translation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_nosql_where.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_observability.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_on_action_default.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_on_commit.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_ops.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_audit_fixes.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_authorizenet_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_braintree_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_braintree_mirror.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_business_agnostic.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_charge_reference.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_extra_bounds.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_lazy_imports.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_mirror_empty_table.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_profile_sorting.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_payment_stripe_adapter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pdf.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_permissions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_permissions_actions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_permissions_notices.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_permissions_review.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_bulk_cache.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_capability_types.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_ensure_infrastructure.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_get_tables.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_permissions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_pointer_joins.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_row_scope.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_search_export.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_settings.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_tiles.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pgserver_user_data.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_plaid_api.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_plaid_webhook.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_pointer_join_sql.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_postgres_initializer_config.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_postgres_py_type.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_prepared_statements.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_psycopg3_upgrade.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_query_cache.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_query_missing_table_unlocked.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_raw_sql_prefix_policy.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_read_cache.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_readme_imports.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_record_event_postgres.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_record_event_transaction.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_response.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_restricted_direct_tables.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_result_returning.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_retry_side_effect_guard.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_return_default_safety.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_row_batch_update.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_row_cache_staleness.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_row_scoped_data_service.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_rules.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_rules_storage.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_s3_bucket_config.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_s3_list_client_files.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_s3_upload.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_scheduler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_schema_lock_config_other_backends.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_schema_migrations.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_search_paging_export.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_security_capability.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_security_events_table_gate.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_security_hardening.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_security_rate_limit_pg.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_server_cursor.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_session_control.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_settings.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_single_autocommit_safety.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_single_session_capability.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_sms_twilio_signature.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_spreadsheet_functions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_sql_statements_as_built.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_sqlite_backend.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_sqs_per_record_transactions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_ssm_config.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_ssm_config_export_path.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_ssm_config_require.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_store_user_data.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_sys_modified_count_postgres_demo.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_table_alter.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_table_claim.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_table_find_cache.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_table_purge.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_testing_fake_db.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_tiles.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_transaction_class_wrapping.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_transaction_commit_and_ownership.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_transaction_edge_cases.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_tx_lifecycle_retry.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_tx_read_cache_and_bulk.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_user_data.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_user_not_provisioned.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_validation_override.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_where_clause_validation.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_contract.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_definitions.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_designer.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_engine.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_features.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_operator.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_postgres.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_projection.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_review.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_traveler.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_workflow_views.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_write_hook_create_flow.py +0 -0
- {velocity_python-0.9.5 → velocity_python-0.9.7}/tests/test_write_hook_empty_strings.py +0 -0
{velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/__init__.py
RENAMED
|
@@ -25,7 +25,12 @@ This package provides mixins for common Lambda handler patterns:
|
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
from .web_handler import WebHandler, ButtonHandler
|
|
28
|
-
from .data_service import
|
|
28
|
+
from .data_service import (
|
|
29
|
+
ALL_TABLES,
|
|
30
|
+
METADATA_ACTIONS,
|
|
31
|
+
VALIDATION_ACTIONS,
|
|
32
|
+
DataServiceMixin,
|
|
33
|
+
)
|
|
29
34
|
from .row_scoped import RowScopedDataService
|
|
30
35
|
from .audit_trail import AuditTrailMixin
|
|
31
36
|
from .job_handler import JobHandler
|
|
@@ -46,6 +51,7 @@ from velocity.aws.scheduler import SchedulerMixin
|
|
|
46
51
|
__all__ = [
|
|
47
52
|
"ALL_TABLES",
|
|
48
53
|
"VALIDATION_ACTIONS",
|
|
54
|
+
"METADATA_ACTIONS",
|
|
49
55
|
"WebHandler",
|
|
50
56
|
"ButtonHandler",
|
|
51
57
|
"DataServiceMixin",
|
{velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/data_service.py
RENAMED
|
@@ -6,6 +6,7 @@ that uses velocity.db for database access.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import base64
|
|
9
|
+
import copy
|
|
9
10
|
import datetime
|
|
10
11
|
import importlib
|
|
11
12
|
import json
|
|
@@ -26,6 +27,8 @@ from velocity.aws.handlers.exceptions import (
|
|
|
26
27
|
ValidationError,
|
|
27
28
|
)
|
|
28
29
|
from velocity.aws.handlers.mixins.client_input import MODES, STRICT, ClientInputGuard
|
|
30
|
+
from velocity import metadata as _metadata
|
|
31
|
+
from velocity.cache import memo as read_cache_memo
|
|
29
32
|
from velocity.db.exceptions import DbDataIntegrityError
|
|
30
33
|
from velocity.db.fragments import Expr, Literal
|
|
31
34
|
from velocity.db.servers.tablehelper import TableHelper
|
|
@@ -492,6 +495,15 @@ ACTION_NOT_AVAILABLE = "This action is not available."
|
|
|
492
495
|
# ``client_actions`` allow-list: ``client_actions = MINE | VALIDATION_ACTIONS``.
|
|
493
496
|
VALIDATION_ACTIONS = frozenset({"validation-overrides"})
|
|
494
497
|
|
|
498
|
+
# The served-metadata action (velocity.metadata), for a ``client_actions``
|
|
499
|
+
# allow-list. It also needs ``metadata_enabled = True`` on the handler.
|
|
500
|
+
METADATA_ACTIONS = frozenset({"get-metadata"})
|
|
501
|
+
|
|
502
|
+
# declarations ship with the code: reread at most this often per container
|
|
503
|
+
METADATA_DECLARATIONS_CACHE_SECONDS = 3600
|
|
504
|
+
# the most table names one get-metadata request may name
|
|
505
|
+
METADATA_MAX_TABLES = 500
|
|
506
|
+
|
|
495
507
|
|
|
496
508
|
class _AllTables:
|
|
497
509
|
"""``direct_allowed_tables = ALL_TABLES``: an explicit opt-in to every
|
|
@@ -780,6 +792,23 @@ class DataServiceMixin:
|
|
|
780
792
|
client_denied_tables = frozenset()
|
|
781
793
|
client_allowed_tables = None
|
|
782
794
|
|
|
795
|
+
# Served metadata (velocity.metadata, ``get-metadata``): OFF unless a
|
|
796
|
+
# handler sets ``metadata_enabled = True``; a ``client_actions``
|
|
797
|
+
# allow-list must also name it (``METADATA_ACTIONS``). Declarations are
|
|
798
|
+
# read from ``metadata_dirs`` (later directories override earlier ones
|
|
799
|
+
# per table); override :meth:`metadata_declarations` to supply them
|
|
800
|
+
# another way. Only tables that pass the client table gate (as read by
|
|
801
|
+
# ``get-tables`` and ``query``) are served.
|
|
802
|
+
metadata_enabled = False
|
|
803
|
+
metadata_dirs = ()
|
|
804
|
+
# A table with no declaration is served from its database columns only
|
|
805
|
+
# when this is True (and it passes every gate below); off by default.
|
|
806
|
+
metadata_undeclared = False
|
|
807
|
+
# ``{table: {column, ...}}`` never served for an undeclared table (the
|
|
808
|
+
# undeclared-table fallback); the user table's compiled permissions
|
|
809
|
+
# column is always hidden.
|
|
810
|
+
metadata_hidden_columns = MappingProxyType({})
|
|
811
|
+
|
|
783
812
|
# The authorization decision point (velocity.aws.authz) at the client
|
|
784
813
|
# table gate. ``"off"`` (default): the gate is as above. ``"log"``: every
|
|
785
814
|
# table is also put to the rules and what they would refuse is logged,
|
|
@@ -2740,6 +2769,130 @@ class DataServiceMixin:
|
|
|
2740
2769
|
tables.add(name)
|
|
2741
2770
|
context.response().set_body({"tables": sorted(tables)})
|
|
2742
2771
|
|
|
2772
|
+
def metadata_declarations(self, tx, context):
|
|
2773
|
+
"""``{table: declaration}`` served by ``get-metadata``: by default
|
|
2774
|
+
``velocity.metadata.load_declarations(*metadata_dirs)``, read once
|
|
2775
|
+
per container (an invalid declaration raises, naming every
|
|
2776
|
+
problem). Each call returns its own copy."""
|
|
2777
|
+
dirs = tuple(str(d) for d in (self.metadata_dirs or ()))
|
|
2778
|
+
if not dirs:
|
|
2779
|
+
return {}
|
|
2780
|
+
return copy.deepcopy(
|
|
2781
|
+
read_cache_memo(
|
|
2782
|
+
("metadata-declarations", dirs),
|
|
2783
|
+
lambda: _metadata.load_declarations(*dirs),
|
|
2784
|
+
METADATA_DECLARATIONS_CACHE_SECONDS,
|
|
2785
|
+
)
|
|
2786
|
+
)
|
|
2787
|
+
|
|
2788
|
+
def _metadata_table_allowed(self, tx, table, context, declared=False):
|
|
2789
|
+
"""The metadata-specific table gate ``get-metadata`` applies after the
|
|
2790
|
+
client table gate (always; the action has no path around it). It
|
|
2791
|
+
stands in for what ``query`` refuses later than the table gate:
|
|
2792
|
+
|
|
2793
|
+
* a table in ``restricted_direct_tables``, or one a tenant or owner
|
|
2794
|
+
scope applies to, is served only when it is declared (a
|
|
2795
|
+
declaration is a deliberate decision to describe it);
|
|
2796
|
+
* whatever ``query``'s tenant/owner resolution refuses
|
|
2797
|
+
(:meth:`_resolve_tenant_scope`: a scope that raises, a session with
|
|
2798
|
+
no tenant value, a non-strict client SQL mode under a scope, a
|
|
2799
|
+
table without the scope column) refuses it here too, declared or
|
|
2800
|
+
not.
|
|
2801
|
+
|
|
2802
|
+
A site whose ``before_query`` hooks (or ``scope_query_params``)
|
|
2803
|
+
refuse tables to some callers must mirror that rule in an override
|
|
2804
|
+
of this method (``return super()._metadata_table_allowed(...) and
|
|
2805
|
+
...``): those hooks run only for a query, never here.
|
|
2806
|
+
``RowScopedDataService`` adds its own row-scope requirement."""
|
|
2807
|
+
try:
|
|
2808
|
+
# the same fail-closed resolution query applies (read-only)
|
|
2809
|
+
scoped = self._resolve_tenant_scope(tx, table, context) is not None
|
|
2810
|
+
except Exception: # noqa: BLE001 — a scope that refuses refuses here
|
|
2811
|
+
return False
|
|
2812
|
+
if declared:
|
|
2813
|
+
return True
|
|
2814
|
+
if table in self.restricted_direct_tables:
|
|
2815
|
+
return False
|
|
2816
|
+
return not scoped
|
|
2817
|
+
|
|
2818
|
+
def _metadata_hidden_columns(self):
|
|
2819
|
+
"""``{table: frozenset(columns)}`` never served for an undeclared
|
|
2820
|
+
table: ``metadata_hidden_columns`` plus the user table's compiled
|
|
2821
|
+
permissions column."""
|
|
2822
|
+
hidden = {
|
|
2823
|
+
str(table): frozenset(columns)
|
|
2824
|
+
for table, columns in (self.metadata_hidden_columns or {}).items()
|
|
2825
|
+
}
|
|
2826
|
+
user_table = getattr(self, "user_table", None)
|
|
2827
|
+
if isinstance(user_table, str) and user_table:
|
|
2828
|
+
hidden[user_table] = hidden.get(user_table, frozenset()) | {
|
|
2829
|
+
_grants.USER_COLUMN
|
|
2830
|
+
}
|
|
2831
|
+
return hidden
|
|
2832
|
+
|
|
2833
|
+
def OnActionGetMetadata(self, tx, context):
|
|
2834
|
+
"""``get-metadata {tables?, hash?}``: the merged metadata
|
|
2835
|
+
(declaration -> database column info -> live overrides) of the
|
|
2836
|
+
tables this caller may read, and its hash.
|
|
2837
|
+
|
|
2838
|
+
Off unless the handler sets ``metadata_enabled`` (an
|
|
2839
|
+
``AccessError`` otherwise). ``tables`` (a list of table names)
|
|
2840
|
+
narrows the answer; without it every declared table is considered.
|
|
2841
|
+
Only declared tables are served unless ``metadata_undeclared`` is
|
|
2842
|
+
set. A table must pass the client table gate (the check
|
|
2843
|
+
``get-tables`` and ``query`` apply) and then
|
|
2844
|
+
:meth:`_metadata_table_allowed`; confidential tables are never
|
|
2845
|
+
served. Any other table is left out silently. A declared table
|
|
2846
|
+
carries only its declared fields (plus read-only ``sys_*`` columns).
|
|
2847
|
+
When ``hash`` equals the hash of what would be served the answer is
|
|
2848
|
+
``{"hash", "unchanged": true}``; otherwise
|
|
2849
|
+
``{"metadata": {table: ...}, "hash"}``. Override problems are
|
|
2850
|
+
logged, never served."""
|
|
2851
|
+
if not self.metadata_enabled:
|
|
2852
|
+
raise AccessError(ACTION_NOT_AVAILABLE)
|
|
2853
|
+
payload = context.payload() or {}
|
|
2854
|
+
requested = payload.get("tables")
|
|
2855
|
+
if requested is not None:
|
|
2856
|
+
if not isinstance(requested, list) or not all(
|
|
2857
|
+
isinstance(name, str) for name in requested
|
|
2858
|
+
):
|
|
2859
|
+
raise BadRequestError("tables: expected a list of table names")
|
|
2860
|
+
if len(requested) > METADATA_MAX_TABLES:
|
|
2861
|
+
raise BadRequestError(
|
|
2862
|
+
f"tables: at most {METADATA_MAX_TABLES} names per request"
|
|
2863
|
+
)
|
|
2864
|
+
known = payload.get("hash")
|
|
2865
|
+
if known is not None and not isinstance(known, str):
|
|
2866
|
+
raise BadRequestError("hash: expected a string")
|
|
2867
|
+
declarations = self.metadata_declarations(tx, context) or {}
|
|
2868
|
+
names = declarations if requested is None else requested
|
|
2869
|
+
tables = []
|
|
2870
|
+
for name in sorted(set(names)):
|
|
2871
|
+
declared = name in declarations
|
|
2872
|
+
if not declared and not self.metadata_undeclared:
|
|
2873
|
+
continue
|
|
2874
|
+
if not self._client_table_allowed(name):
|
|
2875
|
+
continue
|
|
2876
|
+
if authz.is_confidential(name):
|
|
2877
|
+
continue
|
|
2878
|
+
if not self._metadata_table_allowed(tx, name, context, declared=declared):
|
|
2879
|
+
continue
|
|
2880
|
+
tables.append(name)
|
|
2881
|
+
built = _metadata.build_metadata(
|
|
2882
|
+
tx,
|
|
2883
|
+
declarations,
|
|
2884
|
+
tables,
|
|
2885
|
+
hidden_columns=self._metadata_hidden_columns(),
|
|
2886
|
+
)
|
|
2887
|
+
for warning in built["warnings"]:
|
|
2888
|
+
logger.warning("get-metadata: %s", warning)
|
|
2889
|
+
if known is not None and known == built["hash"]:
|
|
2890
|
+
context.response().set_body({"hash": built["hash"], "unchanged": True})
|
|
2891
|
+
return
|
|
2892
|
+
context.response().set_body(
|
|
2893
|
+
{"metadata": built["metadata"], "hash": built["hash"]}
|
|
2894
|
+
)
|
|
2895
|
+
|
|
2743
2896
|
def OnActionUpdateRows(self, tx, context):
|
|
2744
2897
|
"""
|
|
2745
2898
|
Update multiple rows with the same data.
|
{velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/row_scoped.py
RENAMED
|
@@ -277,6 +277,19 @@ class RowScopedDataService(DataServiceMixin):
|
|
|
277
277
|
raise AlertError(f"Record {sys_id} was not found in {table}.")
|
|
278
278
|
return super().delete_hook(tx, table, sys_id, context)
|
|
279
279
|
|
|
280
|
+
def _metadata_table_allowed(self, tx, table, context, declared=False):
|
|
281
|
+
"""``get-metadata`` serves a table only when this caller has a row
|
|
282
|
+
scope for it (or it is a read-only shared table), as ``query``
|
|
283
|
+
would: a table with no scope configured, or a session with no
|
|
284
|
+
owner, is refused."""
|
|
285
|
+
if not super()._metadata_table_allowed(tx, table, context, declared):
|
|
286
|
+
return False
|
|
287
|
+
try:
|
|
288
|
+
self.row_scope(tx, table, context)
|
|
289
|
+
except Exception: # noqa: BLE001 — no scope, no metadata
|
|
290
|
+
return False
|
|
291
|
+
return True
|
|
292
|
+
|
|
280
293
|
def _assert_direct_access_allowed(self, table):
|
|
281
294
|
"""query-direct / update-rows / get-table-schema / renumber-object
|
|
282
295
|
bypass the hooks above: never available on a row-scoped service."""
|
{velocity_python-0.9.5 → velocity_python-0.9.7}/src/velocity/aws/handlers/mixins/workflow_actions.py
RENAMED
|
@@ -1693,6 +1693,15 @@ class WorkflowMixin:
|
|
|
1693
1693
|
self._wf_guarded(tx, context, work)
|
|
1694
1694
|
|
|
1695
1695
|
|
|
1696
|
+
def _respond(context, body):
|
|
1697
|
+
"""Set the body when the context has a response: an SQS record's context
|
|
1698
|
+
has none (``SqsHandler`` builds it with ``response=None``), and the work
|
|
1699
|
+
must still commit."""
|
|
1700
|
+
response = context.response()
|
|
1701
|
+
if response is not None:
|
|
1702
|
+
response.set_body(body)
|
|
1703
|
+
|
|
1704
|
+
|
|
1696
1705
|
class WorkflowQueueMixin:
|
|
1697
1706
|
"""Queue-handler actions: program jobs, the outbox drain, the timers.
|
|
1698
1707
|
Refused over HTTP (queue records and scheduled ticks only)."""
|
|
@@ -1707,13 +1716,13 @@ class WorkflowQueueMixin:
|
|
|
1707
1716
|
tx, payload.get("position"), payload.get("attempt")
|
|
1708
1717
|
)
|
|
1709
1718
|
drained = wf.outbox.drain(tx, context)
|
|
1710
|
-
context
|
|
1719
|
+
_respond(context, {"result": result, "drained": drained})
|
|
1711
1720
|
|
|
1712
1721
|
def OnActionWorkflowDrain(self, tx, context):
|
|
1713
1722
|
from velocity.aws.dirty_pipeline import refuse_http
|
|
1714
1723
|
|
|
1715
1724
|
refuse_http(self, "workflow-drain")
|
|
1716
|
-
context
|
|
1725
|
+
_respond(context, {"drained": _workflow().outbox.drain(tx, context)})
|
|
1717
1726
|
|
|
1718
1727
|
def OnActionWorkflowSweep(self, tx, context):
|
|
1719
1728
|
from velocity.aws.dirty_pipeline import refuse_http
|
|
@@ -1721,9 +1730,7 @@ class WorkflowQueueMixin:
|
|
|
1721
1730
|
refuse_http(self, "workflow-sweep")
|
|
1722
1731
|
wf = _workflow()
|
|
1723
1732
|
swept = wf.engine.sweep(tx)
|
|
1724
|
-
context.
|
|
1725
|
-
{"swept": swept, "drained": wf.outbox.drain(tx, context)}
|
|
1726
|
-
)
|
|
1733
|
+
_respond(context, {"swept": swept, "drained": wf.outbox.drain(tx, context)})
|
|
1727
1734
|
|
|
1728
1735
|
|
|
1729
1736
|
# every client action WorkflowMixin serves: ``client_actions = MINE | WORKFLOW_ACTIONS``
|
|
@@ -783,6 +783,51 @@ class Table:
|
|
|
783
783
|
)
|
|
784
784
|
return load()
|
|
785
785
|
|
|
786
|
+
def column_details(self, **kwds):
|
|
787
|
+
"""The table's columns in ordinal order, one dict each:
|
|
788
|
+
``{"name", "type", "nullable", "max_length"}`` (``type`` is the
|
|
789
|
+
information_schema name such as ``text`` or ``timestamp with time
|
|
790
|
+
zone``; ``nullable`` a bool; ``max_length`` the character limit or
|
|
791
|
+
``None``). An unqualified name is looked up in the connection's
|
|
792
|
+
current schema. ``[]`` for a missing table, or when the server module
|
|
793
|
+
has no ``column_details`` SQL. ``cache_ttl=N`` as in ``sys_columns``.
|
|
794
|
+
Read-only: never creates anything."""
|
|
795
|
+
builder = getattr(self.sql, "column_details", None)
|
|
796
|
+
if builder is None:
|
|
797
|
+
return []
|
|
798
|
+
sql, vals = builder(self.name)
|
|
799
|
+
if kwds.get("sql_only", False):
|
|
800
|
+
return sql, vals
|
|
801
|
+
|
|
802
|
+
def load():
|
|
803
|
+
result = self.tx.execute(sql, vals, cursor=self.cursor())
|
|
804
|
+
out = []
|
|
805
|
+
for name, dtype, nullable, max_length in result.as_tuple():
|
|
806
|
+
out.append(
|
|
807
|
+
{
|
|
808
|
+
"name": name,
|
|
809
|
+
"type": dtype,
|
|
810
|
+
"nullable": str(nullable).upper() in ("YES", "TRUE", "1"),
|
|
811
|
+
"max_length": (
|
|
812
|
+
int(max_length) if max_length is not None else None
|
|
813
|
+
),
|
|
814
|
+
}
|
|
815
|
+
)
|
|
816
|
+
return out
|
|
817
|
+
|
|
818
|
+
cache_ttl = kwds.get("cache_ttl")
|
|
819
|
+
if cache_ttl:
|
|
820
|
+
from velocity.cache import SCHEMA_TAG
|
|
821
|
+
|
|
822
|
+
cached = self.tx.cached_read(
|
|
823
|
+
("column_details", self._cache_scope(), self.name),
|
|
824
|
+
load,
|
|
825
|
+
cache_ttl,
|
|
826
|
+
tables=(self.name, SCHEMA_TAG),
|
|
827
|
+
)
|
|
828
|
+
return [dict(column) for column in cached]
|
|
829
|
+
return load()
|
|
830
|
+
|
|
786
831
|
def columns(self):
|
|
787
832
|
"""
|
|
788
833
|
Returns non-system column names.
|
|
@@ -1888,6 +1888,31 @@ class SQL(BaseSQLDialect):
|
|
|
1888
1888
|
name,
|
|
1889
1889
|
)
|
|
1890
1890
|
|
|
1891
|
+
@classmethod
|
|
1892
|
+
def column_details(cls, name):
|
|
1893
|
+
"""``(column_name, data_type, is_nullable, character_maximum_length)``
|
|
1894
|
+
rows in ordinal order (``Table.column_details``). Names match
|
|
1895
|
+
exactly, as PostgreSQL resolves an unquoted (lower-case) name: a
|
|
1896
|
+
quoted mixed-case table is never matched by its lower-case spelling.
|
|
1897
|
+
An unqualified name is looked up in ``current_schema()`` only, so a
|
|
1898
|
+
same-named table in another schema never adds columns."""
|
|
1899
|
+
if "." in name:
|
|
1900
|
+
where = "table_schema = %s"
|
|
1901
|
+
params = tuple(name.split(".", 1))
|
|
1902
|
+
else:
|
|
1903
|
+
where = "table_schema = current_schema()"
|
|
1904
|
+
params = (name,)
|
|
1905
|
+
return (
|
|
1906
|
+
f"""
|
|
1907
|
+
select column_name, data_type, is_nullable, character_maximum_length
|
|
1908
|
+
from information_schema.columns
|
|
1909
|
+
where {where}
|
|
1910
|
+
and table_name = %s
|
|
1911
|
+
order by ordinal_position
|
|
1912
|
+
""",
|
|
1913
|
+
params,
|
|
1914
|
+
)
|
|
1915
|
+
|
|
1891
1916
|
@classmethod
|
|
1892
1917
|
def column_info(cls, table, name):
|
|
1893
1918
|
params = table.split(".")
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Server-declared table and form metadata.
|
|
2
|
+
|
|
3
|
+
Each table's metadata is declared once as JSON (widgets, labels, options,
|
|
4
|
+
forms, grid settings), merged on the server with the database's column info
|
|
5
|
+
and any live overrides, and served to clients by DataService's opt-in
|
|
6
|
+
``get-metadata`` action. The same declaration checks writes
|
|
7
|
+
(:func:`validate_row`). See ``docs/metadata.md``.
|
|
8
|
+
|
|
9
|
+
Importing this package needs no database driver.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from velocity.metadata.declarations import (
|
|
13
|
+
DeclarationError,
|
|
14
|
+
check_declaration,
|
|
15
|
+
load_declarations,
|
|
16
|
+
template_names,
|
|
17
|
+
)
|
|
18
|
+
from velocity.metadata.merge import (
|
|
19
|
+
OVERRIDABLE,
|
|
20
|
+
OVERRIDES_TABLE,
|
|
21
|
+
SYSTEM_COLUMNS,
|
|
22
|
+
apply_overrides,
|
|
23
|
+
build_metadata,
|
|
24
|
+
column_info,
|
|
25
|
+
default_field,
|
|
26
|
+
default_label,
|
|
27
|
+
default_widget,
|
|
28
|
+
merge_table,
|
|
29
|
+
metadata_hash,
|
|
30
|
+
read_overrides,
|
|
31
|
+
)
|
|
32
|
+
from velocity.metadata.validate import validate_row
|
|
33
|
+
|
|
34
|
+
__all__ = [
|
|
35
|
+
"DeclarationError",
|
|
36
|
+
"OVERRIDABLE",
|
|
37
|
+
"OVERRIDES_TABLE",
|
|
38
|
+
"SYSTEM_COLUMNS",
|
|
39
|
+
"apply_overrides",
|
|
40
|
+
"build_metadata",
|
|
41
|
+
"check_declaration",
|
|
42
|
+
"column_info",
|
|
43
|
+
"default_field",
|
|
44
|
+
"default_label",
|
|
45
|
+
"default_widget",
|
|
46
|
+
"load_declarations",
|
|
47
|
+
"merge_table",
|
|
48
|
+
"metadata_hash",
|
|
49
|
+
"read_overrides",
|
|
50
|
+
"template_names",
|
|
51
|
+
"validate_row",
|
|
52
|
+
]
|