velocity-python 0.9.6__tar.gz → 0.9.8__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.
Files changed (483) hide show
  1. {velocity_python-0.9.6 → velocity_python-0.9.8}/PKG-INFO +1 -1
  2. {velocity_python-0.9.6 → velocity_python-0.9.8}/pyproject.toml +1 -1
  3. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/__init__.py +1 -1
  4. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/lambda_handler.py +8 -2
  5. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/__init__.py +7 -1
  6. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/data_service.py +153 -0
  7. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/row_scoped.py +13 -0
  8. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/table.py +45 -0
  9. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/postgres/sql.py +25 -0
  10. velocity_python-0.9.8/src/velocity/metadata/__init__.py +52 -0
  11. velocity_python-0.9.8/src/velocity/metadata/declarations.py +325 -0
  12. velocity_python-0.9.8/src/velocity/metadata/merge.py +252 -0
  13. velocity_python-0.9.8/src/velocity/metadata/validate.py +81 -0
  14. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/testing/fake_db.py +42 -3
  15. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity_python.egg-info/PKG-INFO +1 -1
  16. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity_python.egg-info/SOURCES.txt +6 -0
  17. velocity_python-0.9.8/tests/test_data_service_get_metadata.py +385 -0
  18. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_lambda_handler_auth.py +49 -0
  19. velocity_python-0.9.8/tests/test_metadata.py +630 -0
  20. {velocity_python-0.9.6 → velocity_python-0.9.8}/LICENSE +0 -0
  21. {velocity_python-0.9.6 → velocity_python-0.9.8}/README.md +0 -0
  22. {velocity_python-0.9.6 → velocity_python-0.9.8}/setup.cfg +0 -0
  23. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/__init__.py +0 -0
  24. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/amplify.py +0 -0
  25. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/assets/__init__.py +0 -0
  26. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/assets/backfill.py +0 -0
  27. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/assets/indexing.py +0 -0
  28. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/assets/references.py +0 -0
  29. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/assets/service.py +0 -0
  30. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/assets/usage_index.py +0 -0
  31. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/authz.py +0 -0
  32. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/blobs.py +0 -0
  33. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/__init__.py +0 -0
  34. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/base.py +0 -0
  35. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/dispatch.py +0 -0
  36. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/infra.py +0 -0
  37. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/jobs.py +0 -0
  38. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/provisioning.py +0 -0
  39. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/retention.py +0 -0
  40. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/security.py +0 -0
  41. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/single_session.py +0 -0
  42. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/capabilities/workflow.py +0 -0
  43. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/__init__.py +0 -0
  44. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/ci_gate.py +0 -0
  45. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/config.py +0 -0
  46. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/frontend_checks.py +0 -0
  47. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/operations.py +0 -0
  48. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/policies.py +0 -0
  49. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/reconcile.py +0 -0
  50. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/deploy/targets.py +0 -0
  51. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/dirty_pipeline.py +0 -0
  52. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/email.py +0 -0
  53. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/facets.py +0 -0
  54. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/failures.py +0 -0
  55. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/feature_flags.py +0 -0
  56. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/__init__.py +0 -0
  57. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/base_handler.py +0 -0
  58. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/context.py +0 -0
  59. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/context_factory.py +0 -0
  60. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/exceptions.py +0 -0
  61. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/masquerade.py +0 -0
  62. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/action_names.py +0 -0
  63. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/audit_trail.py +0 -0
  64. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/client_errors.py +0 -0
  65. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/client_input.py +0 -0
  66. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/job_handler.py +0 -0
  67. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/permissions_actions.py +0 -0
  68. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/session_control.py +0 -0
  69. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/tiles_actions.py +0 -0
  70. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/web_handler.py +0 -0
  71. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/mixins/workflow_actions.py +0 -0
  72. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/perf.py +0 -0
  73. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/response.py +0 -0
  74. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/handlers/sqs_handler.py +0 -0
  75. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/identity.py +0 -0
  76. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/job_lifecycle.py +0 -0
  77. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/job_results.py +0 -0
  78. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/mirror.py +0 -0
  79. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/ops.py +0 -0
  80. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/permissions.py +0 -0
  81. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/queue_defaults.py +0 -0
  82. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/s3.py +0 -0
  83. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/scheduler.py +0 -0
  84. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/schema.py +0 -0
  85. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/settings.py +0 -0
  86. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/sms.py +0 -0
  87. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/ssm_config.py +0 -0
  88. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/__init__.py +0 -0
  89. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_base_handler_error_response.py +0 -0
  90. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_deploy_least_privilege.py +0 -0
  91. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_deploy_policies.py +0 -0
  92. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_deploy_policy_size.py +0 -0
  93. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_deploy_reconcile.py +0 -0
  94. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_email.py +0 -0
  95. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_lambda_handler_json_serialization.py +0 -0
  96. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_response.py +0 -0
  97. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tests/test_sms.py +0 -0
  98. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/tiles.py +0 -0
  99. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/user_data.py +0 -0
  100. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/aws/validation.py +0 -0
  101. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/cache.py +0 -0
  102. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/__init__.py +0 -0
  103. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/_pgddl.py +0 -0
  104. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/audit.py +0 -0
  105. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/__init__.py +0 -0
  106. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/async_support.py +0 -0
  107. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/column.py +0 -0
  108. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/database.py +0 -0
  109. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/decorators.py +0 -0
  110. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/engine.py +0 -0
  111. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/jsonproxy.py +0 -0
  112. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/lazy_engine.py +0 -0
  113. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/result.py +0 -0
  114. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/row.py +0 -0
  115. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/sequence.py +0 -0
  116. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/transaction.py +0 -0
  117. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/core/view.py +0 -0
  118. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/effective.py +0 -0
  119. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/exceptions.py +0 -0
  120. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/fragments.py +0 -0
  121. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/integrity.py +0 -0
  122. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/maintenance.py +0 -0
  123. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/migrations.py +0 -0
  124. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/__init__.py +0 -0
  125. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/base/__init__.py +0 -0
  126. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/base/initializer.py +0 -0
  127. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/base/operators.py +0 -0
  128. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/base/sql.py +0 -0
  129. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/base/types.py +0 -0
  130. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/mysql/__init__.py +0 -0
  131. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/mysql/operators.py +0 -0
  132. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/mysql/reserved.py +0 -0
  133. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/mysql/sql.py +0 -0
  134. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/mysql/types.py +0 -0
  135. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/postgres/__init__.py +0 -0
  136. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/postgres/operators.py +0 -0
  137. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/postgres/reserved.py +0 -0
  138. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/postgres/types.py +0 -0
  139. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlite/__init__.py +0 -0
  140. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlite/operators.py +0 -0
  141. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlite/reserved.py +0 -0
  142. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlite/sql.py +0 -0
  143. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlite/types.py +0 -0
  144. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlserver/__init__.py +0 -0
  145. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlserver/operators.py +0 -0
  146. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlserver/reserved.py +0 -0
  147. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlserver/sql.py +0 -0
  148. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/sqlserver/types.py +0 -0
  149. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/servers/tablehelper.py +0 -0
  150. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/__init__.py +0 -0
  151. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/common_db_test.py +0 -0
  152. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/__init__.py +0 -0
  153. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/common.py +0 -0
  154. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/conftest.py +0 -0
  155. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_column.py +0 -0
  156. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_connections.py +0 -0
  157. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_database.py +0 -0
  158. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_engine.py +0 -0
  159. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_general_usage.py +0 -0
  160. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_imports.py +0 -0
  161. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_integrity_triggers.py +0 -0
  162. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_result.py +0 -0
  163. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_row.py +0 -0
  164. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_row_comprehensive.py +0 -0
  165. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_schema_locking.py +0 -0
  166. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_schema_locking_unit.py +0 -0
  167. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_sequence.py +0 -0
  168. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_sql_comprehensive.py +0 -0
  169. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_table.py +0 -0
  170. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_table_comprehensive.py +0 -0
  171. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/postgres/test_transaction.py +0 -0
  172. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/sql/__init__.py +0 -0
  173. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/sql/common.py +0 -0
  174. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/sql/test_postgres_select_advanced.py +0 -0
  175. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/sql/test_postgres_select_variances.py +0 -0
  176. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_cursor_rowcount_fix.py +0 -0
  177. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_db_utils.py +0 -0
  178. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_postgres.py +0 -0
  179. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_postgres_unchanged.py +0 -0
  180. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_process_error_robustness.py +0 -0
  181. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_result_caching.py +0 -0
  182. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_result_sql_aware.py +0 -0
  183. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_row_get_missing_column.py +0 -0
  184. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_schema_locking_initializers.py +0 -0
  185. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_schema_locking_simple.py +0 -0
  186. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_sql_builder.py +0 -0
  187. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_tablehelper.py +0 -0
  188. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tests/test_view_helper.py +0 -0
  189. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/tunnel.py +0 -0
  190. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/db/utils.py +0 -0
  191. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/hooks.py +0 -0
  192. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/logging.py +0 -0
  193. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/__init__.py +0 -0
  194. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/conv/__init__.py +0 -0
  195. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/conv/iconv.py +0 -0
  196. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/conv/oconv.py +0 -0
  197. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/db.py +0 -0
  198. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/export.py +0 -0
  199. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/format.py +0 -0
  200. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/mail.py +0 -0
  201. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/merge.py +0 -0
  202. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/pdf.py +0 -0
  203. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/qr.py +0 -0
  204. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/__init__.py +0 -0
  205. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_db.py +0 -0
  206. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_fix.py +0 -0
  207. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_format.py +0 -0
  208. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_iconv.py +0 -0
  209. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_mail_send.py +0 -0
  210. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_merge.py +0 -0
  211. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_oconv.py +0 -0
  212. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_original_error.py +0 -0
  213. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tests/test_timer.py +0 -0
  214. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/timer.py +0 -0
  215. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/misc/tools.py +0 -0
  216. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/__init__.py +0 -0
  217. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/core/__init__.py +0 -0
  218. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/core/capabilities.py +0 -0
  219. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/core/store.py +0 -0
  220. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/core/where.py +0 -0
  221. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/exceptions.py +0 -0
  222. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/__init__.py +0 -0
  223. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/base/__init__.py +0 -0
  224. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/cassandra/__init__.py +0 -0
  225. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/cassandra/translation.py +0 -0
  226. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/couchbase/__init__.py +0 -0
  227. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/couchbase/translation.py +0 -0
  228. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/dynamodb/__init__.py +0 -0
  229. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/dynamodb/translation.py +0 -0
  230. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/elasticsearch/__init__.py +0 -0
  231. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/elasticsearch/translation.py +0 -0
  232. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/memory/__init__.py +0 -0
  233. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/mongodb/__init__.py +0 -0
  234. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/mongodb/translation.py +0 -0
  235. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/nosql/servers/redis/__init__.py +0 -0
  236. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/__init__.py +0 -0
  237. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/_mirror_core.py +0 -0
  238. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/authorizenet_adapter.py +0 -0
  239. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/authorizenet_mirror.py +0 -0
  240. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/base_adapter.py +0 -0
  241. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/braintree_adapter.py +0 -0
  242. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/braintree_mirror.py +0 -0
  243. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/charge_rules.py +0 -0
  244. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/money.py +0 -0
  245. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/plaid_api.py +0 -0
  246. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/plaid_webhook.py +0 -0
  247. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/redact.py +0 -0
  248. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/schema.py +0 -0
  249. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/stripe_adapter.py +0 -0
  250. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/payment/stripe_mirror.py +0 -0
  251. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/rules/__init__.py +0 -0
  252. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/rules/engine.py +0 -0
  253. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/rules/expressions.py +0 -0
  254. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/rules/facts.py +0 -0
  255. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/rules/storage.py +0 -0
  256. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/testing/__init__.py +0 -0
  257. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/__init__.py +0 -0
  258. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/access.py +0 -0
  259. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/contract.py +0 -0
  260. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/definitions.py +0 -0
  261. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/designer.py +0 -0
  262. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/engine.py +0 -0
  263. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/hooks.py +0 -0
  264. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/notices.py +0 -0
  265. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/operator.py +0 -0
  266. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/outbox.py +0 -0
  267. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/points.py +0 -0
  268. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/schema.py +0 -0
  269. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/traveler.py +0 -0
  270. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity/workflow/views.py +0 -0
  271. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity_python.egg-info/dependency_links.txt +0 -0
  272. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity_python.egg-info/entry_points.txt +0 -0
  273. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity_python.egg-info/requires.txt +0 -0
  274. {velocity_python-0.9.6 → velocity_python-0.9.8}/src/velocity_python.egg-info/top_level.txt +0 -0
  275. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_access_error_403.py +0 -0
  276. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_action_names.py +0 -0
  277. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_activity_tracking_aborted_tx.py +0 -0
  278. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_amplify_redirects.py +0 -0
  279. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_asset_indexing.py +0 -0
  280. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_asset_references.py +0 -0
  281. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_assets_service.py +0 -0
  282. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_async_support.py +0 -0
  283. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_audit_log_confidential.py +0 -0
  284. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_audit_mixin.py +0 -0
  285. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_audit_registry_table_gate.py +0 -0
  286. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_authz.py +0 -0
  287. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_aws_package_hygiene.py +0 -0
  288. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_batch_operations.py +0 -0
  289. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_blob_store.py +0 -0
  290. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_business_objects.py +0 -0
  291. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_capabilities.py +0 -0
  292. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_capability_catalog.py +0 -0
  293. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_capability_dependencies.py +0 -0
  294. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_check_changelog.py +0 -0
  295. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_ci_gate.py +0 -0
  296. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_client_errors_mixin.py +0 -0
  297. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_client_input_contract_export.py +0 -0
  298. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_client_sql_boundary.py +0 -0
  299. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_client_table_gate_case_and_pointers.py +0 -0
  300. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_cognito_client_lazy.py +0 -0
  301. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_cognito_user_cache.py +0 -0
  302. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_column_tx_arg.py +0 -0
  303. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_concurrency_safety.py +0 -0
  304. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_connection_pool.py +0 -0
  305. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_connection_resilience.py +0 -0
  306. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_context_enqueue_idempotency.py +0 -0
  307. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_context_flags_loader.py +0 -0
  308. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_context_job_descriptions.py +0 -0
  309. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_context_queue_job.py +0 -0
  310. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_conv_combine.py +0 -0
  311. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_data_service_owner_scope.py +0 -0
  312. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_data_service_query_cap.py +0 -0
  313. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_data_service_renumber.py +0 -0
  314. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_data_service_row_number.py +0 -0
  315. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_data_service_save_as.py +0 -0
  316. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_data_service_security_gates.py +0 -0
  317. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_db_audit_required.py +0 -0
  318. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_db_credentials_ssm_cascade.py +0 -0
  319. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_db_effective.py +0 -0
  320. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_db_integrity.py +0 -0
  321. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_db_maintenance.py +0 -0
  322. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_db_pgddl_triggers.py +0 -0
  323. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_db_tunnel.py +0 -0
  324. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_declared_column_types.py +0 -0
  325. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_decorators.py +0 -0
  326. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_delete_hook_fk_blocked.py +0 -0
  327. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_deploy_config_fields.py +0 -0
  328. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_deploy_engine.py +0 -0
  329. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_deploy_frontend_checks.py +0 -0
  330. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_deploy_operations_queue.py +0 -0
  331. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_deploy_policies.py +0 -0
  332. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_dirty_pipeline_consumer.py +0 -0
  333. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_dirty_pipeline_fast_path.py +0 -0
  334. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_dlq_constant.py +0 -0
  335. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_docs_snippets.py +0 -0
  336. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_email_processing.py +0 -0
  337. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_enqueue_metric_namespace.py +0 -0
  338. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_enqueue_send_failures.py +0 -0
  339. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_ensure_infrastructure.py +0 -0
  340. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_export_workbook.py +0 -0
  341. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_facets.py +0 -0
  342. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_facets_and_where.py +0 -0
  343. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_failures.py +0 -0
  344. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_feature_flags.py +0 -0
  345. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_get_cognito_user_provider.py +0 -0
  346. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_hooks.py +0 -0
  347. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_http_handler_rollback.py +0 -0
  348. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_iconv_money_to_cents.py +0 -0
  349. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_identifier_injection_guard.py +0 -0
  350. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_identity.py +0 -0
  351. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_job_handler.py +0 -0
  352. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_job_lifecycle.py +0 -0
  353. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_job_record_guard.py +0 -0
  354. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_job_record_guard_postgres.py +0 -0
  355. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_job_results.py +0 -0
  356. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_json_columns.py +0 -0
  357. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_jsonb_dict_adapter.py +0 -0
  358. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_lambda_handler.py +0 -0
  359. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_lambda_handler_masquerade.py +0 -0
  360. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_lambda_handler_user_cache.py +0 -0
  361. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_lazy_engine.py +0 -0
  362. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_masquerade_grant.py +0 -0
  363. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_merge_on_conflict.py +0 -0
  364. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_mirror.py +0 -0
  365. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_mirror_upsert_public.py +0 -0
  366. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_mixins_import.py +0 -0
  367. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_n_plus_one.py +0 -0
  368. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_nosql_dynamodb.py +0 -0
  369. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_nosql_memory.py +0 -0
  370. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_nosql_mongodb.py +0 -0
  371. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_nosql_redis.py +0 -0
  372. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_nosql_translation.py +0 -0
  373. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_nosql_where.py +0 -0
  374. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_observability.py +0 -0
  375. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_on_action_default.py +0 -0
  376. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_on_commit.py +0 -0
  377. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_ops.py +0 -0
  378. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_audit_fixes.py +0 -0
  379. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_authorizenet_adapter.py +0 -0
  380. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_braintree_adapter.py +0 -0
  381. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_braintree_mirror.py +0 -0
  382. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_business_agnostic.py +0 -0
  383. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_charge_reference.py +0 -0
  384. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_extra_bounds.py +0 -0
  385. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_lazy_imports.py +0 -0
  386. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_mirror_empty_table.py +0 -0
  387. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_profile_sorting.py +0 -0
  388. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_payment_stripe_adapter.py +0 -0
  389. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pdf.py +0 -0
  390. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_permissions.py +0 -0
  391. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_permissions_actions.py +0 -0
  392. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_permissions_notices.py +0 -0
  393. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_permissions_review.py +0 -0
  394. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_bulk_cache.py +0 -0
  395. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_capability_types.py +0 -0
  396. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_ensure_infrastructure.py +0 -0
  397. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_get_tables.py +0 -0
  398. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_permissions.py +0 -0
  399. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_pointer_joins.py +0 -0
  400. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_row_scope.py +0 -0
  401. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_search_export.py +0 -0
  402. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_settings.py +0 -0
  403. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_tiles.py +0 -0
  404. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pgserver_user_data.py +0 -0
  405. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_plaid_api.py +0 -0
  406. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_plaid_webhook.py +0 -0
  407. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_pointer_join_sql.py +0 -0
  408. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_postgres_initializer_config.py +0 -0
  409. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_postgres_py_type.py +0 -0
  410. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_prepared_statements.py +0 -0
  411. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_psycopg3_upgrade.py +0 -0
  412. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_query_cache.py +0 -0
  413. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_query_missing_table_unlocked.py +0 -0
  414. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_raw_sql_prefix_policy.py +0 -0
  415. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_read_cache.py +0 -0
  416. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_readme_imports.py +0 -0
  417. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_record_event_postgres.py +0 -0
  418. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_record_event_transaction.py +0 -0
  419. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_response.py +0 -0
  420. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_restricted_direct_tables.py +0 -0
  421. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_result_returning.py +0 -0
  422. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_retry_side_effect_guard.py +0 -0
  423. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_return_default_safety.py +0 -0
  424. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_row_batch_update.py +0 -0
  425. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_row_cache_staleness.py +0 -0
  426. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_row_scoped_data_service.py +0 -0
  427. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_rules.py +0 -0
  428. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_rules_storage.py +0 -0
  429. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_s3_bucket_config.py +0 -0
  430. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_s3_list_client_files.py +0 -0
  431. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_s3_upload.py +0 -0
  432. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_scheduler.py +0 -0
  433. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_schema_lock_config_other_backends.py +0 -0
  434. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_schema_migrations.py +0 -0
  435. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_search_paging_export.py +0 -0
  436. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_security_capability.py +0 -0
  437. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_security_events_table_gate.py +0 -0
  438. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_security_hardening.py +0 -0
  439. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_security_rate_limit_pg.py +0 -0
  440. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_server_cursor.py +0 -0
  441. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_session_control.py +0 -0
  442. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_settings.py +0 -0
  443. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_single_autocommit_safety.py +0 -0
  444. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_single_session_capability.py +0 -0
  445. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_sms_twilio_signature.py +0 -0
  446. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_spreadsheet_functions.py +0 -0
  447. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_sql_statements_as_built.py +0 -0
  448. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_sqlite_backend.py +0 -0
  449. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_sqs_per_record_transactions.py +0 -0
  450. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_ssm_config.py +0 -0
  451. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_ssm_config_export_path.py +0 -0
  452. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_ssm_config_require.py +0 -0
  453. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_store_user_data.py +0 -0
  454. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_sys_modified_count_postgres_demo.py +0 -0
  455. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_table_alter.py +0 -0
  456. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_table_claim.py +0 -0
  457. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_table_find_cache.py +0 -0
  458. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_table_purge.py +0 -0
  459. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_testing_fake_db.py +0 -0
  460. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_tiles.py +0 -0
  461. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_transaction_class_wrapping.py +0 -0
  462. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_transaction_commit_and_ownership.py +0 -0
  463. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_transaction_edge_cases.py +0 -0
  464. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_tx_lifecycle_retry.py +0 -0
  465. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_tx_read_cache_and_bulk.py +0 -0
  466. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_user_data.py +0 -0
  467. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_user_not_provisioned.py +0 -0
  468. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_validation_override.py +0 -0
  469. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_where_clause_validation.py +0 -0
  470. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_actions.py +0 -0
  471. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_contract.py +0 -0
  472. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_definitions.py +0 -0
  473. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_designer.py +0 -0
  474. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_engine.py +0 -0
  475. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_features.py +0 -0
  476. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_operator.py +0 -0
  477. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_postgres.py +0 -0
  478. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_projection.py +0 -0
  479. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_review.py +0 -0
  480. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_traveler.py +0 -0
  481. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_workflow_views.py +0 -0
  482. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_write_hook_create_flow.py +0 -0
  483. {velocity_python-0.9.6 → velocity_python-0.9.8}/tests/test_write_hook_empty_strings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: velocity-python
3
- Version: 0.9.6
3
+ Version: 0.9.8
4
4
  Summary: A rapid application development library for interfacing with data storage
5
5
  Author-email: Velocity Team <info@codeclubs.org>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "velocity-python"
7
- version = "0.9.6"
7
+ version = "0.9.8"
8
8
  authors = [
9
9
  { name="Velocity Team", email="info@codeclubs.org" },
10
10
  ]
@@ -1,4 +1,4 @@
1
- __version__ = version = "0.9.6"
1
+ __version__ = version = "0.9.8"
2
2
 
3
3
  import importlib as _importlib
4
4
 
@@ -346,7 +346,11 @@ class LambdaHandler(BaseHandler):
346
346
  return dict(user) if user else None
347
347
 
348
348
  def afterAction(self, tx, context):
349
- self._enhanced_after_action(tx, context)
349
+ # As in beforeAction: a bare LambdaHandler (an SNS or scheduled
350
+ # handler, no WebHandler) has no activity tracking to finish.
351
+ enhanced = getattr(self, "_enhanced_after_action", None)
352
+ if callable(enhanced):
353
+ enhanced(tx, context)
350
354
  logger.debug("starting LamdaHandler.afterAction")
351
355
 
352
356
  self.end = time.time()
@@ -359,7 +363,9 @@ class LambdaHandler(BaseHandler):
359
363
  )
360
364
 
361
365
  def onError(self, tx, context, exc, tb):
362
- self._enhanced_error_handler(tx, context, exc, tb)
366
+ enhanced = getattr(self, "_enhanced_error_handler", None)
367
+ if callable(enhanced):
368
+ enhanced(tx, context, exc, tb)
363
369
  logger.debug("starting LamdaHandler.aws_api_activity")
364
370
  request_id = getattr(self.aws_context, "aws_request_id", None)
365
371
  logger.error(
@@ -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 ALL_TABLES, VALIDATION_ACTIONS, DataServiceMixin
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",
@@ -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.
@@ -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."""
@@ -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
+ ]