velocity-python 0.12.0__tar.gz → 0.13.0__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.12.0 → velocity_python-0.13.0}/PKG-INFO +1 -1
- {velocity_python-0.12.0 → velocity_python-0.13.0}/pyproject.toml +1 -1
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/__init__.py +1 -1
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/client_input.py +122 -7
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity_python.egg-info/PKG-INFO +1 -1
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity_python.egg-info/SOURCES.txt +2 -0
- velocity_python-0.13.0/tests/test_client_read_canonical_names.py +269 -0
- velocity_python-0.13.0/tests/test_client_write_canonical_keys.py +263 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_security_gates.py +12 -2
- {velocity_python-0.12.0 → velocity_python-0.13.0}/LICENSE +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/README.md +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/setup.cfg +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/amplify.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/analytics.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/assets/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/assets/backfill.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/assets/indexing.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/assets/references.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/assets/service.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/assets/usage_index.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/authz.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/blobs.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/base.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/dispatch.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/health.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/infra.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/jobs.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/provisioning.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/retention.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/runtime.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/security.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/single_session.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/capabilities/workflow.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/ci_gate.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/config.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/frontend_checks.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/operations.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/policies.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/reconcile.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/deploy/targets.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/dirty_pipeline.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/email.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/facets.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/failures.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/feature_flags.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/base_handler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/context.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/context_factory.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/exceptions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/lambda_handler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/masquerade.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/action_names.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/analytics_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/audit_trail.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/client_errors.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/data_service.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/import_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/job_handler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/permissions_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/row_scoped.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/session_control.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/tiles_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/web_handler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/workflow_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/perf.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/request_log.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/response.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/sqs_handler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/identity.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/job_lifecycle.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/job_results.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/mirror.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/ops.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/permissions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/queue_defaults.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/auth_audit.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/continuation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/jobs.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/limits.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/queue.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/queue_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/security_log.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/site_time.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/runtime/tick.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/s3.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/scheduler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/schema.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/settings.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/sms.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/ssm_config.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tenancy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_base_handler_error_response.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_deploy_least_privilege.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_deploy_policy_size.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_deploy_reconcile.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_email.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_lambda_handler_json_serialization.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_response.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tests/test_sms.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/tiles.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/user_data.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/validation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/cache.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/_pgddl.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/audit.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/column.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/database.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/decorators.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/jsonproxy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/lazy_engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/result.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/row.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/sequence.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/source_policy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/table.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/tenant.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/transaction.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/core/view.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/effective.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/exceptions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/fragments.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/integrity.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/cli.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/connect.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/ensure.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/ledger.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/tenants.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/units.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/lane/user_data_fold.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/maintenance.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/migrations.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/base/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/base/initializer.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/base/operators.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/base/sql.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/base/types.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/mysql/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/mysql/operators.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/mysql/reserved.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/mysql/sql.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/mysql/types.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/postgres/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/postgres/operators.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/postgres/reserved.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/postgres/sql.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/postgres/types.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlite/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlite/operators.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlite/reserved.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlite/sql.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlite/types.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlserver/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlserver/operators.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlserver/reserved.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlserver/sql.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/sqlserver/types.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/servers/tablehelper.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/sync.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tenancy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/common_db_test.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/common.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/conftest.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_column.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_connections.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_database.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_general_usage.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_imports.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_integrity_triggers.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_result.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_row.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_row_comprehensive.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_schema_locking.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_schema_locking_unit.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_sequence.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_sql_comprehensive.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_table.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_table_comprehensive.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_tenancy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/postgres/test_transaction.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/sql/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/sql/common.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/sql/test_postgres_select_advanced.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/sql/test_postgres_select_variances.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_cursor_rowcount_fix.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_db_utils.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_postgres.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_postgres_unchanged.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_process_error_robustness.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_result_caching.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_result_sql_aware.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_row_get_missing_column.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_schema_locking_initializers.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_schema_locking_simple.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_sql_builder.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_tablehelper.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tests/test_view_helper.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/tunnel.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/db/utils.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/hooks.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/logging.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/metadata/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/metadata/declarations.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/metadata/merge.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/metadata/validate.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/conv/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/conv/iconv.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/conv/oconv.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/db.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/export.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/format.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/mail.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/merge.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/pdf.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/qr.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/staged_import/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/staged_import/batches.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/staged_import/files.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/staged_import/spec.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_db.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_fix.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_format.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_iconv.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_mail_send.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_merge.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_oconv.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_original_error.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tests/test_timer.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/timer.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/misc/tools.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/core/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/core/capabilities.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/core/store.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/core/where.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/exceptions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/base/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/cassandra/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/cassandra/translation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/couchbase/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/couchbase/translation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/dynamodb/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/dynamodb/translation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/elasticsearch/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/elasticsearch/translation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/memory/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/mongodb/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/mongodb/translation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/nosql/servers/redis/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/_mirror_core.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/authorizenet_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/authorizenet_mirror.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/base_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/braintree_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/braintree_mirror.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/charge_rules.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/money.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/plaid_api.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/plaid_webhook.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/redact.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/schema.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/stripe_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/payment/stripe_mirror.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/rules/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/rules/engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/rules/expressions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/rules/facts.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/rules/storage.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/testing/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/testing/fake_db.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/__init__.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/access.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/contract.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/definitions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/designer.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/hooks.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/notices.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/operator.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/outbox.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/points.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/schema.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/traveler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/workflow/views.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity_python.egg-info/dependency_links.txt +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity_python.egg-info/entry_points.txt +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity_python.egg-info/requires.txt +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity_python.egg-info/top_level.txt +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_access_error_403.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_action_names.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_activity_tracking_aborted_tx.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_amplify_redirects.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_analytics.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_asset_indexing.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_asset_references.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_assets_service.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_audit_log_confidential.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_audit_mixin.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_audit_registry_table_gate.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_audited_tables.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_authz.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_aws_package_hygiene.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_batch_operations.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_blob_store.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_builder_hardening.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_bulk_identifier_guard.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_business_objects.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_capabilities.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_capabilities_runtime.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_capability_catalog.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_capability_dependencies.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_capability_health_runtime.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_check_changelog.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_ci_gate.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_client_errors_mixin.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_client_input_contract_export.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_client_sql_boundary.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_client_table_gate_case_and_pointers.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_cognito_client_lazy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_cognito_user_cache.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_column_tx_arg.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_commit_and_retry_safety.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_concurrency_safety.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_connection_pool.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_connection_resilience.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_context_enqueue_idempotency.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_context_flags_loader.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_context_job_descriptions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_context_queue_job.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_conv_combine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_get_metadata.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_metadata_views.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_owner_scope.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_query_cap.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_renumber.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_row_number.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_save_as.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_data_service_sync.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_audit_required.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_credentials_ssm_cascade.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_effective.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_error_contract.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_integrity.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_lane_cli.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_lane_ensure.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_lane_user_data_fold.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_maintenance.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_pgddl_triggers.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_sync.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_db_tunnel.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_declared_column_types.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_decorators.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_deferred_savepoints.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_delete_hook_fk_blocked.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_deploy_config_fields.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_deploy_engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_deploy_frontend_checks.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_deploy_operations_queue.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_dirty_pipeline_consumer.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_dirty_pipeline_fast_path.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_dlq_constant.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_docs_snippets.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_email_processing.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_enqueue_metric_namespace.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_enqueue_send_failures.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_ensure_infrastructure.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_export_formula_injection.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_export_workbook.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_facets.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_facets_and_where.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_failures.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_fake_db_where_guard_parity.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_feature_flags.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_get_cognito_user_provider.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_hooks.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_http_handler_rollback.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_iconv_money_to_cents.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_identifier_injection_guard.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_identity.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_import_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_job_handler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_job_lifecycle.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_job_record_guard.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_job_record_guard_postgres.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_job_results.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_json_columns.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_jsonb_dict_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_lambda_handler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_lambda_handler_auth.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_lambda_handler_disabled_user.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_lambda_handler_masquerade.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_lambda_handler_user_cache.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_lazy_engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_masquerade_grant.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_merge_on_conflict.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_metadata.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_metadata_format.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_mirror.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_mirror_upsert_public.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_mixins_import.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_n_plus_one.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_nosql_dynamodb.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_nosql_memory.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_nosql_mongodb.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_nosql_redis.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_nosql_translation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_nosql_where.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_observability.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_on_action_default.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_on_commit.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_ops.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_audit_fixes.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_authorizenet_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_braintree_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_braintree_mirror.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_business_agnostic.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_charge_reference.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_extra_bounds.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_lazy_imports.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_mirror_empty_table.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_profile_sorting.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_stripe_ach.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_payment_stripe_adapter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pdf.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_permissions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_permissions_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_permissions_notices.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_permissions_review.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_analytics.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_bulk_cache.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_capability_types.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_client_errors.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_ensure_infrastructure.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_get_tables.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_permissions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_pointer_joins.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_row_scope.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_search_export.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_settings.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_staged_import.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_sync.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_sys_dirty_index.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_tiles.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pgserver_user_data.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_plaid_api.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_plaid_webhook.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_pointer_join_sql.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_postgres_initializer_config.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_postgres_py_type.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_prepared_statements.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_psycopg3_upgrade.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_query_cache.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_query_missing_table_unlocked.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_raw_sql_prefix_policy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_read_cache.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_readme_imports.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_record_event_postgres.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_record_event_transaction.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_request_log_withheld.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_response.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_restricted_direct_tables.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_result_fetch_errors.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_result_returning.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_retry_side_effect_guard.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_return_default_policy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_return_default_safety.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_row_batch_nesting.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_row_batch_update.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_row_cache_staleness.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_row_scoped_data_service.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_rules.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_rules_storage.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_auth_audit.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_continuation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_jobs.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_limits.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_queue.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_queue_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_queue_defaults.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_security_log.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_site_time.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_runtime_tick.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_s3_bucket_config.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_s3_list_client_files.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_s3_upload.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_scheduler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_schema_lock_config_other_backends.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_schema_migrations.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_search_paging_export.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_security_capability.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_security_events_table_gate.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_security_hardening.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_security_rate_limit_pg.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_server_cursor.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_session_control.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_settings.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_single_autocommit_safety.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_single_session_capability.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_sms_twilio_signature.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_spreadsheet_functions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_sql_statements_as_built.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_sqlite_backend.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_sqlserver_encrypt_policy.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_sqs_per_record_transactions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_ssm_config.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_ssm_config_export_path.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_ssm_config_require.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_staged_import.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_store_user_data.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_sys_dirty_index.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_sys_modified_count_postgres_demo.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_table_alter.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_table_claim.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_table_find_cache.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_table_purge.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_enforcement.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_handlers.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_hardening.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_lane.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_provisioning.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_review3.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_scope.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tenancy_transaction.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_testing_fake_db.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tiles.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_transaction_class_wrapping.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_transaction_commit_and_ownership.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_transaction_edge_cases.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tx_lifecycle_retry.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_tx_read_cache_and_bulk.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_unrestricted_where_guard.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_user_data.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_user_not_provisioned.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v010_async_removed_sqlserver_read_only.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v010_release_review.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_integration.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_mysql_parity.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_security_final.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_security_recheck.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_security_review.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_sqlite_parity.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_table_rows.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_table_sql.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_tx_pool.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_tx_transaction.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_v011_tx_tunnel.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_validation_override.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_where_clause_validation.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_actions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_contract.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_definitions.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_designer.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_engine.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_features.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_operator.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_postgres.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_projection.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_review.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_traveler.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_workflow_views.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_write_hook_create_flow.py +0 -0
- {velocity_python-0.12.0 → velocity_python-0.13.0}/tests/test_write_hook_empty_strings.py +0 -0
{velocity_python-0.12.0 → velocity_python-0.13.0}/src/velocity/aws/handlers/mixins/client_input.py
RENAMED
|
@@ -14,12 +14,20 @@ Rules (both modes):
|
|
|
14
14
|
list, rwx hook or scope — refused instead);
|
|
15
15
|
* where/having dict keys are ``[operator-prefix]column`` or
|
|
16
16
|
``[operator-prefix]local>foreign`` — no functions, no SQL;
|
|
17
|
+
* every column name a read input carries (where/having keys after the
|
|
18
|
+
operator, pointer paths, ``@@search`` fields, columns, ORDER BY, GROUP BY,
|
|
19
|
+
facet fields) is lower-case with no surrounding whitespace — the builders
|
|
20
|
+
fold names, so ``EMAIL`` would read ``email`` past any hook that tests the
|
|
21
|
+
exact name;
|
|
17
22
|
* the only ``@@`` strings accepted anywhere are the where-value tokens
|
|
18
23
|
``@@EMPTY`` and ``@@NULL``; ``@@search`` is accepted only as a where key
|
|
19
24
|
holding ``{"terms": [...], "fields": [...], "reverse": [...]}``, and ``@@or`` / ``@@and``
|
|
20
25
|
only as where keys holding a list of where objects (nested groups are
|
|
21
26
|
checked the same way, to a bounded depth);
|
|
22
|
-
* write data keys are column names
|
|
27
|
+
* write data keys are column names in canonical form — lower-case, with no
|
|
28
|
+
surrounding whitespace — and no two keys name one column (the SQL
|
|
29
|
+
builders fold ``" GROUPS"`` to ``groups``, past every rwx hook that tests
|
|
30
|
+
the exact name); write values never start with ``@@``;
|
|
23
31
|
* ``lock``, ``skip_locked``, ``sql_only``, ``cache`` and ``cache_ttl`` are
|
|
24
32
|
never taken from a client;
|
|
25
33
|
* ``start``/``qty`` are integers; id lists are integers.
|
|
@@ -152,16 +160,46 @@ class ClientInputGuard:
|
|
|
152
160
|
self.pointers.add(node[1])
|
|
153
161
|
|
|
154
162
|
def reference(self, ref: Any, label: str) -> str:
|
|
155
|
-
"""A column or pointer path (``local>foreign``)."""
|
|
163
|
+
"""A column or pointer path (``local>foreign``), in canonical form."""
|
|
156
164
|
if not isinstance(ref, str):
|
|
157
165
|
raise _bad(f"{label}: expected a column name, got {ref!r}")
|
|
158
166
|
try:
|
|
159
167
|
node = self.helper.parse_reference(ref, strict=True)
|
|
160
168
|
except ValueError:
|
|
161
169
|
raise _bad(f"{label}: {ref!r} is not a column name or pointer") from None
|
|
170
|
+
self._canonical_reference(ref, node, label)
|
|
162
171
|
self._note_pointer(node)
|
|
163
172
|
return ref
|
|
164
173
|
|
|
174
|
+
@staticmethod
|
|
175
|
+
def _canonical_reference(text: str, node: Any, label: str) -> None:
|
|
176
|
+
"""Every name a parsed reference uses is lower-case, and the text has
|
|
177
|
+
no surrounding whitespace. The SQL builders fold names (and
|
|
178
|
+
PostgreSQL folds unquoted ones), so ``EMAIL`` reads ``email`` past
|
|
179
|
+
any hook or allow-list that tests the exact name; refused instead."""
|
|
180
|
+
if text != text.strip():
|
|
181
|
+
raise _bad(
|
|
182
|
+
f"{label}: {text!r} is not a column name as written; "
|
|
183
|
+
f"send {text.strip()!r}"
|
|
184
|
+
)
|
|
185
|
+
names = [part for part in node[1:] if isinstance(part, str)]
|
|
186
|
+
if any(name != name.lower() for name in names):
|
|
187
|
+
raise _bad(
|
|
188
|
+
f"{label}: {text!r} is not a column name as written; "
|
|
189
|
+
f"send {text.lower()!r}"
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
def _canonical_if_reference(self, text: Any, label: str) -> None:
|
|
193
|
+
"""Legacy mode: an entry that parses as a column or pointer is held
|
|
194
|
+
to the canonical rule; anything else is the legacy SQL it allows."""
|
|
195
|
+
if not isinstance(text, str):
|
|
196
|
+
return
|
|
197
|
+
try:
|
|
198
|
+
node = self.helper.parse_reference(text, strict=True)
|
|
199
|
+
except ValueError:
|
|
200
|
+
return
|
|
201
|
+
self._canonical_reference(text, node, label)
|
|
202
|
+
|
|
165
203
|
# ── values ──────────────────────────────────────────────────────────────
|
|
166
204
|
|
|
167
205
|
@staticmethod
|
|
@@ -269,6 +307,15 @@ class ClientInputGuard:
|
|
|
269
307
|
raise _bad(
|
|
270
308
|
f"{label}: {key!r} is not [operator]column or [operator]local>foreign"
|
|
271
309
|
) from None
|
|
310
|
+
# the operator stays as sent; the column part must be canonical,
|
|
311
|
+
# with nothing around it
|
|
312
|
+
symbol, _rest = self.helper.split_operator(key)
|
|
313
|
+
if key != key.strip():
|
|
314
|
+
raise _bad(
|
|
315
|
+
f"{label}: {key!r} is not a column name as written; "
|
|
316
|
+
f"send {key.strip()!r}"
|
|
317
|
+
)
|
|
318
|
+
self._canonical_reference(key[len(symbol) :], node, f"{label}")
|
|
272
319
|
self._note_pointer(node)
|
|
273
320
|
self.where_value(value, f"{label}.{key}")
|
|
274
321
|
|
|
@@ -282,6 +329,14 @@ class ClientInputGuard:
|
|
|
282
329
|
return list(value)
|
|
283
330
|
raise _bad(f"expected a list or comma-separated string, got {value!r}")
|
|
284
331
|
|
|
332
|
+
def _padded(self, item: Any, label: str) -> None:
|
|
333
|
+
"""A list entry naming a column carries no surrounding whitespace."""
|
|
334
|
+
if isinstance(item, str) and item != item.strip():
|
|
335
|
+
raise _bad(
|
|
336
|
+
f"{label}: {item!r} is not a column name as written; "
|
|
337
|
+
f"send {item.strip()!r}"
|
|
338
|
+
)
|
|
339
|
+
|
|
285
340
|
def columns(self, columns: Any) -> Any:
|
|
286
341
|
if columns in (None, "", []):
|
|
287
342
|
return columns
|
|
@@ -291,13 +346,15 @@ class ClientInputGuard:
|
|
|
291
346
|
text = col.strip()
|
|
292
347
|
if text.startswith("@@"):
|
|
293
348
|
raise _bad("columns: '@@' expressions are not accepted")
|
|
294
|
-
|
|
295
|
-
continue
|
|
349
|
+
self._padded(col, "columns")
|
|
296
350
|
match = _DISTINCT.match(text)
|
|
297
351
|
if match:
|
|
298
352
|
text = match.group(1).strip()
|
|
299
353
|
if text in ("*", "row_number"):
|
|
300
354
|
continue
|
|
355
|
+
if not self.strict:
|
|
356
|
+
self._canonical_if_reference(text, "columns")
|
|
357
|
+
continue
|
|
301
358
|
self.reference(text, "columns")
|
|
302
359
|
return columns
|
|
303
360
|
|
|
@@ -322,6 +379,7 @@ class ClientInputGuard:
|
|
|
322
379
|
|
|
323
380
|
def _order_string(self, item: str) -> str:
|
|
324
381
|
"""A strict ORDER BY string entry, in canonical form."""
|
|
382
|
+
self._padded(item, "orderby")
|
|
325
383
|
match = _ORDER_SUFFIX.match(item.strip())
|
|
326
384
|
if not match:
|
|
327
385
|
raise _bad(f"orderby: {item!r} is not a column name or pointer")
|
|
@@ -344,6 +402,9 @@ class ClientInputGuard:
|
|
|
344
402
|
raise _bad(f"orderby: invalid direction {direction!r}")
|
|
345
403
|
if self.strict:
|
|
346
404
|
self.reference(key, "orderby")
|
|
405
|
+
else:
|
|
406
|
+
self._padded(key, "orderby")
|
|
407
|
+
self._canonical_if_reference(key, "orderby")
|
|
347
408
|
return orderby
|
|
348
409
|
items = [orderby] if isinstance(orderby, dict) else self._split(orderby)
|
|
349
410
|
out: List[str] = []
|
|
@@ -359,6 +420,11 @@ class ClientInputGuard:
|
|
|
359
420
|
raise _bad("orderby: '@@' expressions are not accepted")
|
|
360
421
|
if not item.strip():
|
|
361
422
|
continue
|
|
423
|
+
if not self.strict:
|
|
424
|
+
self._padded(item, "orderby")
|
|
425
|
+
legacy = _ORDER_SUFFIX.match(item.strip())
|
|
426
|
+
if legacy:
|
|
427
|
+
self._canonical_if_reference(legacy.group("ref").strip(), "orderby")
|
|
362
428
|
out.append(self._order_string(item) if self.strict else item.strip())
|
|
363
429
|
if not self.strict and not structured:
|
|
364
430
|
return orderby
|
|
@@ -370,8 +436,11 @@ class ClientInputGuard:
|
|
|
370
436
|
for item in self._split(groupby):
|
|
371
437
|
if not isinstance(item, str) or item.strip().startswith("@@"):
|
|
372
438
|
raise _bad(f"groupby: {item!r} is not accepted")
|
|
439
|
+
self._padded(item, "groupby")
|
|
373
440
|
if self.strict:
|
|
374
441
|
self.reference(item.strip(), "groupby")
|
|
442
|
+
else:
|
|
443
|
+
self._canonical_if_reference(item.strip(), "groupby")
|
|
375
444
|
return groupby
|
|
376
445
|
|
|
377
446
|
def aggregates(self, aggregates: Any) -> List[str]:
|
|
@@ -497,20 +566,65 @@ class ClientInputGuard:
|
|
|
497
566
|
# identifiers, bound values and caps: refused here (400), before
|
|
498
567
|
# any hook sees the payload; built into SQL by velocity.aws.facets
|
|
499
568
|
facets.validate(out["facets"])
|
|
569
|
+
self._facet_columns(out["facets"])
|
|
500
570
|
return out
|
|
501
571
|
|
|
572
|
+
@staticmethod
|
|
573
|
+
def _facet_columns(entries: Any) -> None:
|
|
574
|
+
"""Facet ``field`` / ``fields`` name columns: lower-case only
|
|
575
|
+
(:func:`facets.validate` has already held them to identifiers)."""
|
|
576
|
+
for entry in entries if isinstance(entries, list) else ():
|
|
577
|
+
if not isinstance(entry, dict):
|
|
578
|
+
continue
|
|
579
|
+
names = [entry.get("field")]
|
|
580
|
+
if isinstance(entry.get("fields"), list):
|
|
581
|
+
names.extend(entry["fields"])
|
|
582
|
+
for name in names:
|
|
583
|
+
if isinstance(name, str) and name != name.lower():
|
|
584
|
+
raise _bad(
|
|
585
|
+
f"facets: {name!r} is not a column name as written; "
|
|
586
|
+
f"send {name.lower()!r}"
|
|
587
|
+
)
|
|
588
|
+
|
|
502
589
|
def write_data(self, data: Any, label: str = "object") -> Dict[str, Any]:
|
|
590
|
+
"""Write data keys are column names in their canonical spelling.
|
|
591
|
+
|
|
592
|
+
The SQL builders write ``key.strip().lower()``, so ``GROUPS``,
|
|
593
|
+
``Groups`` and ``" groups"`` all reach the column ``groups``; a hook
|
|
594
|
+
that tests the exact name would never see them. Every key must
|
|
595
|
+
already be its canonical form, and no two keys may name one column.
|
|
596
|
+
"""
|
|
503
597
|
if not isinstance(data, dict):
|
|
504
598
|
raise _bad(f"{label} must be an object")
|
|
599
|
+
columns: Dict[str, str] = {}
|
|
600
|
+
for key in data:
|
|
601
|
+
if not isinstance(key, str):
|
|
602
|
+
raise _bad(f"{label}: {key!r} is not a column name")
|
|
603
|
+
column = canonical_column(key)
|
|
604
|
+
if column in columns:
|
|
605
|
+
raise _bad(
|
|
606
|
+
f"{label}: {columns[column]!r} and {key!r} name the same "
|
|
607
|
+
f"column {column!r}"
|
|
608
|
+
)
|
|
609
|
+
columns[column] = key
|
|
505
610
|
for key, value in data.items():
|
|
506
|
-
if not
|
|
507
|
-
_IDENT.match(key) or _DATA_KEY.match(key)
|
|
508
|
-
):
|
|
611
|
+
if not (_IDENT.match(key) or _DATA_KEY.match(key)):
|
|
509
612
|
raise _bad(f"{label}: {key!r} is not a column name")
|
|
613
|
+
if key != canonical_column(key):
|
|
614
|
+
raise _bad(
|
|
615
|
+
f"{label}: {key!r} is not a column name as written; "
|
|
616
|
+
f"send {canonical_column(key)!r}"
|
|
617
|
+
)
|
|
510
618
|
self._reject_raw_value(value, f"{label}.{key}", allow_tokens=False)
|
|
511
619
|
return data
|
|
512
620
|
|
|
513
621
|
|
|
622
|
+
def canonical_column(key: str) -> str:
|
|
623
|
+
"""The column a write data key reaches: the name the SQL builders quote
|
|
624
|
+
(``TableHelper.quote_data_key(key, lower=True)``)."""
|
|
625
|
+
return key.strip().lower()
|
|
626
|
+
|
|
627
|
+
|
|
514
628
|
CONTRACT_VERSION = 2
|
|
515
629
|
|
|
516
630
|
|
|
@@ -553,6 +667,7 @@ def contract() -> Dict[str, Any]:
|
|
|
553
667
|
__all__ = [
|
|
554
668
|
"CONTRACT_VERSION",
|
|
555
669
|
"ClientInputGuard",
|
|
670
|
+
"canonical_column",
|
|
556
671
|
"contract",
|
|
557
672
|
"STRICT",
|
|
558
673
|
"LEGACY",
|
|
@@ -328,8 +328,10 @@ tests/test_check_changelog.py
|
|
|
328
328
|
tests/test_ci_gate.py
|
|
329
329
|
tests/test_client_errors_mixin.py
|
|
330
330
|
tests/test_client_input_contract_export.py
|
|
331
|
+
tests/test_client_read_canonical_names.py
|
|
331
332
|
tests/test_client_sql_boundary.py
|
|
332
333
|
tests/test_client_table_gate_case_and_pointers.py
|
|
334
|
+
tests/test_client_write_canonical_keys.py
|
|
333
335
|
tests/test_cognito_client_lazy.py
|
|
334
336
|
tests/test_cognito_user_cache.py
|
|
335
337
|
tests/test_column_tx_arg.py
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"""Client read inputs must name columns in canonical form.
|
|
2
|
+
|
|
3
|
+
The SELECT builder lower-cases where/order names and sends projected columns
|
|
4
|
+
unquoted (PostgreSQL folds them), so ``EMAIL`` reads ``email`` past a
|
|
5
|
+
``before_query`` / ``before_find`` hook or allow-list that tests the exact
|
|
6
|
+
name. ``ClientInputGuard`` refuses any column name that is not lower-case or
|
|
7
|
+
that carries surrounding whitespace, in every read input, before any hook or
|
|
8
|
+
SQL runs. Operators stay as sent; only the column part is held to the rule.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
import copy
|
|
12
|
+
import unittest
|
|
13
|
+
|
|
14
|
+
from velocity.aws.handlers.exceptions import BadRequestError
|
|
15
|
+
from velocity.aws.handlers.mixins.client_input import ClientInputGuard
|
|
16
|
+
from velocity.aws.handlers.mixins.data_service import DataServiceMixin
|
|
17
|
+
|
|
18
|
+
from tests.test_client_sql_boundary import Ctx, _no_ssm, _pin_postgres
|
|
19
|
+
from tests.test_client_write_canonical_keys import RecordingTx, Service as _Base
|
|
20
|
+
|
|
21
|
+
BAD = ("EMAIL", "Email", "email ", " email")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _where_shapes(name):
|
|
25
|
+
"""Every where position a column name can take."""
|
|
26
|
+
return {
|
|
27
|
+
"plain": {name: "x"},
|
|
28
|
+
"not": {"!" + name: "x"},
|
|
29
|
+
"gte": {">=" + name: 1},
|
|
30
|
+
"ilike": {"%%" + name: "x"},
|
|
31
|
+
"between": {"><" + name: [1, 2]},
|
|
32
|
+
"pointer-local": {name + ">name": "x"},
|
|
33
|
+
"pointer-foreign": {"owner_sys_id>" + name: "x"},
|
|
34
|
+
"or": {"@@or": [{"status": "a"}, {name: "x"}]},
|
|
35
|
+
"and-in-or": {"@@or": [{"@@and": [{"status": "a"}, {"!" + name: "x"}]}]},
|
|
36
|
+
"search-field": {"@@search": {"terms": ["x"], "fields": [name]}},
|
|
37
|
+
"search-reverse": {
|
|
38
|
+
"@@search": {"terms": ["x"], "fields": ["title"], "reverse": [name]}
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _param_shapes(name):
|
|
44
|
+
"""Every query param (beside where) that names a column."""
|
|
45
|
+
shapes = {f"where-{k}": {"where": w} for k, w in _where_shapes(name).items()}
|
|
46
|
+
shapes.update(
|
|
47
|
+
{
|
|
48
|
+
"having": {"groupby": ["status"], "having": {name: 1}},
|
|
49
|
+
"columns-list": {"columns": ["title", name]},
|
|
50
|
+
"orderby-list": {"orderby": [name]},
|
|
51
|
+
"orderby-structured": {"orderby": [{"field": name, "dir": "desc"}]},
|
|
52
|
+
"orderby-dict": {"orderby": {name: "asc"}},
|
|
53
|
+
"groupby": {"groupby": [name]},
|
|
54
|
+
"facet-field": {
|
|
55
|
+
"facets": [{"field": name, "kind": "values", "values": ["a"]}]
|
|
56
|
+
},
|
|
57
|
+
"facet-fields": {
|
|
58
|
+
"facets": [
|
|
59
|
+
{
|
|
60
|
+
"field": "title",
|
|
61
|
+
"fields": ["title", name],
|
|
62
|
+
"kind": "text",
|
|
63
|
+
"value": "x",
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
if name == name.strip():
|
|
70
|
+
# a comma-joined string strips its parts: only the case shows
|
|
71
|
+
shapes["columns-string"] = {"columns": f"title, {name}"}
|
|
72
|
+
shapes["columns-distinct"] = {"columns": ["distinct " + name]}
|
|
73
|
+
shapes["orderby-string"] = {"orderby": f"title, {name} desc"}
|
|
74
|
+
shapes["groupby-string"] = {"groupby": f"status, {name}"}
|
|
75
|
+
return shapes
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
CANONICAL_PARAMS = {
|
|
79
|
+
"columns": ["title", "distinct status", "owner_sys_id>name", "first_name"],
|
|
80
|
+
"where": {
|
|
81
|
+
"!status": "x",
|
|
82
|
+
">=amount": 1,
|
|
83
|
+
"%%title": "a",
|
|
84
|
+
"><amount": [1, 2],
|
|
85
|
+
"owner_sys_id>name": "ada",
|
|
86
|
+
"@@or": [{"status": "a"}, {"@@and": [{"!title": "b"}, {"<qty": 3}]}],
|
|
87
|
+
"@@search": {"terms": ["x"], "fields": ["title", "owner_sys_id>name"]},
|
|
88
|
+
},
|
|
89
|
+
"orderby": "title DESC NULLS LAST, sys_id",
|
|
90
|
+
"groupby": ["status"],
|
|
91
|
+
"facets": [{"field": "status", "kind": "values", "values": ["a"]}],
|
|
92
|
+
"qty": 10,
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class GuardReadNamesTest(unittest.TestCase):
|
|
97
|
+
def setUp(self):
|
|
98
|
+
_pin_postgres()
|
|
99
|
+
|
|
100
|
+
def test_every_param_shape_refuses_non_canonical_names(self):
|
|
101
|
+
for name in BAD:
|
|
102
|
+
for shape, params in _param_shapes(name).items():
|
|
103
|
+
with self.subTest(name=name, shape=shape):
|
|
104
|
+
with self.assertRaises(BadRequestError):
|
|
105
|
+
ClientInputGuard("strict").query_params(copy.deepcopy(params))
|
|
106
|
+
|
|
107
|
+
def test_legacy_mode_refuses_plain_names_too(self):
|
|
108
|
+
legacy = ClientInputGuard("legacy")
|
|
109
|
+
for name in BAD:
|
|
110
|
+
for params in (
|
|
111
|
+
{"where": {name: "x"}},
|
|
112
|
+
{"columns": [name]},
|
|
113
|
+
{"orderby": [name + " desc" if name == name.strip() else name]},
|
|
114
|
+
{"orderby": {name: "asc"}},
|
|
115
|
+
{"groupby": [name]},
|
|
116
|
+
):
|
|
117
|
+
with self.subTest(name=name, params=params):
|
|
118
|
+
with self.assertRaises(BadRequestError):
|
|
119
|
+
legacy.query_params(copy.deepcopy(params))
|
|
120
|
+
# legacy SQL expressions are still legacy's to send
|
|
121
|
+
out = legacy.query_params({"columns": ["count(*) as n"], "orderby": "n desc"})
|
|
122
|
+
self.assertEqual(out["columns"], ["count(*) as n"])
|
|
123
|
+
|
|
124
|
+
def test_space_between_operator_and_column_refused(self):
|
|
125
|
+
for key in ("! email", ">= amount", "%% title"):
|
|
126
|
+
with self.subTest(key=key), self.assertRaises(BadRequestError):
|
|
127
|
+
ClientInputGuard().where({key: "x"})
|
|
128
|
+
|
|
129
|
+
def test_find_where_refuses_every_where_shape(self):
|
|
130
|
+
for name in BAD:
|
|
131
|
+
for shape, where in _where_shapes(name).items():
|
|
132
|
+
with self.subTest(name=name, shape=shape):
|
|
133
|
+
with self.assertRaises(BadRequestError):
|
|
134
|
+
ClientInputGuard().where(copy.deepcopy(where))
|
|
135
|
+
|
|
136
|
+
def test_canonical_params_pass_with_operators_preserved(self):
|
|
137
|
+
params = copy.deepcopy(CANONICAL_PARAMS)
|
|
138
|
+
out = ClientInputGuard().query_params(params)
|
|
139
|
+
self.assertEqual(out["where"], CANONICAL_PARAMS["where"])
|
|
140
|
+
self.assertEqual(out["columns"], CANONICAL_PARAMS["columns"])
|
|
141
|
+
self.assertEqual(out["groupby"], ["status"])
|
|
142
|
+
self.assertEqual(out["orderby"], "title DESC NULLS LAST, sys_id")
|
|
143
|
+
self.assertEqual(out["facets"], CANONICAL_PARAMS["facets"])
|
|
144
|
+
# the where builds with each operator intact
|
|
145
|
+
self.assertEqual(
|
|
146
|
+
list(out["where"]), list(CANONICAL_PARAMS["where"])
|
|
147
|
+
) # key order and spelling kept
|
|
148
|
+
|
|
149
|
+
def test_upper_case_sql_keywords_are_not_column_names(self):
|
|
150
|
+
out = ClientInputGuard().query_params(
|
|
151
|
+
{"columns": ["DISTINCT status"], "orderby": "title DESC NULLS FIRST"}
|
|
152
|
+
)
|
|
153
|
+
self.assertEqual(out["orderby"], "title DESC NULLS FIRST")
|
|
154
|
+
|
|
155
|
+
def test_lower_case_orderby_with_spaced_commas_passes(self):
|
|
156
|
+
text = "description asc, sys_id asc"
|
|
157
|
+
# legacy hands it on as sent; strict returns its existing canonical
|
|
158
|
+
# ORDER BY (direction upper-cased), the column names untouched
|
|
159
|
+
self.assertEqual(
|
|
160
|
+
ClientInputGuard("legacy").query_params({"orderby": text})["orderby"],
|
|
161
|
+
text,
|
|
162
|
+
)
|
|
163
|
+
self.assertEqual(
|
|
164
|
+
ClientInputGuard("strict").query_params({"orderby": text})["orderby"],
|
|
165
|
+
"description ASC, sys_id ASC",
|
|
166
|
+
)
|
|
167
|
+
self.assertEqual(
|
|
168
|
+
ClientInputGuard("strict").query_params(
|
|
169
|
+
{"orderby": ["description asc", "sys_id asc"]}
|
|
170
|
+
)["orderby"],
|
|
171
|
+
"description ASC, sys_id ASC",
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
def test_alias_form_with_upper_case_table_part_refused(self):
|
|
175
|
+
for ref in ("A.title", "Notes.title", "notes.TITLE"):
|
|
176
|
+
with self.subTest(ref=ref), self.assertRaises(BadRequestError):
|
|
177
|
+
ClientInputGuard().query_params({"columns": [ref]})
|
|
178
|
+
ClientInputGuard().query_params({"columns": ["notes.title"]})
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class ReadService(_Base):
|
|
182
|
+
"""Real read actions; the read hooks and the query pipeline are
|
|
183
|
+
recorded (signatures bound to velocity's)."""
|
|
184
|
+
|
|
185
|
+
sync_enabled = True
|
|
186
|
+
|
|
187
|
+
def query_hook(self, *args, **kwargs):
|
|
188
|
+
self._record(DataServiceMixin.query_hook, "query_hook", *args, **kwargs)
|
|
189
|
+
return {"rows": []}
|
|
190
|
+
|
|
191
|
+
def prepare_query_params(self, *args, **kwargs):
|
|
192
|
+
self._record(DataServiceMixin.prepare_query_params, "prepare", *args, **kwargs)
|
|
193
|
+
return {}
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
class ReadActionsTest(unittest.TestCase):
|
|
197
|
+
def setUp(self):
|
|
198
|
+
_pin_postgres()
|
|
199
|
+
self._ssm = _no_ssm()
|
|
200
|
+
self._ssm.start()
|
|
201
|
+
self.addCleanup(self._ssm.stop)
|
|
202
|
+
|
|
203
|
+
def _refused(self, action, payload):
|
|
204
|
+
svc = ReadService()
|
|
205
|
+
tx = RecordingTx()
|
|
206
|
+
with self.assertRaises(BadRequestError):
|
|
207
|
+
getattr(svc, action)(tx, Ctx(payload))
|
|
208
|
+
# no before_query / before_find / any rwx hook, no query pipeline,
|
|
209
|
+
# no find_hook and no table access
|
|
210
|
+
self.assertEqual(svc.calls, [])
|
|
211
|
+
self.assertEqual(tx.tables_opened, [])
|
|
212
|
+
|
|
213
|
+
def test_query_refuses_before_hooks_and_sql(self):
|
|
214
|
+
for name in BAD:
|
|
215
|
+
for shape, params in _param_shapes(name).items():
|
|
216
|
+
for result_format in (None, "excel"):
|
|
217
|
+
with self.subTest(name=name, shape=shape, fmt=result_format):
|
|
218
|
+
payload = {"obj": "notes", "params": copy.deepcopy(params)}
|
|
219
|
+
if result_format:
|
|
220
|
+
payload["result_format"] = result_format
|
|
221
|
+
self._refused("OnActionQuery", payload)
|
|
222
|
+
|
|
223
|
+
def test_find_object_refuses_before_hooks_and_sql(self):
|
|
224
|
+
for name in BAD:
|
|
225
|
+
for shape, where in _where_shapes(name).items():
|
|
226
|
+
with self.subTest(name=name, shape=shape):
|
|
227
|
+
self._refused(
|
|
228
|
+
"OnActionFindObject",
|
|
229
|
+
{"tableName": "notes", "query": {"where": where}},
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
def test_sync_and_query_direct_refuse(self):
|
|
233
|
+
for name in BAD:
|
|
234
|
+
with self.subTest(name=name):
|
|
235
|
+
self._refused(
|
|
236
|
+
"OnActionSync",
|
|
237
|
+
{"obj": "notes", "params": {"where": {name: "x"}}},
|
|
238
|
+
)
|
|
239
|
+
self._refused(
|
|
240
|
+
"OnActionQueryDirect",
|
|
241
|
+
{"obj": "notes", "params": {"columns": [name]}},
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
def test_canonical_query_reaches_the_hook_unchanged(self):
|
|
245
|
+
svc = ReadService()
|
|
246
|
+
params = {k: v for k, v in CANONICAL_PARAMS.items() if k != "where"}
|
|
247
|
+
params["where"] = {"!status": "x", ">=amount": 1}
|
|
248
|
+
# no pointer here: its table gate reads the foreign key from the tx
|
|
249
|
+
params["columns"] = ["title", "distinct status", "first_name"]
|
|
250
|
+
svc.OnActionQuery(
|
|
251
|
+
RecordingTx(), Ctx({"obj": "notes", "params": copy.deepcopy(params)})
|
|
252
|
+
)
|
|
253
|
+
(call,) = [c for c in svc.calls if c[0] == "query_hook"]
|
|
254
|
+
sent = call[1][2]["params"]
|
|
255
|
+
self.assertEqual(sent["where"], {"!status": "x", ">=amount": 1})
|
|
256
|
+
self.assertEqual(sent["columns"], params["columns"])
|
|
257
|
+
|
|
258
|
+
def test_canonical_find_reaches_find_hook_unchanged(self):
|
|
259
|
+
svc = ReadService()
|
|
260
|
+
svc.OnActionFindObject(
|
|
261
|
+
RecordingTx(),
|
|
262
|
+
Ctx({"tableName": "notes", "query": {"where": {"!email": "x"}}}),
|
|
263
|
+
)
|
|
264
|
+
(call,) = [c for c in svc.calls if c[0] == "find_hook"]
|
|
265
|
+
self.assertEqual(call[1][2], {"!email": "x"})
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
if __name__ == "__main__":
|
|
269
|
+
unittest.main()
|