ferro-orm 0.20.0__tar.gz → 0.21.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.
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/AGENTS.md +154 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/CHANGELOG.md +39 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/CONTEXT.md +40 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/Cargo.lock +66 -74
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/Cargo.toml +1 -1
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/PKG-INFO +1 -1
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-ddl-lowering/Cargo.toml +1 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-ddl-lowering/src/lib.rs +3712 -1309
- ferro_orm-0.21.0/crates/ferro-ddl-lowering/src/policy_expr.rs +759 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-migrate/src/emit.rs +38 -19
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-migrate/src/tests.rs +108 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-schema-ir/src/lib.rs +544 -70
- ferro_orm-0.21.0/docs/adr/0017-omitted-nulls-means-last.md +26 -0
- ferro_orm-0.21.0/docs/adr/0018-position-paging.md +35 -0
- ferro_orm-0.21.0/docs/adr/0019-row-policy-drift-and-the-one-way-flags.md +92 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/mutations.py +39 -2
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/partial_selects.py +20 -6
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/predicates.py +72 -0
- ferro_orm-0.21.0/docs/examples/row_level_security.py +87 -0
- ferro_orm-0.21.0/docs/examples/row_level_security_annotated.py +78 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/traversal.py +40 -6
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/queries.md +1 -1
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/migrations.md +1 -1
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/models-and-fields.md +2 -2
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/mutations.md +69 -3
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/queries.md +40 -6
- ferro_orm-0.21.0/docs/pages/guide/row-level-security.md +696 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/howto/migrate-from-sqlalchemy.md +1 -1
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/howto/timestamps.md +9 -1
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/roadmap.md +1 -1
- ferro_orm-0.21.0/docs/solutions/issues/query-ir-version-pin-sweep.md +38 -0
- ferro_orm-0.21.0/docs/solutions/patterns/alembic-comparator-slot.md +61 -0
- ferro_orm-0.21.0/docs/solutions/patterns/json-family-factory-migrate-backfill.md +37 -0
- ferro_orm-0.21.0/docs/solutions/patterns/position-paging-after.md +30 -0
- ferro_orm-0.21.0/docs/solutions/patterns/wire-scalar-canonicalization.md +45 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/pyproject.toml +1 -1
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/backend.rs +356 -86
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/connection.rs +50 -13
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/__init__.py +106 -6
- ferro_orm-0.21.0/src/ferro/_bind_payload.py +243 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/_core.pyi +118 -11
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/columns.py +41 -3
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/ir/compiler.py +22 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/migrations/alembic.py +462 -8
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/models.py +73 -4
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/query/__init__.py +4 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/query/builder.py +349 -28
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/query/nodes.py +235 -22
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/query/wire.py +487 -37
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/raw.py +29 -2
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/relations/__init__.py +8 -0
- ferro_orm-0.21.0/src/ferro/rowsecurity.py +412 -0
- ferro_orm-0.21.0/src/ferro/session.py +482 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/state.py +22 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/introspect.rs +170 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/lib.rs +62 -2
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/migrate.rs +97 -10
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/naming_ffi.rs +193 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/operations.rs +2558 -1182
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/query.rs +840 -72
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/schema.rs +124 -24
- ferro_orm-0.21.0/src/session_settings.rs +2299 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/state.rs +298 -13
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/fixtures/ir_vectors/README.md +6 -3
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_account_exists_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_account_exists_v14.json +5 -3
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_account_scoped_exists_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_account_scoped_exists_v14.json +3 -2
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_card_after_null_slot_v14.json +56 -0
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_card_nulls_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_card_nulls_v14.json +5 -3
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_owner_nested_exists_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_owner_nested_exists_v14.json +3 -2
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_owner_not_exists_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_owner_not_exists_v14.json +3 -2
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_transaction_aggregate_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_transaction_aggregate_v14.json +8 -4
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_transaction_global_aggregate_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_transaction_global_aggregate_v14.json +3 -2
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_transaction_include_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_transaction_include_v14.json +5 -3
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_transaction_left_join_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_transaction_left_join_v14.json +3 -2
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_transaction_record_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_transaction_record_v14.json +5 -3
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_transaction_traversal_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_transaction_traversal_v14.json +7 -4
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_transaction_traversed_record_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_transaction_traversed_record_v14.json +12 -5
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_add_columns_set_v14.json +46 -0
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_add_literal_set_v14.json +49 -0
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_after_v14.json +56 -0
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_before_v14.json +56 -0
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_user_compound_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_compound_v14.json +5 -3
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_literal_set_v14.json +66 -0
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_user_m2m_exists_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_m2m_exists_v14.json +3 -2
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_merge_set_v14.json +53 -0
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_mixed_set_v14.json +49 -0
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_user_not_compound_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_not_compound_v14.json +3 -2
- ferro_orm-0.20.0/tests/fixtures/ir_vectors/query_user_not_leaf_v7.json → ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_not_leaf_v14.json +5 -3
- ferro_orm-0.21.0/tests/fixtures/ir_vectors/query_user_now_set_v14.json +38 -0
- ferro_orm-0.21.0/tests/test_after_position.py +315 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_auto_migrate.py +90 -0
- ferro_orm-0.21.0/tests/test_before_position.py +311 -0
- ferro_orm-0.21.0/tests/test_bulk_update.py +387 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_column_specs.py +99 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_connection.py +1 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_ir_vectors_contract.py +77 -14
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_migrate_plan.py +76 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_mutation_pagination_guard.py +8 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_order_by_nulls.py +20 -3
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_order_by_nulls_wire.py +34 -9
- ferro_orm-0.21.0/tests/test_position_paging_traversal.py +291 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_query_builder.py +78 -11
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_query_column_validation.py +17 -5
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_query_immutability.py +22 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_query_joins.py +7 -12
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_query_wire_vectors.py +264 -19
- ferro_orm-0.21.0/tests/test_rls_end_to_end.py +426 -0
- ferro_orm-0.21.0/tests/test_row_security_alembic.py +846 -0
- ferro_orm-0.21.0/tests/test_row_security_create_pass.py +905 -0
- ferro_orm-0.21.0/tests/test_row_security_orphans.py +390 -0
- ferro_orm-0.21.0/tests/test_row_security_rebuild.py +605 -0
- ferro_orm-0.21.0/tests/test_row_security_reconcile.py +641 -0
- ferro_orm-0.21.0/tests/test_save_semantics.py +914 -0
- ferro_orm-0.21.0/tests/test_session_set_config.py +480 -0
- ferro_orm-0.21.0/tests/test_session_settings.py +504 -0
- ferro_orm-0.21.0/tests/test_session_settings_connection_delivery.py +680 -0
- ferro_orm-0.21.0/tests/test_session_settings_operations.py +664 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_static_contracts.py +12 -11
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_table_check_reconcile.py +38 -0
- ferro_orm-0.21.0/tests/test_update_recipe.py +339 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/zensical.toml +1 -0
- ferro_orm-0.20.0/src/ferro/_bind_payload.py +0 -51
- ferro_orm-0.20.0/src/ferro/session.py +0 -128
- ferro_orm-0.20.0/tests/test_bulk_update.py +0 -66
- ferro_orm-0.20.0/tests/test_save_semantics.py +0 -358
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/PERMISSIONS.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/PYPI_CHECKLIST.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/PYPI_SETUP.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/generated/wheels.generated.yml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/pull_request_template.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/workflows/ci.yml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/workflows/packaging-smoke.yml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/workflows/publish-docs.yml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/workflows/publish.yml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.github/workflows/release.yml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.gitignore +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.pre-commit-config.yaml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/.python-version +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/CONTRIBUTING.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/LICENSE +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/README.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/README.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/__init__.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/__main__.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/backends.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/baselines/postgres.json +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/baselines/sqlite.json +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/compare.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/harness.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/model.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/benchmarks/run.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/context7.json +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-migrate/Cargo.toml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-migrate/src/lib.rs +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-migrate/src/order.rs +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/crates/ferro-schema-ir/Cargo.toml +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0001-resolved-epoch-registration.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0002-unified-column-fact-derivation.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0003-path-blind-db-type-validation.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0004-jsonb-postgres-only-canonical.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0005-jsonb-default-on-postgres.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0006-relation-traversal-inner-joins.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0007-materialization-plan-complete-instances.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0007-reverse-relations-tested-not-traversed.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0008-populated-relations-include.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0008-predicate-negation-uniform-not.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0009-aggregate-projections-derived-grouping.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0010-create-pass-owns-only-missing-tables.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0011-label-addition-update-gated-append-only.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0012-table-checks-are-lambdas.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0013-table-check-reconciliation.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0014-table-checks-sqlite-create-only.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0015-table-check-body-drift.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/adr/0016-check-predicates-literals-only.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/agents/domain.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/agents/issue-tracker.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/agents/triage-labels.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/architecture-review-2026-07-08.html +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-04-29-named-connections-role-routing-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-05-08-typed-query-predicates-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-05-13-configurable-column-storage-types-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-05-14-autogenerate-support-for-db-type-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-05-25-annotated-strenum-cold-hydration-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-24-ir-p8-119-wire-automigrate-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-25-ir-p8-120-parity-gate-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-26-ir-p8.5-140-shared-lowering-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-26-ir-p8.5-143-db-type-drop-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-26-ir-p8.5-144-reconcile-indexes-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-28-ir-p8.5-141-single-schema-ir-producer-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-29-ir-p8.6-146-dialect-enum-unification-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-29-ir-p8.6-153-create-path-ir-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-30-ir-p8.6-155-deferred-annotations-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-06-30-ir-p8.6-158-check-renderer-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-07-01-ir-p8.6-154-datetime-tz-coarseness-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-07-01-ir-p8.6-162-typed-save-bind-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-07-01-ir-p8.6-165-blob-introspection-false-positive-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-07-02-ff-c1-codec-plan-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/brainstorms/2026-07-06-upgrade-guide-consolidation-requirements.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/aggregations.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/aggregations_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/existence_tests.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/existence_tests_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/multiple_databases.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/pagination.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/partial_selects_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/populated_relations.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/populated_relations_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/predicates_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/quickstart.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/quickstart_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/raw_sql.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/relationships.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/relationships_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/soft_deletes.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/soft_deletes_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/table_checks.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/table_checks_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/testing_conftest.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/timestamps.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/timestamps_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/transactions.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/examples/traversal_annotated.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/connection.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/exceptions.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/fields.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/migrations.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/model.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/raw-sql.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/relationships.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/api/transactions.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/changelog.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/concepts/architecture.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/concepts/backends.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/concepts/identity-map.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/concepts/performance.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/concepts/query-typing.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/concepts/type-safety.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/contributing.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/faq.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/getting-started/installation.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/getting-started/next-steps.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/getting-started/quickstart.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/aggregations.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/connections.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/raw-sql.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/relationships.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/guide/transactions.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/howto/multiple-databases.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/howto/pagination.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/howto/soft-deletes.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/howto/testing.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/howto/upgrade-guide.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/index.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/stylesheets/extra.css +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/pages/why-ferro.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-04-24-001-refactor-multi-db-backend-architecture-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-04-29-001-typed-null-binds-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-04-29-002-feat-named-connections-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-05-07-001-refactor-generic-model-connection-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-05-08-001-feat-typed-query-predicates-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-05-13-001-feat-configurable-column-storage-types-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-05-25-001-fix-annotated-strenum-cold-hydration-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-19-001-ir-first-roadmap.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-24-001-feat-ir-p8-119-wire-automigrate-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-25-001-feat-ir-p8-120-parity-gate-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-26-001-feat-ir-p8.5-140-shared-lowering-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-26-002-feat-ir-p8.5-143-db-type-drop-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-26-003-feat-ir-p8.5-144-reconcile-indexes-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-28-001-feat-ir-p8.5-141-single-schema-ir-producer-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-29-001-refactor-ir-p8.6-153-create-path-unification-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-29-002-refactor-ir-p8.6-146-dialect-enum-unification-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-30-001-refactor-ir-p8.6-158-check-renderer-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-06-30-002-fix-ir-p8.6-155-deferred-annotations-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-01-001-feat-ir-p8.6-162-typed-save-bind-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-01-002-fix-ir-p8.6-154-datetime-tz-coarseness-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-01-003-fix-ir-p8.6-165-blob-introspection-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-02-001-fable-fixes-roadmap.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-02-002-feat-ff-a-172-typed-exceptions-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-02-003-ff-c-native-decode-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-02-004-ff-c-c2-catalog-cache-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-02-005-ff-d-identity-routing-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-02-006-ff-d-identity-routing-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-03-007-ff-e-registry-identity-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-03-008-ff-e-registry-identity-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-06-009-ff-f-query-builder-1.0-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-06-010-ff-f-query-builder-1.0-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-06-011-ff-g-hardening-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-06-012-ff-g-hardening-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-06-013-ff-g2-operations-dedup-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-06-014-ff-g2-operations-dedup-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-06-015-docs-upgrade-guide-consolidation-plan.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/2026-07-18-016-existence-tests-design.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/ir-first-migration-guide.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/plans/ir-first-release-checklist.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/rfc/ir-contracts-v1.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/README.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/architecture-patterns/ir-first-lowering-consolidation-audit.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/architecture-patterns/ir-first-merge-readiness-review.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/pg18-restrict-sqlstate-23001.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/pydantic-slots-missing-after-ferro-hydration.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/python-3.14-deferred-annotation-typeerror-swallow.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/sa-pk-column-nullable-divergence.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/sa-vs-rust-unique-constraint-shape.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/self-fk-evicts-component-from-create-order.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/sqlite-integer-decimal-hydrates-as-none.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/sqlite-null-hydrates-as-int-zero.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/issues/typed-where-null-panics-is-null.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/configurable-column-storage-types.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/cross-emitter-ddl-parity.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/ddl-on-live-engine.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/derived-type-and-naming-decision-table.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/foreign-key-index.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/index-unique-redundancy.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/ir-invariants.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/persistence-state.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/shadow-fk-columns.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/sqlite-alembic-reconnect-hydration-tests.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/docs/solutions/patterns/typed-null-binds.md +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/justfile +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/scripts/demo_queries.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/scripts/demo_queries_pre_v012.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/codec.rs +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/codec_plan.rs +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/errors.rs +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/_annotation_utils.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/_deprecations.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/_shadow_fk_types.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/base.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/checks.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/composite_indexes.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/composite_uniques.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/exceptions.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/fields.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/ir/__init__.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/metaclass.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/migrations/__init__.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/py.typed +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/query/rows.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/registry.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/ferro/relations/descriptors.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/hydration.rs +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/src/schema_bind.rs +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/__init__.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/conftest.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/db_backends.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/fixtures/ir_vectors/codec_registry_core_v1.json +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/fixtures/ir_vectors/schema_invoice_baseline_v1.json +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/fixtures/ir_vectors/schema_phase1_fixture_models_v1.json +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/fixtures/ir_vectors/schema_raw_str_pk_autoincrement_v1.json +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/static_fixtures/bad_includes.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/static_fixtures/bad_predicates.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/static_fixtures/bad_projections.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/static_fixtures/good_includes.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/static_fixtures/good_predicates.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/static_fixtures/good_projections.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_aggregation.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_alembic_autogenerate.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_alembic_bridge.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_alembic_db_type.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_alembic_nullability.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_alembic_type_mapping.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_annotation_utils.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_bulk_create_chunking.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_bulk_install.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_catalog_cache.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_check_predicate_dialect.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_codec_plan.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_compiled_query.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_composite_index.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_composite_unique.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_connection_redaction.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_constraints.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_cross_emitter_parity.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_crud.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_db_backends.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_db_type_cross_emitter_parity.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_db_type_integration.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_db_type_typing.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_db_type_validation.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_deletion.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_deprecations.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_docs_examples.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_documentation_features.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_enum_cold_hydration.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_exception_mapping.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_exceptions.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_field_wrapper.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_fk_target_pk.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_generation_counter_dirty_tracking.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_global_aggregates.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_grouped_aggregates.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_helpers.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_hydration.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_hydration_equivalence.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_identity_memory.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_identity_refresh.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_identity_scoped_invalidation.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_identity_weakref.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_import_budget.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_include.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_label_addition.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_live_table_checks.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_metaclass_internals.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_metadata.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_model_identity.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_models.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_named_connections_integration.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_naming_single_source.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_negation.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_one_to_one.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_operation_seam_sync.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_partial_selects.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_primary_key_facts.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_provisional_import.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_query_exists.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_query_typing.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_raw_sql.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_refresh.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_registry_entrypoints.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_registry_owner.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_relation_specs.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_relationship_engine.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_relationship_resolution_errors.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_route_single_site.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_routing_errors.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_save_pk_edges.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_schema.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_schema_constraints.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_schema_db_type_metadata.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_schema_enum_annotations.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_session.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_shadow_fk_types.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_sqlite_alembic_reconnect_hydration.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_string_search.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_structural_types.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_table_check_orphans.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_table_check_rebuild.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_table_checks.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_temporal_types.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_transactions.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_traversed_projection.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_typed_null_binds.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/tests/test_typed_save_bind.py +0 -0
- {ferro_orm-0.20.0 → ferro_orm-0.21.0}/uv.lock +0 -0
|
@@ -98,6 +98,89 @@ For a single model, every emitter must agree on:
|
|
|
98
98
|
the byte-identical statements. Pinned by
|
|
99
99
|
`tests/test_table_check_orphans.py`. See ADR-0013 (leftover warning +
|
|
100
100
|
destructive ladder) and ADR-0014 (SQLite warn-skip).
|
|
101
|
+
15. **Row policy names and DDL** — the live policy name
|
|
102
|
+
(`rls_<table>_<name>`; `name` defaults to the shorthand's column), the
|
|
103
|
+
column/setting shorthand's cast (from `resolve_column_storage`; `uuid`,
|
|
104
|
+
`text`/`varchar` and the integer families only), the rendered
|
|
105
|
+
`<col> = NULLIF(current_setting('<key>', true), '')::<cast>` expression,
|
|
106
|
+
and the full `ALTER TABLE … ENABLE/FORCE ROW LEVEL SECURITY` +
|
|
107
|
+
`CREATE POLICY` statements are decided by ONE family of functions in
|
|
108
|
+
`ferro_ddl_lowering`: `row_policy_name` / `is_ferro_row_policy_name` /
|
|
109
|
+
`row_policy_shorthand_cast` / `render_row_policy_setting_expr` /
|
|
110
|
+
`row_policy_clauses` / `render_create_row_policy` /
|
|
111
|
+
`render_enable_row_security` / `render_force_row_security` /
|
|
112
|
+
`row_security_statements`, over the command table
|
|
113
|
+
`ROW_POLICY_COMMANDS` / `row_policy_command_token` /
|
|
114
|
+
`row_policy_command_takes_using` / `row_policy_command_takes_with_check`.
|
|
115
|
+
The auto-migrate create pass consumes them through
|
|
116
|
+
`ferro_migrate::render_create_table`. The Python declaration surface
|
|
117
|
+
(`src/ferro/rowsecurity.py`) consumes the name, the cast, and the command
|
|
118
|
+
table over FFI (`_core._ddl_row_policy_name`, `_core._rls_shorthand_cast`,
|
|
119
|
+
`_core._rls_command_matrix`) rather than keeping its own copies, so a
|
|
120
|
+
declaration fails at class definition for exactly the columns and clauses
|
|
121
|
+
DDL would fail for. The Alembic autogenerate operation
|
|
122
|
+
(`FerroRowSecurityOp` in `src/ferro/migrations/alembic.py`) consumes the
|
|
123
|
+
whole emission over FFI (`_core._plan_row_security`, for a table this
|
|
124
|
+
same revision creates — the seam and its byte-parity with the create pass
|
|
125
|
+
are pinned by `test_row_security_statement_parity_pin`). Pinned by
|
|
126
|
+
`tests/test_row_security_create_pass.py` and the ferro-ddl-lowering unit
|
|
127
|
+
pins. Postgres-only; SQLite gets one warning per table and no DDL
|
|
128
|
+
(ADR-0014 posture). See PRD #406.
|
|
129
|
+
16. **Row-security reconciliation on a live table** — the whole decision for
|
|
130
|
+
one existing table (which declared policies are missing, which live ones
|
|
131
|
+
drifted, which raw bodies ferro cannot verify, which ferro-owned `rls_*`
|
|
132
|
+
policies are orphaned, which live policies are foreign, the one-way
|
|
133
|
+
`ENABLE`/`FORCE` statements, the `migrate_destructive` teardown, and every
|
|
134
|
+
warning) is decided by ONE function family in `ferro_ddl_lowering`, over
|
|
135
|
+
the same `LiveRowSecurity` / `LiveRowPolicy` input:
|
|
136
|
+
`plan_row_security_reconcile` — built from `missing_row_policy_names` /
|
|
137
|
+
`row_policy_drift` / `extra_row_policy_names` /
|
|
138
|
+
`missing_row_security_flag_statements` /
|
|
139
|
+
`excess_row_security_flag_statements` / `render_drop_row_policy` /
|
|
140
|
+
`row_policy_rebuild_statements`, the two ownership tests
|
|
141
|
+
(`is_default_row_policy_roles` for a policy's `TO` audience,
|
|
142
|
+
`ferro_manages_row_security` for whether ferro installed the table's row
|
|
143
|
+
security at all — the gate on every teardown and every dropped-declaration
|
|
144
|
+
warning), one normalizer (`normalize_row_policy_expr`), one catalog decoder
|
|
145
|
+
(`row_policy_command_from_catalog_code`), and the warning texts
|
|
146
|
+
(`dropped_row_security_warning`, `extra_row_policy_names_warning`,
|
|
147
|
+
`foreign_row_policy_warning`, `unverifiable_row_policy_warning`,
|
|
148
|
+
`row_policy_body_replaced_warning`, `row_security_teardown_warning`,
|
|
149
|
+
`row_security_migrator_warning`). The
|
|
150
|
+
auto-migrate reconciliation pass consumes it directly (`src/migrate.rs`,
|
|
151
|
+
after that table's column and data steps); the Alembic autogenerate
|
|
152
|
+
operation (`FerroRowSecurityOp` / `FerroRowSecurityDropOp` in
|
|
153
|
+
`src/ferro/migrations/alembic.py`) consumes it over FFI
|
|
154
|
+
(`_core._plan_row_security_reconcile`, called once non-destructive and
|
|
155
|
+
once destructive per live table — the destructive call's statements are
|
|
156
|
+
the non-destructive call's as an exact prefix, so the comparator slices
|
|
157
|
+
the tail to isolate the orphan/teardown-only statements without
|
|
158
|
+
re-deriving anything; whose byte-parity with the pass is pinned). Live
|
|
159
|
+
state comes from `src/introspect.rs` for the runtime pass
|
|
160
|
+
(`live_table_row_security`: `pg_class.relrowsecurity` /
|
|
161
|
+
`relforcerowsecurity` plus `pg_policy` — name, command, permissive, both
|
|
162
|
+
`pg_get_expr` bodies, and `polroles` resolved to role names — with
|
|
163
|
+
`ferro_owned` decided by `is_ferro_row_policy_name`) and from the
|
|
164
|
+
comparator's own equivalent `pg_class`/`pg_policy` query for the Alembic
|
|
165
|
+
side (`_live_row_security_by_table` in `src/ferro/migrations/alembic.py`,
|
|
166
|
+
the same shape `_live_check_names_by_table` uses) — the command decode
|
|
167
|
+
and the ownership test are the same two functions over FFI
|
|
168
|
+
(`_core._row_policy_command_from_catalog_code`,
|
|
169
|
+
`_core._is_ferro_row_policy_name`), never a second copy. Pinned by
|
|
170
|
+
`tests/test_row_security_reconcile.py`,
|
|
171
|
+
`tests/test_row_security_rebuild.py`,
|
|
172
|
+
`tests/test_row_security_orphans.py` and the ferro-ddl-lowering unit pins
|
|
173
|
+
(which carry real `pg_get_expr` fixtures). Postgres-only: SQLite plans
|
|
174
|
+
nothing and keeps the create pass's single warning (ADR-0014). Two
|
|
175
|
+
reported categories never become an autogenerate op, on purpose and
|
|
176
|
+
silently: a **foreign** policy (never altered on any migration door) and
|
|
177
|
+
an **unverifiable** raw body (ADR-0019: ferro cannot tell an edit from
|
|
178
|
+
Postgres's own re-spelling, so it changes nothing and only warns on
|
|
179
|
+
`migrate_updates`) — the checks family has no comment-op precedent for
|
|
180
|
+
either shape, so autogenerate stays silent and the runtime's own
|
|
181
|
+
connect-time warnings remain the only word on them. See ADR-0019
|
|
182
|
+
(rebuild the bodies ferro writes, report the bodies you write; flags are
|
|
183
|
+
one-way) and PRD #406.
|
|
101
184
|
|
|
102
185
|
### Why this invariant exists
|
|
103
186
|
|
|
@@ -372,6 +455,77 @@ communicated, not what gets built.
|
|
|
372
455
|
|
|
373
456
|
---
|
|
374
457
|
|
|
458
|
+
## I-12: Ferro Alembic comparators declare their slot relative to table ops
|
|
459
|
+
|
|
460
|
+
Every ferro schema comparator states its position relative to Alembic's own
|
|
461
|
+
table ops (`create_table` / `ModifyTableOps`) as part of its interface — not
|
|
462
|
+
as a comment.
|
|
463
|
+
|
|
464
|
+
A generated revision that adds a column and a table check over it must emit
|
|
465
|
+
`ADD COLUMN` before `ADD CONSTRAINT`:
|
|
466
|
+
|
|
467
|
+
```python
|
|
468
|
+
class Card(Model):
|
|
469
|
+
flavor: str | None = None # new this revision
|
|
470
|
+
__ferro_checks__ = (Check("flavor_set", lambda card: card.flavor != None),)
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
Default `MEDIUM` does not do that: Ferro's import-time registration runs
|
|
474
|
+
before Alembic injects its table comparator into the same bucket, so check
|
|
475
|
+
ops `extend` the list while it still has no table ops (#423).
|
|
476
|
+
|
|
477
|
+
After-tables families (`ADD CONSTRAINT` over a new column, `CREATE POLICY`
|
|
478
|
+
on a new table) register at `priority=LAST`. Before-tables families (enum
|
|
479
|
+
label addition) register at `priority=FIRST` and insert at the front of the
|
|
480
|
+
ops list. Default `MEDIUM` is an I-12 violation for ferro schema
|
|
481
|
+
comparators. Alembic's own table comparator may remain `MEDIUM`. A
|
|
482
|
+
same-revision pin is required for every after-tables family.
|
|
483
|
+
|
|
484
|
+
Pinned by the row-security comparator's LAST registration and
|
|
485
|
+
`test_new_declaration_on_a_brand_new_table_lands_after_create_table`, and
|
|
486
|
+
by `test_autogenerate_adds_a_column_before_the_check_that_references_it`
|
|
487
|
+
(#423). Architecture review: I-19 in #427. See PRD #429 and
|
|
488
|
+
`docs/solutions/patterns/alembic-comparator-slot.md`.
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
## I-13: Query and update literals match save() for datetime/date/time/UUID/Decimal
|
|
493
|
+
|
|
494
|
+
A developer pages a chat transcript with `after()` on a UTC datetime order
|
|
495
|
+
key:
|
|
496
|
+
|
|
497
|
+
```python
|
|
498
|
+
pinned_at = datetime(2026, 3, 1, 15, 0, tzinfo=UTC)
|
|
499
|
+
await Message(id=2, pinned_at=pinned_at, ...).save()
|
|
500
|
+
page = await (
|
|
501
|
+
Message.order_by(lambda m: m.pinned_at)
|
|
502
|
+
.order_by(lambda m: m.id)
|
|
503
|
+
.after((pinned_at, 2))
|
|
504
|
+
.all()
|
|
505
|
+
)
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
SQLite stores that timestamp as **text**. `save()` writes pydantic JSON
|
|
509
|
+
(`2026-03-01T15:00:00Z`). `datetime.isoformat()` writes `…+00:00`. Those are
|
|
510
|
+
the same instant to a human and to Postgres `timestamptz`; to SQLite they
|
|
511
|
+
are different strings, so keyset prefix equality misses and the next page
|
|
512
|
+
can skip the cursor row.
|
|
513
|
+
|
|
514
|
+
Query and `update()` literals for `datetime`, `date`, `time`, UUID, and
|
|
515
|
+
Decimal canonicalize through one function (`canonicalize_wire_scalar`) whose
|
|
516
|
+
output for a given value is pinned against `save_bind_payload`. `save()`
|
|
517
|
+
remains instance `model_dump` (field serializers stay on that door). A
|
|
518
|
+
second datetime/UUID/Decimal cascade — including `datetime.isoformat()` or a
|
|
519
|
+
“mirrors save_bind_payload” comment — is an I-13 violation. Enums on the
|
|
520
|
+
query wire are out of scope for this invariant.
|
|
521
|
+
|
|
522
|
+
Pinned by helper-vs-save unit equality for those five types and by a SQLite
|
|
523
|
+
`save` then `after((original_python_datetime, pk))` paging test.
|
|
524
|
+
Architecture review: I-22 in #428. See PRD #430 and
|
|
525
|
+
`docs/solutions/patterns/wire-scalar-canonicalization.md`.
|
|
526
|
+
|
|
527
|
+
---
|
|
528
|
+
|
|
375
529
|
## Agent skills
|
|
376
530
|
|
|
377
531
|
### Issue tracker
|
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v0.21.0 (2026-09-17)
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
- **alembic**: Emit check constraints after table ops
|
|
9
|
+
([#431](https://github.com/syn54x/ferro-orm/pull/431),
|
|
10
|
+
[`fca2434`](https://github.com/syn54x/ferro-orm/commit/fca2434884cd3189096cc9503411cb7ffd1a5551))
|
|
11
|
+
|
|
12
|
+
- **query**: Canonicalize datetime/UUID/Decimal literals against save()
|
|
13
|
+
([#432](https://github.com/syn54x/ferro-orm/pull/432),
|
|
14
|
+
[`23c4031`](https://github.com/syn54x/ferro-orm/commit/23c40319be8d590f00c54eea3efc9e02876f4b87))
|
|
15
|
+
|
|
16
|
+
- **query**: Session-aware merge dialect and recipe-column kwargs
|
|
17
|
+
([#385](https://github.com/syn54x/ferro-orm/pull/385),
|
|
18
|
+
[`961e1d8`](https://github.com/syn54x/ferro-orm/commit/961e1d8411044a5e1667d9962d7a7cf3c08cef56))
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- Postgres Row-Level Security — session settings + declarative row policies (PRD #406)
|
|
23
|
+
([#426](https://github.com/syn54x/ferro-orm/pull/426),
|
|
24
|
+
[`c5d72f8`](https://github.com/syn54x/ferro-orm/commit/c5d72f831cb61e458d9f307fcd0745f1dfc03b4e))
|
|
25
|
+
|
|
26
|
+
- **migrate**: Accept JSON object/array literals on NOT NULL column adds
|
|
27
|
+
([#374](https://github.com/syn54x/ferro-orm/pull/374),
|
|
28
|
+
[`aa55c16`](https://github.com/syn54x/ferro-orm/commit/aa55c16c2bbb79f470b93a134bd83df9ad540d2e))
|
|
29
|
+
|
|
30
|
+
- **query**: Position paging after()/before() from order_by
|
|
31
|
+
([#404](https://github.com/syn54x/ferro-orm/pull/404),
|
|
32
|
+
[`de92b42`](https://github.com/syn54x/ferro-orm/commit/de92b424112eda30504c5ab75e8ebd64a7e239da))
|
|
33
|
+
|
|
34
|
+
- **query**: Value expressions in update recipes
|
|
35
|
+
([#384](https://github.com/syn54x/ferro-orm/pull/384),
|
|
36
|
+
[`dc6087a`](https://github.com/syn54x/ferro-orm/commit/dc6087a3e249e754d4cce43bbe34b5f478f0df69))
|
|
37
|
+
|
|
38
|
+
- **save**: Partial persist with only= and exclude=
|
|
39
|
+
([#391](https://github.com/syn54x/ferro-orm/pull/391),
|
|
40
|
+
[`e5e4692`](https://github.com/syn54x/ferro-orm/commit/e5e469232911e89886881732810ca52cbef5b0ab))
|
|
41
|
+
|
|
42
|
+
|
|
4
43
|
## v0.20.0 (2026-08-29)
|
|
5
44
|
|
|
6
45
|
### Chores
|
|
@@ -88,6 +88,22 @@ _Avoid_: Select list, projection spec, hydration mode flag
|
|
|
88
88
|
The single typed wire artifact a query ships to the Rust runtime — model identity, predicates, ordering, paging, joins, and exactly one materialization plan, inside a versioned envelope. Compiled only by `compile_query`; no other code assembles query wire shape.
|
|
89
89
|
_Avoid_: Query dict, query def, payload dict
|
|
90
90
|
|
|
91
|
+
**Paging**:
|
|
92
|
+
The QueryIR window over matching rows: a size (`limit`) and a start. A start is either an offset or one position bound (`after` or `before`, never both). Both bounds are exclusive of the position. A limited `before` is the adjacent previous page; an unbounded `before` is every earlier row in declared order. Paging is not a predicate — it does not change which rows match — and `count()` drops it.
|
|
93
|
+
_Avoid_: pagination, cursor, page filter
|
|
94
|
+
|
|
95
|
+
**Position**:
|
|
96
|
+
The ordered tuple of a query's order-key values that marks one row's place in that order. Two rows never share a position: the order keys include the model's primary key. A non-PK slot may be empty (`None`); the PK slot may not. `after`/`before` start the page from a position; `position_of` reads one off a model instance, or off a projected record that carries every order key. Traversed order keys require those relations populated. Not a cursor — encoding is the caller's.
|
|
97
|
+
_Avoid_: cursor, bookmark, page token, keyset
|
|
98
|
+
|
|
99
|
+
**Order key**:
|
|
100
|
+
One term in a query's `order_by`: the column (root or traversed), its direction, and its null placement. A position holds one value per order key, in declaration order.
|
|
101
|
+
_Avoid_: sort field, sort column, order term
|
|
102
|
+
|
|
103
|
+
**Null placement**:
|
|
104
|
+
Where NULL sort keys land for one order key: `last`, `first`, or `native` (that backend's own default — Postgres and SQLite are opposites). Omitted means `last`, so the same order on every backend. `native` is never implied.
|
|
105
|
+
_Avoid_: dialect default, omitted nulls
|
|
106
|
+
|
|
91
107
|
**Compiled query**:
|
|
92
108
|
The single artifact `compile_query` returns: the QueryIR payload, its wire JSON, and the plan-scoped hop-class map, all views of one compile. The map is collected from the hop facts the payload itself carries, so wire and hop classes can never disagree; it is `None` unless the materialization plan decodes or hydrates through a hop model's class (mirroring the Rust `needs_hop_classes` guard — a both-sides double-check). No other code assembles hop classes for the FFI.
|
|
93
109
|
_Avoid_: payload + kwargs, hop-class side-channel, wire tuple
|
|
@@ -159,3 +175,27 @@ _Avoid_: table-level check, multi-column check, composite check, row check
|
|
|
159
175
|
**Check predicate**:
|
|
160
176
|
The lambda body of a table check — a ferro predicate over that model's own columns (or a forward-FK null test on the relation or its shadow `*_id`), with literal values only. Relation traversal, existence tests, and aggregates are not check predicates.
|
|
161
177
|
_Avoid_: check SQL, constraint expression, check body
|
|
178
|
+
|
|
179
|
+
**Session settings**:
|
|
180
|
+
Key/value Postgres settings (GUCs) belonging to a ferro `Session`, applied by ferro to whichever database connection runs each of the session's statements. The unit of tenancy scope for Row-Level Security.
|
|
181
|
+
_Avoid_: Session variables, Postgres session state, connection settings
|
|
182
|
+
|
|
183
|
+
**Settings delivery**:
|
|
184
|
+
How session settings reach the database: `transaction` (default — `SET LOCAL` inside every transaction, implicit ones included; safe behind any pooler) or `connection` (opt-in — `SET` once on a pinned connection, reset on close; direct-Postgres only). Delivery is the mechanism; session settings are the values.
|
|
185
|
+
_Avoid_: Pooler mode, GUC mode, SET mode
|
|
186
|
+
|
|
187
|
+
**Operation atomicity**:
|
|
188
|
+
Every ferro operation is atomic: it issues one statement, or — when it must issue several — runs them inside the ambient transaction when one exists and self-wraps in its own transaction when none does (the `bulk_create` chunking contract, #298). Settings delivery rides this invariant; it never creates a new atomicity boundary.
|
|
189
|
+
_Avoid_: Implicit transaction, auto-commit batching, per-statement autocommit
|
|
190
|
+
|
|
191
|
+
**Row policy**:
|
|
192
|
+
One named row-visibility rule on a model, enforced by Postgres as a `rls_<table>_<name>` policy. Declared as a column/setting shorthand (rendered with `NULLIF` and the column spec's cast) or a raw expression; scoped to a command; permissive (OR) or restrictive (AND).
|
|
193
|
+
_Avoid_: RLS rule, tenant filter, row filter
|
|
194
|
+
|
|
195
|
+
**Row security declaration**:
|
|
196
|
+
The table-level `RowSecurity(*policies, force=True)` ClassVar (`__ferro_rls__`) — the single owner of a model's row-security facts: its policies plus the table flags (`ENABLE`, `FORCE`). Ferro reconciles it one-way: flags and ferro-owned policies are created and rebuilt to match the model, never disabled or dropped outside `migrate_destructive`.
|
|
197
|
+
_Avoid_: Policy tuple, RLS config, security metadata
|
|
198
|
+
|
|
199
|
+
**Policy rebuild**:
|
|
200
|
+
Drop-and-recreate of a ferro-owned row policy whose live catalog entry no longer matches the declaration — its command, its permissive/restrictive composition, which clauses it carries, or a body ferro itself rendered. Metadata-only: no row is read, validated, or rewritten. A body the *author* wrote (the raw `using=`/`with_check=` form) is never rebuilt on a textual difference — Postgres stores its own rewriting of raw SQL, so ferro reports the difference with both texts instead (ADR-0019).
|
|
201
|
+
_Avoid_: Policy alter, policy sync, RLS drift repair
|