sqlbuild 0.0.1__tar.gz → 0.2.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.
- sqlbuild-0.2.0/.github/sqlbuild-logo-rounded.png +0 -0
- sqlbuild-0.2.0/.github/sqlbuild-logo.png +0 -0
- sqlbuild-0.2.0/.github/workflows/release-please.yml +20 -0
- sqlbuild-0.2.0/.github/workflows/version-guard.yml +47 -0
- sqlbuild-0.2.0/.gitignore +56 -0
- sqlbuild-0.2.0/.pre-commit-config.yaml +60 -0
- sqlbuild-0.2.0/.release-please-manifest.json +3 -0
- sqlbuild-0.2.0/CHANGELOG.md +187 -0
- sqlbuild-0.2.0/LICENSE +201 -0
- sqlbuild-0.2.0/Makefile +99 -0
- sqlbuild-0.2.0/PKG-INFO +142 -0
- sqlbuild-0.2.0/README.md +123 -0
- sqlbuild-0.2.0/examples/waffle_shop/audits/generic/accepted_values.sql +5 -0
- sqlbuild-0.2.0/examples/waffle_shop/audits/generic/expression_is_true.sql +5 -0
- sqlbuild-0.2.0/examples/waffle_shop/audits/generic/not_null.sql +5 -0
- sqlbuild-0.2.0/examples/waffle_shop/audits/generic/unique.sql +6 -0
- sqlbuild-0.2.0/examples/waffle_shop/functions/python/is_completed_order_py.py +10 -0
- sqlbuild-0.2.0/examples/waffle_shop/functions/sql/customer_orders.sql +21 -0
- sqlbuild-0.2.0/examples/waffle_shop/functions/sql/is_completed_order.sql +6 -0
- sqlbuild-0.2.0/examples/waffle_shop/macros/currency.py +6 -0
- sqlbuild-0.2.0/examples/waffle_shop/macros/datetime.py +7 -0
- sqlbuild-0.2.0/examples/waffle_shop/materializations/partition_tracked.py +170 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/intermediate/customer_status_snapshot.sql +39 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/intermediate/order_status_index.sql +25 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/marts/daily_activity_rollup.sql +33 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/marts/daily_order_partitioned.sql +34 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/marts/daily_revenue.sql +22 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/marts/dim_customers.sql +23 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/marts/fact_orders.sql +27 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/marts/hourly_activity_with_daily_context.sql +34 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/marts/hourly_order_activity.sql +32 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/staging/stg_customers.sql +17 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/staging/stg_orders.sql +23 -0
- sqlbuild-0.2.0/examples/waffle_shop/models/staging/stg_payments.sql +18 -0
- sqlbuild-0.2.0/examples/waffle_shop/seeds/lookups.yml +12 -0
- sqlbuild-0.2.0/examples/waffle_shop/seeds/waffle_types.csv +7 -0
- sqlbuild-0.2.0/examples/waffle_shop/sources/raw.yml +42 -0
- sqlbuild-0.2.0/examples/waffle_shop/sqlbuild_project.yml +23 -0
- sqlbuild-0.2.0/examples/waffle_shop/tests/test_daily_revenue_chain.sql +81 -0
- sqlbuild-0.2.0/examples/waffle_shop/tests/test_fact_orders.sql +46 -0
- sqlbuild-0.2.0/examples/waffle_shop/tests/test_stg_orders.sql +22 -0
- sqlbuild-0.2.0/pyproject.toml +76 -0
- sqlbuild-0.2.0/release-please-config.json +12 -0
- sqlbuild-0.2.0/scripts/__init__.py +1 -0
- sqlbuild-0.2.0/scripts/sqlbuild_diff_summary_prototype.py +322 -0
- sqlbuild-0.2.0/scripts/structure/__init__.py +1 -0
- sqlbuild-0.2.0/scripts/structure/check_structure_conventions.py +22 -0
- sqlbuild-0.2.0/scripts/structure/structure_conventions/__init__.py +1 -0
- sqlbuild-0.2.0/scripts/structure/structure_conventions/checker.py +121 -0
- sqlbuild-0.2.0/scripts/structure/structure_conventions/constants.py +11 -0
- sqlbuild-0.2.0/scripts/structure/structure_conventions/filesystem.py +68 -0
- sqlbuild-0.2.0/scripts/structure/structure_conventions/models.py +24 -0
- sqlbuild-0.2.0/scripts/structure/structure_conventions/rules.py +1272 -0
- sqlbuild-0.2.0/scripts/testing/__init__.py +1 -0
- sqlbuild-0.2.0/scripts/testing/check_test_conventions.py +22 -0
- sqlbuild-0.2.0/scripts/testing/test_conventions/__init__.py +1 -0
- sqlbuild-0.2.0/scripts/testing/test_conventions/ast_utils.py +70 -0
- sqlbuild-0.2.0/scripts/testing/test_conventions/checker.py +134 -0
- sqlbuild-0.2.0/scripts/testing/test_conventions/constants.py +6 -0
- sqlbuild-0.2.0/scripts/testing/test_conventions/filesystem.py +56 -0
- sqlbuild-0.2.0/scripts/testing/test_conventions/models.py +42 -0
- sqlbuild-0.2.0/scripts/testing/test_conventions/rules.py +767 -0
- sqlbuild-0.2.0/scripts/type_annotations/__init__.py +1 -0
- sqlbuild-0.2.0/scripts/type_annotations/check_type_annotation_conventions.py +24 -0
- sqlbuild-0.2.0/scripts/type_annotations/type_annotation_conventions/__init__.py +1 -0
- sqlbuild-0.2.0/scripts/type_annotations/type_annotation_conventions/checker.py +55 -0
- sqlbuild-0.2.0/scripts/type_annotations/type_annotation_conventions/filesystem.py +38 -0
- sqlbuild-0.2.0/scripts/type_annotations/type_annotation_conventions/models.py +24 -0
- sqlbuild-0.2.0/scripts/type_annotations/type_annotation_conventions/rules.py +238 -0
- sqlbuild-0.2.0/src/sqlbuild/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/base/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/base/base_adapter.py +949 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/classes/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/classes/connection.py +64 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/classes/diff.py +94 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/classes/materialization.py +217 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/classes/schema.py +84 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/constants.py +14 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/models.py +166 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/type_normalization.py +245 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/shared/types.py +57 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/strict/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/adapter/strict/strict_adapter.py +361 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/audit.py +119 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/build.py +159 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/clone.py +105 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/compile.py +77 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/diff.py +128 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/entry.py +315 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/clone/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/clone/output.py +54 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/clone/validation.py +26 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/compile/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/compile/models.py +41 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/compile/target_writer.py +176 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/diff/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/diff/output.py +487 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/diff/validation.py +20 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/entry/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/entry/models.py +131 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/janitor/output.py +74 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/plan/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/plan/formatter.py +537 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/query/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/query/output.py +115 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/janitor.py +108 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/plan.py +92 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/query.py +63 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/run.py +159 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/seed.py +98 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/exceptions.py +5 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/adapters.py +50 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/colors.py +112 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/connection.py +93 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/connection_progress.py +51 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/json_output.py +165 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/parsers.py +30 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/plan_format.py +5 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/planning_progress.py +20 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/progress.py +643 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/helpers/runtime_target_writer.py +105 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/shared/types.py +21 -0
- sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/test.py +102 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/auditing/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/auditing/constants.py +8 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/auditing/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/auditing/main/render.py +81 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/auditing/types.py +27 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/constants.py +42 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/exceptions.py +5 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/assembly.py +439 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/attachment.py +2626 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/deps.py +116 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/macros.py +421 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/model_config_validation.py +311 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/refs.py +156 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/sql_scanning.py +77 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/sql_vars.py +99 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/sqlglot_columns.py +140 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/sqlglot_tests.py +96 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/sqlglot_validation.py +178 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/templating.py +502 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/helpers/tests.py +515 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/main/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/main/assemble_project.py +12 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/main/build_compile_inputs.py +145 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/main/effective_config.py +43 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/main/load_macros.py +13 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/models.py +373 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/compile/types.py +52 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/exceptions.py +37 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/constants.py +35 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/discovery_validation.py +313 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/filesystem.py +309 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/python_functions.py +109 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/sql_audits.py +155 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/sql_functions.py +30 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/sql_models.py +236 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/sql_tests.py +155 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/yml_primitives.py +148 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/yml_project.py +530 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/yml_schema.py +343 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/helpers/yml_sources.py +203 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/main/discover.py +53 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/discovery/models.py +168 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/constants.py +29 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/main/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/main/read.py +94 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/main/shared/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/main/shared/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/main/shared/helpers/sql.py +185 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/main/write.py +62 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/fingerprints/models.py +30 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/constants.py +11 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/graph_maps.py +52 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/macros.py +34 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/model_nodes.py +95 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/seeds.py +79 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/shared.py +141 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/sources.py +50 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/helpers/tests.py +139 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/manifest/main/build.py +161 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/helpers/clone.py +75 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/helpers/deferred_targets.py +171 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/helpers/diff.py +244 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/helpers/materializations.py +37 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/helpers/target_defaults.py +126 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/helpers/target_validation.py +52 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/main/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/main/clone.py +33 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/main/compile.py +160 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/main/compiled_project.py +48 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/main/diff.py +43 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/main/project.py +23 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/pipeline/models.py +33 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/constants.py +7 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/audit_entry.py +84 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/audit_scheduling.py +228 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/buildability.py +51 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/cascade.py +206 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/changes/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/changes/config.py +21 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/changes/detect.py +159 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/changes/policy.py +78 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/changes/query.py +19 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/changes/schema.py +190 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/clone.py +214 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/cursor_type_check.py +242 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/function_fingerprints.py +132 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/graph.py +210 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/plan_entry.py +805 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/config.py +44 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/constants.py +10 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/cursor.py +167 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/cursor_inputs.py +32 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/refs.py +181 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/resolve.py +222 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/resolve/sources.py +188 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/selectors.py +323 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/sql_test_assembly.py +457 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/sqlglot_sql_test_assembly.py +170 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/strategy.py +408 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/helpers/warehouse_snapshot.py +610 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/main/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/main/clone.py +65 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/main/execution.py +417 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/models.py +364 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/planner/types.py +116 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/shared/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/shared/constants.py +8 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/shared/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/shared/helpers/hashing.py +56 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/shared/helpers/schema_audits.py +98 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/shared/helpers/sources.py +29 -0
- sqlbuild-0.2.0/src/sqlbuild/compiler/testing/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/diagnostics/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/diagnostics/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/diagnostics/main/configure.py +47 -0
- sqlbuild-0.2.0/src/sqlbuild/diagnostics/shared/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/diagnostics/shared/constants.py +8 -0
- sqlbuild-0.2.0/src/sqlbuild/diagnostics/shared/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/diagnostics/shared/helpers/logging.py +146 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/auditing/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/auditing/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/auditing/main/execute.py +74 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/auditing/models.py +27 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/constants.py +13 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/blocking.py +28 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/color.py +64 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/console.py +86 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/end_audits.py +41 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/indexes.py +36 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/output.py +605 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/scheduler.py +729 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/seeds.py +5 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/helpers/source_audits.py +79 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/main/execute.py +187 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/models.py +87 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/build/types.py +12 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clean/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clone/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clone/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clone/helpers/operations.py +126 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clone/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clone/main/execute.py +67 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clone/models.py +22 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/clone/types.py +19 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/custom/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/custom/models.py +86 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/helpers/bounds.py +75 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/helpers/config.py +95 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/helpers/selection.py +47 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/main/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/main/execute.py +161 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/diff/models.py +33 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/functions/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/functions/main/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/functions/main/execute.py +152 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/constants.py +7 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/helpers/plan.py +143 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/helpers/tracking.py +49 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/main/execute.py +33 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/main/plan.py +182 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/janitor/models.py +87 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/helpers/auditing.py +44 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/helpers/seeding.py +40 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/helpers/settings.py +19 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/helpers/testing.py +196 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/pipeline/main/run.py +108 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/cursor_bounds.py +229 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/custom.py +301 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/fingerprinting.py +65 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/hooks.py +49 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/incremental.py +528 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/microbatch.py +785 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/results.py +39 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/type_enforcement.py +78 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/helpers/view.py +155 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/main/execute.py +507 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/run/models.py +34 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/seed/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/seed/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/seed/main/execute.py +50 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/shared/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/shared/classes/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/shared/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/shared/types.py +24 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/main/__init__.py +0 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/main/comparison_sql.py +61 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/main/execute.py +126 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/main/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/main/helpers/comparison_sql.py +107 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/main/sql_length.py +50 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/models.py +29 -0
- sqlbuild-0.2.0/src/sqlbuild/executor/testing/types.py +11 -0
- sqlbuild-0.2.0/src/sqlbuild/functions.py +17 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/bigquery/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/bigquery/client.py +1157 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/databricks/client.py +1498 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/duckdb/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/duckdb/client.py +1268 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/duckdb/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/snowflake/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/integrations/snowflake/client.py +1157 -0
- sqlbuild-0.2.0/src/sqlbuild/shared/constants.py +5 -0
- sqlbuild-0.2.0/src/sqlbuild/shared/helpers/adapters.py +149 -0
- sqlbuild-0.2.0/src/sqlbuild/shared/helpers/colors.py +112 -0
- sqlbuild-0.2.0/src/sqlbuild/shared/helpers/diagnostics_logging.py +55 -0
- sqlbuild-0.2.0/src/sqlbuild/shared/helpers/naming.py +42 -0
- sqlbuild-0.2.0/src/sqlbuild/shared/helpers/sql_resolution.py +26 -0
- sqlbuild-0.2.0/src/sqlbuild/shared/models.py +15 -0
- sqlbuild-0.2.0/src/sqlbuild/spec/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/spec/models/__init__.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/spec/models/model.py +1 -0
- sqlbuild-0.2.0/src/sqlbuild/spec/models/project.py +125 -0
- sqlbuild-0.2.0/src/sqlbuild/spec/models/schema.py +72 -0
- sqlbuild-0.2.0/src/sqlbuild/spec/models/source.py +34 -0
- sqlbuild-0.2.0/src/sqlbuild/spec/models/types.py +5 -0
- sqlbuild-0.2.0/tests/e2e/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/audits/generic/accepted_values.sql +5 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/audits/generic/expression_is_true.sql +5 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/audits/generic/not_null.sql +5 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/audits/generic/unique.sql +6 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/functions/python/is_completed_order_py.py +10 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/functions/sql/customer_orders.sql +21 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/functions/sql/is_completed_order.sql +6 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/materializations/partition_tracked.py +170 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/intermediate/customer_status_snapshot.sql +31 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/intermediate/order_status_index.sql +24 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/marts/daily_activity_rollup.sql +33 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/marts/daily_order_partitioned.sql +34 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/marts/daily_revenue.sql +21 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/marts/dim_customers.sql +21 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/marts/fact_orders.sql +27 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/marts/hourly_activity_with_daily_context.sql +34 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/marts/hourly_order_activity.sql +32 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/staging/stg_customers.sql +17 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/staging/stg_orders.sql +23 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/models/staging/stg_payments.sql +18 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/seeds/lookups.yml +12 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/seeds/waffle_types.csv +7 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/sources/raw.yml +48 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/sqlbuild_project.yml +15 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/tests/test_fact_orders.sql +46 -0
- sqlbuild-0.2.0/tests/e2e/fixtures/waffle_shop/tests/test_stg_orders.sql +22 -0
- sqlbuild-0.2.0/tests/e2e/src/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/adapters/__init__.py +1 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/adapters/_test_types.py +9 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/adapters/helpers.py +34 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/adapters/test_project_local_adapters.py +40 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/audit/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/audit/_test_types.py +14 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/audit/test_audit.py +41 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/bigquery/_test_types.py +48 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/bigquery/conftest.py +14 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/bigquery/helpers.py +199 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/bigquery/test_bigquery.py +461 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/_test_types.py +245 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_append_cursor_build.py +151 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_audit_failures.py +200 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_build.py +172 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_compile_json_behavior.py +56 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_cursor_runtime_failures.py +146 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_expression_sources.py +130 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_lifecycle_commands.py +130 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_mixed_timestamp_grain_replay.py +217 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_model_backed_cursor_build.py +214 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_plan_command_surface.py +67 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_query_change_tracking.py +158 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_query_propagation.py +416 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_remove_column_semantics.py +67 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_runtime_artifact_preservation.py +73 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_schema_backfill_behavior.py +142 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_selector_surface.py +87 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_template_expressions.py +167 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/build/test_validation_failures.py +208 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/clone/__init__.py +1 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/clone/_test_types.py +15 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/clone/test_clone.py +165 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/databricks/__init__.py +1 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/databricks/_test_types.py +39 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/databricks/conftest.py +14 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/databricks/helpers.py +192 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/databricks/test_databricks.py +332 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/diff/__init__.py +1 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/diff/_test_types.py +22 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/diff/helpers.py +177 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/diff/test_diff.py +377 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/janitor/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/janitor/_test_types.py +39 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/janitor/helpers.py +96 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/janitor/test_janitor.py +164 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/query/__init__.py +1 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/query/_test_types.py +9 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/query/test_query.py +55 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/run/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/run/_test_types.py +16 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/run/test_run.py +77 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/seed/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/seed/_test_types.py +15 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/seed/test_seed.py +58 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/shared/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/shared/helpers.py +102 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/snowflake/__init__.py +1 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/snowflake/_test_types.py +31 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/snowflake/conftest.py +14 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/snowflake/helpers.py +175 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/snowflake/test_snowflake.py +276 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/test/__init__.py +0 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/test/_test_types.py +24 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/test/helpers.py +67 -0
- sqlbuild-0.2.0/tests/e2e/src/sqlbuild/cli/commands/main/test/test_test.py +130 -0
- sqlbuild-0.2.0/tests/fixtures/dbt_manifest_v12_schema.json +27316 -0
- sqlbuild-0.2.0/tests/integration/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/conftest.py +21 -0
- sqlbuild-0.2.0/tests/integration/src/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/diff/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/diff/_test_types.py +17 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/diff/helpers.py +159 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/diff/test_example_matrix.py +214 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/diff/test_output_matrix.py +148 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/diff/test_schema_matrix.py +111 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/cli/commands/main/helpers/diff/test_tolerance_matrix.py +122 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/auditing/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/auditing/main/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/auditing/main/_test_types.py +14 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/auditing/main/conftest.py +20 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/auditing/main/test_rendering.py +95 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/fingerprints/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/fingerprints/main/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/fingerprints/main/_test_types.py +60 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/fingerprints/main/conftest.py +29 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/fingerprints/main/test_read_write.py +413 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/pipeline/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/pipeline/_test_types.py +62 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/pipeline/helpers.py +47 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/pipeline/test_diff_selectors.py +114 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/pipeline/test_main.py +471 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/_test_types.py +62 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/conftest.py +30 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/helpers.py +209 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/resolve/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/resolve/_test_types.py +31 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/resolve/conftest.py +22 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/resolve/helpers.py +98 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/resolve/test_resolve.py +260 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/_test_types.py +14 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/conftest.py +20 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/helpers.py +149 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/test_execute_chain.py +279 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/test_audit_entry.py +130 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/helpers/test_warehouse_snapshot.py +478 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/main/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/main/_test_types.py +55 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/main/conftest.py +21 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/main/helpers.py +286 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/compiler/planner/main/test_build_execution_plan.py +560 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/_test_types.py +35 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/concurrent/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/concurrent/_test_types.py +39 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/concurrent/helpers.py +180 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/concurrent/test_concurrent_build.py +241 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/concurrent/test_ordering_invariant.py +144 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/conftest.py +20 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/custom/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/custom/_test_types.py +135 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/custom/helpers.py +428 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/custom/test_advanced_custom_materialization.py +439 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/custom/test_custom_materialization.py +454 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/helpers.py +157 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/build/test_build_execution.py +980 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/_test_types.py +54 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/conftest.py +21 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/helpers.py +326 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/incremental/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/incremental/_test_types.py +80 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/incremental/conftest.py +20 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/incremental/helpers.py +344 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/incremental/test_incremental_execution.py +523 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/microbatch/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/microbatch/_test_types.py +82 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/microbatch/conftest.py +20 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/microbatch/helpers.py +306 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/microbatch/test_microbatch_execution.py +647 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/test_table_execution.py +495 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/view/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/view/_test_types.py +43 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/view/conftest.py +21 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/view/helpers.py +249 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/run/view/test_view_execution.py +168 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/testing/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/testing/_test_types.py +25 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/testing/conftest.py +20 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/testing/helpers.py +79 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/executor/testing/test_sql_test_execution.py +327 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/bigquery/_test_types.py +99 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/bigquery/conftest.py +58 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/bigquery/helpers.py +83 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/bigquery/test_client.py +743 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/databricks/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/databricks/_test_types.py +84 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/databricks/conftest.py +54 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/databricks/helpers.py +86 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/databricks/test_client.py +633 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/duckdb/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/duckdb/_test_types.py +203 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/duckdb/conftest.py +20 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/duckdb/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/duckdb/helpers/_test_types.py +19 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/duckdb/helpers/test_sql.py +105 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/duckdb/test_client.py +1387 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/snowflake/__init__.py +1 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/snowflake/_test_types.py +84 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/snowflake/conftest.py +54 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/snowflake/helpers.py +106 -0
- sqlbuild-0.2.0/tests/integration/src/sqlbuild/integrations/snowflake/test_client.py +589 -0
- sqlbuild-0.2.0/tests/unit/conftest.py +21 -0
- sqlbuild-0.2.0/tests/unit/scripts/structure/check_structure_conventions/_test_types.py +16 -0
- sqlbuild-0.2.0/tests/unit/scripts/structure/check_structure_conventions/helpers.py +77 -0
- sqlbuild-0.2.0/tests/unit/scripts/structure/check_structure_conventions/test_structure_checker.py +1013 -0
- sqlbuild-0.2.0/tests/unit/scripts/testing/check_test_conventions/_test_types.py +15 -0
- sqlbuild-0.2.0/tests/unit/scripts/testing/check_test_conventions/helpers.py +73 -0
- sqlbuild-0.2.0/tests/unit/scripts/testing/check_test_conventions/test_checker.py +584 -0
- sqlbuild-0.2.0/tests/unit/scripts/type_annotations/check_type_annotation_conventions/_test_helpers.py +101 -0
- sqlbuild-0.2.0/tests/unit/scripts/type_annotations/check_type_annotation_conventions/_test_types.py +24 -0
- sqlbuild-0.2.0/tests/unit/scripts/type_annotations/check_type_annotation_conventions/test_type_annotation_checker.py +104 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/base/_test_types.py +7 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/base/test_base_adapter.py +51 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/discovery/main/_test_types.py +17 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/discovery/main/helpers.py +12 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/discovery/main/test_discover.py +134 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/shared/_test_types.py +28 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/shared/test_type_normalization.py +233 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/strict/_test_types.py +7 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/adapter/strict/test_strict_adapter.py +35 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/compile/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/compile/_test_types.py +33 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/compile/helpers.py +245 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/compile/test_adapters.py +89 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/compile/test_compile_target_writer.py +66 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/compile/test_runtime_target_writer.py +86 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/entry/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/entry/_test_types.py +28 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/entry/helpers.py +29 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/entry/test_main.py +696 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/helpers/diff/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/helpers/diff/_test_types.py +16 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/helpers/diff/test_output.py +197 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/helpers/query/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/helpers/query/_test_types.py +12 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/helpers/query/test_output.py +83 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/plan/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/plan/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/plan/helpers/_test_types.py +18 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/plan/helpers/helpers.py +173 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/plan/helpers/test_formatter.py +476 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/_test_types.py +86 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/helpers.py +33 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/test_connection.py +160 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/test_connection_progress.py +97 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/test_json_output.py +169 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/test_planning_progress.py +47 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/cli/commands/main/shared/helpers/test_progress.py +311 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/auditing/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/auditing/main/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/auditing/main/_test_types.py +12 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/auditing/main/helpers.py +54 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/auditing/main/test_rendering.py +117 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/_test_helpers.py +6 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/_test_types.py +97 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/_test_types.py +276 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/helpers.py +21 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_assembly.py +257 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_audit_validation.py +258 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_deps.py +142 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_macros.py +276 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_model_config_validation.py +623 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_sql_vars.py +185 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_sqlglot_columns.py +187 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_sqlglot_tests.py +85 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_sqlglot_validation.py +105 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_templating.py +187 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/helpers/test_tests.py +387 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/test_cursor_start.py +96 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/compile/test_main.py +2471 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/_test_helpers.py +4 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/_test_types.py +34 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/_test_types.py +172 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/test_filesystem_materializations.py +61 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/test_sql_audits.py +173 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/test_sql_models.py +328 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/test_sql_tests.py +177 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/test_yml_project.py +585 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/test_yml_schema.py +329 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/helpers/test_yml_sources.py +364 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/discovery/test_main.py +413 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/fingerprints/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/fingerprints/main/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/fingerprints/main/shared/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/fingerprints/main/shared/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/fingerprints/main/shared/helpers/_test_types.py +43 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/fingerprints/main/shared/helpers/test_sql.py +265 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/manifest/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/manifest/_test_types.py +134 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/manifest/helpers.py +293 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/manifest/test_main.py +838 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/_test_types.py +21 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/helpers.py +52 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/target_validation/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/target_validation/_test_types.py +11 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/target_validation/helpers.py +38 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/target_validation/test_main.py +72 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/pipeline/helpers/test_deferred_targets.py +159 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/_test_types.py +372 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/changes/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/changes/_test_helpers.py +108 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/changes/_test_types.py +60 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/changes/test_detect.py +142 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/changes/test_policy.py +117 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/changes/test_query.py +91 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/changes/test_schema.py +216 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/conftest.py +78 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/helpers.py +669 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/resolve/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/resolve/_test_types.py +66 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/resolve/helpers.py +11 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/resolve/test_cursor.py +223 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/resolve/test_refs.py +277 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/resolve/test_sources.py +435 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/_test_types.py +25 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/helpers.py +265 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/sql_test_assembly/test_plan_test.py +466 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_audit_entry.py +119 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_audit_scheduling.py +262 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_buildability.py +151 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_cascade.py +294 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_cursor_override_resolution.py +117 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_cursor_overrides_validation.py +86 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_cursor_start.py +126 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_cursor_type_check.py +186 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_function_fingerprints.py +96 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_graph.py +343 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_microbatch_lookback.py +65 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_selectors.py +625 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_source_columns.py +93 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_strategy_action.py +357 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_strategy_ddl.py +187 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_strategy_schema_actions.py +125 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_strategy_warnings.py +277 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/planner/helpers/test_warehouse_cursor_resolution.py +86 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/shared/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/shared/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/shared/helpers/_test_types.py +55 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/compiler/shared/helpers/test_hashing.py +249 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/diagnostics/_test_types.py +21 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/diagnostics/test_main.py +179 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/build/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/build/helpers/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/build/helpers/_test_types.py +20 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/build/helpers/helpers.py +127 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/build/helpers/test_output.py +665 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/diff/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/diff/_test_types.py +36 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/diff/helpers.py +36 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/diff/test_bounds.py +115 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/diff/test_config.py +97 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/janitor/main/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/janitor/main/_test_types.py +47 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/janitor/main/helpers.py +389 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/janitor/main/test_plan.py +174 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/pipeline/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/pipeline/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/pipeline/helpers/_test_types.py +14 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/pipeline/helpers/test_testing.py +76 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/run/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/run/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/run/helpers/_test_types.py +35 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/run/helpers/helpers.py +43 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/run/helpers/test_cursor_bounds.py +74 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/run/helpers/test_naming.py +80 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/run/helpers/test_results.py +69 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/shared/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/shared/helpers/__init__.py +0 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/shared/helpers/_test_types.py +11 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/shared/helpers/test_statement_recorder.py +43 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/testing/main/_test_types.py +8 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/testing/main/helpers.py +33 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/executor/testing/main/test_comparison_sql.py +64 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/bigquery/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/bigquery/_test_types.py +105 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/bigquery/helpers.py +151 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/bigquery/test_client.py +554 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/databricks/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/databricks/_test_types.py +33 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/databricks/test_client.py +191 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/duckdb/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/duckdb/_test_types.py +15 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/duckdb/test_client.py +71 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/snowflake/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/snowflake/_test_types.py +43 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/snowflake/helpers.py +41 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/integrations/snowflake/test_client.py +224 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/shared/helpers/sql_resolution/__init__.py +1 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/shared/helpers/sql_resolution/_test_types.py +9 -0
- sqlbuild-0.2.0/tests/unit/src/sqlbuild/shared/helpers/sql_resolution/test_main.py +54 -0
- sqlbuild-0.2.0/uv.lock +1755 -0
- sqlbuild-0.0.1/PKG-INFO +0 -6
- sqlbuild-0.0.1/README.md +0 -5
- sqlbuild-0.0.1/pyproject.toml +0 -10
- {sqlbuild-0.0.1/sqlbuild → sqlbuild-0.2.0/src/sqlbuild/cli/commands/main/helpers/janitor}/__init__.py +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Release Please
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
pull-requests: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
release-please:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: googleapis/release-please-action@v4
|
|
18
|
+
with:
|
|
19
|
+
config-file: release-please-config.json
|
|
20
|
+
manifest-file: .release-please-manifest.json
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Version Guard
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
block-1-0:
|
|
17
|
+
name: Block automatic 1.0 releases
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Reject versions at or above 1.0.0
|
|
23
|
+
run: |
|
|
24
|
+
python - <<'PY'
|
|
25
|
+
import sys
|
|
26
|
+
import tomllib
|
|
27
|
+
|
|
28
|
+
with open("pyproject.toml", "rb") as pyproject:
|
|
29
|
+
version = tomllib.load(pyproject)["project"]["version"]
|
|
30
|
+
|
|
31
|
+
parts = version.split(".")
|
|
32
|
+
try:
|
|
33
|
+
major = int(parts[0])
|
|
34
|
+
except (IndexError, ValueError):
|
|
35
|
+
print(f"Invalid project version: {version}", file=sys.stderr)
|
|
36
|
+
sys.exit(1)
|
|
37
|
+
|
|
38
|
+
if major >= 1:
|
|
39
|
+
print(
|
|
40
|
+
f"Refusing automatic release version {version}. "
|
|
41
|
+
"Crossing to 1.0.0 requires an explicit manual decision.",
|
|
42
|
+
file=sys.stderr,
|
|
43
|
+
)
|
|
44
|
+
sys.exit(1)
|
|
45
|
+
|
|
46
|
+
print(f"Project version {version} is below 1.0.0.")
|
|
47
|
+
PY
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Python bytecode
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# Python packaging
|
|
7
|
+
build/
|
|
8
|
+
!src/sqlbuild/**/build/
|
|
9
|
+
!tests/**/build/
|
|
10
|
+
dist/
|
|
11
|
+
*.egg-info/
|
|
12
|
+
.eggs/
|
|
13
|
+
|
|
14
|
+
# Virtual environments
|
|
15
|
+
.venv/
|
|
16
|
+
venv/
|
|
17
|
+
env/
|
|
18
|
+
ENV/
|
|
19
|
+
|
|
20
|
+
# Test and coverage
|
|
21
|
+
.pytest_cache/
|
|
22
|
+
.coverage
|
|
23
|
+
.coverage.*
|
|
24
|
+
htmlcov/
|
|
25
|
+
|
|
26
|
+
# Type checkers and tooling
|
|
27
|
+
.mypy_cache/
|
|
28
|
+
.ruff_cache/
|
|
29
|
+
.pyre/
|
|
30
|
+
|
|
31
|
+
# Jupyter
|
|
32
|
+
.ipynb_checkpoints/
|
|
33
|
+
|
|
34
|
+
# Editors and OS files
|
|
35
|
+
.DS_Store
|
|
36
|
+
Thumbs.db
|
|
37
|
+
.idea/
|
|
38
|
+
.vscode/
|
|
39
|
+
|
|
40
|
+
# Logs
|
|
41
|
+
*.log
|
|
42
|
+
|
|
43
|
+
# Local databases and data
|
|
44
|
+
*.db
|
|
45
|
+
*.duckdb
|
|
46
|
+
*.duckdb.wal
|
|
47
|
+
*.sqlite
|
|
48
|
+
*.sqlite3
|
|
49
|
+
data/
|
|
50
|
+
|
|
51
|
+
# Local artifacts
|
|
52
|
+
target/
|
|
53
|
+
|
|
54
|
+
# Local SQLBuild overrides
|
|
55
|
+
sqlbuild_local.yml
|
|
56
|
+
**/sqlbuild_local.yml
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
default_stages: [pre-commit]
|
|
2
|
+
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v5.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: check-toml
|
|
8
|
+
- id: check-yaml
|
|
9
|
+
- id: end-of-file-fixer
|
|
10
|
+
- id: trailing-whitespace
|
|
11
|
+
|
|
12
|
+
- repo: local
|
|
13
|
+
hooks:
|
|
14
|
+
- id: ruff-format
|
|
15
|
+
name: ruff format
|
|
16
|
+
entry: uv run ruff format
|
|
17
|
+
language: system
|
|
18
|
+
types_or: [python, pyi]
|
|
19
|
+
|
|
20
|
+
- id: ruff-check
|
|
21
|
+
name: ruff check
|
|
22
|
+
entry: uv run ruff check --fix
|
|
23
|
+
language: system
|
|
24
|
+
types_or: [python, pyi]
|
|
25
|
+
|
|
26
|
+
- id: check-test-conventions
|
|
27
|
+
name: check test conventions
|
|
28
|
+
entry: uv run check-test-conventions tests
|
|
29
|
+
language: system
|
|
30
|
+
pass_filenames: false
|
|
31
|
+
|
|
32
|
+
- id: check-structure-conventions
|
|
33
|
+
name: check structure conventions
|
|
34
|
+
entry: uv run check-structure-conventions src/sqlbuild scripts
|
|
35
|
+
language: system
|
|
36
|
+
pass_filenames: false
|
|
37
|
+
|
|
38
|
+
- id: check-type-annotation-conventions
|
|
39
|
+
name: check type annotation conventions
|
|
40
|
+
entry: uv run check-type-annotation-conventions src tests
|
|
41
|
+
language: system
|
|
42
|
+
pass_filenames: false
|
|
43
|
+
|
|
44
|
+
- id: ty-check
|
|
45
|
+
name: ty check
|
|
46
|
+
entry: bash -c 'uv run ty check src tests'
|
|
47
|
+
language: system
|
|
48
|
+
pass_filenames: false
|
|
49
|
+
|
|
50
|
+
- id: pytest
|
|
51
|
+
name: pytest
|
|
52
|
+
entry: bash -c 'uv run pytest tests/unit tests/integration -m "not real_warehouse" -vv'
|
|
53
|
+
language: system
|
|
54
|
+
pass_filenames: false
|
|
55
|
+
|
|
56
|
+
- id: conventional-commit
|
|
57
|
+
name: conventional commit message
|
|
58
|
+
entry: uv run cz check --commit-msg-file
|
|
59
|
+
language: system
|
|
60
|
+
stages: [commit-msg]
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.2.0](https://github.com/chio-labs/sqlbuild/compare/v0.1.0...v0.2.0) (2026-05-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add --defer-to support with deferred target resolution, buildability checks, and SC026 limit fix ([2097d80](https://github.com/chio-labs/sqlbuild/commit/2097d8020b3c0aa970ab7b7b038ab2aa2534fe09))
|
|
9
|
+
* add --json output flag for sqb compile and sqb plan commands ([008d938](https://github.com/chio-labs/sqlbuild/commit/008d938ca6dfc53a4dbeab9aa63c5b9024a97596))
|
|
10
|
+
* add --verbose flag to build/run showing full model DDL and audit SQL inline ([3f3cfe0](https://github.com/chio-labs/sqlbuild/commit/3f3cfe01dd256effdf71d24200b425cd10660337))
|
|
11
|
+
* add adapter spine with base/strict adapters and compile assembly ([b72fbff](https://github.com/chio-labs/sqlbuild/commit/b72fbff3b15680b795ddaa864c867b451cfb9f7f))
|
|
12
|
+
* add append cursor boundary control ([796af13](https://github.com/chio-labs/sqlbuild/commit/796af130cfa2fa79e595023187a950043bc34336))
|
|
13
|
+
* add audit scheduling with attachment resolution, graph validation, and effective run scope degradation ([587d51e](https://github.com/chio-labs/sqlbuild/commit/587d51ebd44a28b8d64c5cb1413443710a52e4ec))
|
|
14
|
+
* add audit/test plan entries with chained test resolution and unresolved ref validation ([b1e0be7](https://github.com/chio-labs/sqlbuild/commit/b1e0be74183a454e34662c1ca675e44fcce1c3fb))
|
|
15
|
+
* add backfill cascade propagation with duration comparison, root cause attribution, and cross-type rules ([f27eb09](https://github.com/chio-labs/sqlbuild/commit/f27eb09435bff1a53b9eb27393271e7cb815193e))
|
|
16
|
+
* add BigQuery adapter support ([f79ff90](https://github.com/chio-labs/sqlbuild/commit/f79ff90b813cf751d5a5313416eb9a0be3ff60e7))
|
|
17
|
+
* add BigQuery warehouse parity ([1415f8e](https://github.com/chio-labs/sqlbuild/commit/1415f8e7ba8e48457d5ed0691a486212a85dee3a))
|
|
18
|
+
* add build executor with topo execution, failure propagation, source/end audits, and direct/staged mode support ([d31466d](https://github.com/chio-labs/sqlbuild/commit/d31466d51d55234f4a73c66dd6b59e9a49f853b2))
|
|
19
|
+
* add build output formatter with live progress, color support, and duration tracking ([42d1218](https://github.com/chio-labs/sqlbuild/commit/42d12183b2c3dd012f541d5cc8d753ae634bf09e))
|
|
20
|
+
* add buildability checks validating upstream deps exist in scope or warehouse ([00f8c99](https://github.com/chio-labs/sqlbuild/commit/00f8c9946be85cb3e79416caa86e854fb3ea2230))
|
|
21
|
+
* add change detection with query/schema comparison, backfill policy resolution, and SC033 cross-package import rule ([97e4582](https://github.com/chio-labs/sqlbuild/commit/97e45826398882c381f936ebf15cbf271a11c885))
|
|
22
|
+
* add clone command support ([350a94b](https://github.com/chio-labs/sqlbuild/commit/350a94bd2698ee6ced0bd5b3604c0597b6de6c1f))
|
|
23
|
+
* add compile input attachment layer ([724c936](https://github.com/chio-labs/sqlbuild/commit/724c9364d565623537a974effff6723966c4adcf))
|
|
24
|
+
* add compile-time sql macro expansion ([1e78559](https://github.com/chio-labs/sqlbuild/commit/1e78559591edf9c081c358760a0474206e4494a4))
|
|
25
|
+
* add compile-time SQL syntax validation with project, model, and CLI escape hatches ([02b16f5](https://github.com/chio-labs/sqlbuild/commit/02b16f55655936d5d706a9fbcf0878915be8c02b))
|
|
26
|
+
* add concurrent build scheduler with ready-queue DAG dispatch ([92ad4c4](https://github.com/chio-labs/sqlbuild/commit/92ad4c48342ee94df59e288838e5f4a20c7e2d87))
|
|
27
|
+
* add ctx.execute_sql() for custom materializations and require statement_recorder on adapter write methods ([353b1ea](https://github.com/chio-labs/sqlbuild/commit/353b1eaf995ee7c47c2fa1c27b8d59be2c479ca9))
|
|
28
|
+
* add cursor start floors ([a47cfa5](https://github.com/chio-labs/sqlbuild/commit/a47cfa5be7cf7a85718dbc46fe79c599ec56fb54))
|
|
29
|
+
* add cursor_type/validation/typed overrides/sql vars with StrEnum enforcement ([418925c](https://github.com/chio-labs/sqlbuild/commit/418925c3b5d9eefe33ed3303b09e647c6354810a))
|
|
30
|
+
* add custom materializations with @[@placeholder](https://github.com/placeholder) support and user-callable audits ([d9e1592](https://github.com/chio-labs/sqlbuild/commit/d9e1592560f6fbb31d210046f3f9c84e5fbb43e7))
|
|
31
|
+
* add Databricks adapter support ([e692ce6](https://github.com/chio-labs/sqlbuild/commit/e692ce64e19a7156d5c1a6ff7a41b9401107e2e7))
|
|
32
|
+
* add Databricks Python UDF support ([849e759](https://github.com/chio-labs/sqlbuild/commit/849e759b5aa95c26c65e733d704e3f7057f7cf3a))
|
|
33
|
+
* add DuckDB adapter with full method coverage and remove unused ResolutionMixin ([57ec8d9](https://github.com/chio-labs/sqlbuild/commit/57ec8d97ad5a12d254c492c8ceccadde2797eb18))
|
|
34
|
+
* add e2e tests for all CLI commands and fix --project-dir relative database path resolution ([170b4b5](https://github.com/chio-labs/sqlbuild/commit/170b4b564c2e61462f12917b6a7b82fb37d4fbca))
|
|
35
|
+
* add environment diff command support ([c46fdca](https://github.com/chio-labs/sqlbuild/commit/c46fdca731bcfef3d30242c14337e7c76afd47b9))
|
|
36
|
+
* add executor build runtime stage 1 spec and validation enums, settings, audit severity/run_scope resolution, and non-incremental config guards ([70172f1](https://github.com/chio-labs/sqlbuild/commit/70172f160f3da29b9b7aa1ef882743e70f006d0f))
|
|
37
|
+
* add fingerprint storage with per-schema read/write and hash computation ([727b2d5](https://github.com/chio-labs/sqlbuild/commit/727b2d5857fa804035f5b9ff5ae815b911807278))
|
|
38
|
+
* add incremental executor with delta/DML lifecycle, schema change handling, and adapter DDL methods ([cf20aec](https://github.com/chio-labs/sqlbuild/commit/cf20aec008dd817599c313f6163a939dad10f203))
|
|
39
|
+
* add Layer 5 ref resolution with cursor bounds, source CAST wrapping, and batched snapshot gathering ([4bf9975](https://github.com/chio-labs/sqlbuild/commit/4bf9975a22c95845b4d864770f4f962802df9daf))
|
|
40
|
+
* add Layer 6 materialization strategy, plan output, and execution plan orchestration ([4061622](https://github.com/chio-labs/sqlbuild/commit/4061622247faced889fd5504264a54013f2c3672))
|
|
41
|
+
* add manifest writer module with dbt v12-compatible serialization ([32f20f2](https://github.com/chio-labs/sqlbuild/commit/32f20f2581edf2c72f8e99bfc7f33c5159059814))
|
|
42
|
+
* add max concurrency project setting ([43b3ab5](https://github.com/chio-labs/sqlbuild/commit/43b3ab5d598876d59774217a5b8eea53845cae24))
|
|
43
|
+
* add microbatch executor with sentinel substitution, cursor-range delete_insert, and batch splitting ([d1eb879](https://github.com/chio-labs/sqlbuild/commit/d1eb87987412ddb5ef3c42539514b2dcd6d2321c))
|
|
44
|
+
* add model target context to compile templates ([45db2e9](https://github.com/chio-labs/sqlbuild/commit/45db2e99ab8f41ab23c3d395d87259e9d55caedd))
|
|
45
|
+
* add on_progress callback to custom materialization context ([e717ff5](https://github.com/chio-labs/sqlbuild/commit/e717ff5a6b7b45808953ee12b7112866ff467fba))
|
|
46
|
+
* add optional sqlglot test projection parsing ([b75f9d7](https://github.com/chio-labs/sqlbuild/commit/b75f9d7581686b351fcc941c9e23f780ba0aaaa3))
|
|
47
|
+
* add path:folder selector resolution and --no-sql-validation CLI flag ([d6b3951](https://github.com/chio-labs/sqlbuild/commit/d6b39515e734d9cf699b3ee2071c881745b42959))
|
|
48
|
+
* add plan display before build execution and use_color support on plan formatter ([752bbad](https://github.com/chio-labs/sqlbuild/commit/752bbad4f6ee7a525f7cd41d540ea7846a85bba7))
|
|
49
|
+
* add planner graph helpers with topo sort, expansion, and path finding ([3fcab8e](https://github.com/chio-labs/sqlbuild/commit/3fcab8eb25de793c96dfc26d13a42246a6b62493))
|
|
50
|
+
* add planner-ready compiled resource models and dependency helpers ([fee76a9](https://github.com/chio-labs/sqlbuild/commit/fee76a97888988a0ec9e6c5ec11f1f098c003459))
|
|
51
|
+
* add project-local adapter discovery ([ea7d06d](https://github.com/chio-labs/sqlbuild/commit/ea7d06d45a4dc446ce8190f2f3a6cc6a4ffc2b58))
|
|
52
|
+
* add Python UDF support ([e9c8e22](https://github.com/chio-labs/sqlbuild/commit/e9c8e224b152653071a1f653501f1b9ba654cbe2))
|
|
53
|
+
* add query command ([c80a508](https://github.com/chio-labs/sqlbuild/commit/c80a508fcaec051a7aaff9a54f0002a090bba239))
|
|
54
|
+
* add query command ([ffe1435](https://github.com/chio-labs/sqlbuild/commit/ffe143545ffb0d8dab2ff77ef496601dc99d7ff3))
|
|
55
|
+
* add raw schema metadata discovery ([22811f8](https://github.com/chio-labs/sqlbuild/commit/22811f8eba52a603901025e82d11bfcca5e437e1))
|
|
56
|
+
* add raw source discovery parsing ([0ff1185](https://github.com/chio-labs/sqlbuild/commit/0ff11850d0d0184c8906f096f668b46eb15792b8))
|
|
57
|
+
* add raw sql audit discovery parsing ([e62b123](https://github.com/chio-labs/sqlbuild/commit/e62b1233d2f1cc66c513c3a07395cd4d72b1420a))
|
|
58
|
+
* add rich diff summary output ([9743b7b](https://github.com/chio-labs/sqlbuild/commit/9743b7b4fe06579d9a649979ef8a0b22b58a8fda))
|
|
59
|
+
* add runtime audit rendering with relation overrides, AuditOutcome enum, and AuditExecutionResult model ([8272844](https://github.com/chio-labs/sqlbuild/commit/82728445a5582a8d3270b6927d081a316027cc4b))
|
|
60
|
+
* add runtime SQL statement recorder ([f3e943e](https://github.com/chio-labs/sqlbuild/commit/f3e943ed33ca9697a042970b001d3fa7a224cbae))
|
|
61
|
+
* add safe janitor cleanup command ([ec1e02c](https://github.com/chio-labs/sqlbuild/commit/ec1e02ccfb89681a7ffa9b0820b50b8c2d125409))
|
|
62
|
+
* add seed target overrides ([4c89d0c](https://github.com/chio-labs/sqlbuild/commit/4c89d0ca21dcc0031a9047a5402090f4fea40689))
|
|
63
|
+
* add selector parsing and scope resolution with union, intersection, and exclude ([fe8a17b](https://github.com/chio-labs/sqlbuild/commit/fe8a17b6e13627335ecbe5e3b6d0a43f8aac4b76))
|
|
64
|
+
* add shared type normalization ([3a3103a](https://github.com/chio-labs/sqlbuild/commit/3a3103a22072686f10bf688b24328191dcbd6c18))
|
|
65
|
+
* add shared type normalization ([ac7d895](https://github.com/chio-labs/sqlbuild/commit/ac7d89533bdd0a0e873ebce77496fa626553c5fd))
|
|
66
|
+
* add snowflake adapter support ([0da4ecf](https://github.com/chio-labs/sqlbuild/commit/0da4ecf94528212b59262d640b40cfe23f5aac9a))
|
|
67
|
+
* add source quality metadata parsing ([6ec1e1e](https://github.com/chio-labs/sqlbuild/commit/6ec1e1e76834998e47fe83c094d580b5a59c1dd8))
|
|
68
|
+
* add sqb compile command with pipeline orchestration, target writer, and adapter defaults ([2446785](https://github.com/chio-labs/sqlbuild/commit/2446785ad6861c2286d027db6125f9aedc2def09))
|
|
69
|
+
* add sqb plan command with compact/verbose output, waffle_shop example, and seed ref fixes ([038314b](https://github.com/chio-labs/sqlbuild/commit/038314b788a5da3d15616cfc9d57a75d0ebfaf47))
|
|
70
|
+
* add SQL table functions ([52aaadd](https://github.com/chio-labs/sqlbuild/commit/52aaaddbc11b7017a0790f4742f70af789a41667))
|
|
71
|
+
* add SQL table functions ([d6e9a04](https://github.com/chio-labs/sqlbuild/commit/d6e9a0468bc8195e2117a1d8409614910b6d667f))
|
|
72
|
+
* add SQL UDF resources ([24149b0](https://github.com/chio-labs/sqlbuild/commit/24149b001c7cbe565fda2b66f521932a68f04158))
|
|
73
|
+
* add sql-style model headers ([7a80177](https://github.com/chio-labs/sqlbuild/commit/7a801779042dbd5ed18e2729ed695b4b123760de))
|
|
74
|
+
* add sqlbuild as an alias for sqb CLI entry point ([d69535e](https://github.com/chio-labs/sqlbuild/commit/d69535ed71738dc9150e60d8e3df089e43d6bf81))
|
|
75
|
+
* add sqlglot column inference for schema change detection with source attribution ([c68ef74](https://github.com/chio-labs/sqlbuild/commit/c68ef743c843ac144bd4494012d36043a530229d))
|
|
76
|
+
* add table executor with staged/direct lifecycle, type enforcement, audit execution, hooks, and fingerprint write ([36de9f2](https://github.com/chio-labs/sqlbuild/commit/36de9f27361b75138e7f294a65d9abc3de6bc1ca))
|
|
77
|
+
* add template expression helpers ([23b3a2b](https://github.com/chio-labs/sqlbuild/commit/23b3a2be6b4ffa18f1d71c18494f9c8042b33496))
|
|
78
|
+
* add transaction() context manager and transactional atomicity tests ([497b613](https://github.com/chio-labs/sqlbuild/commit/497b613d5349038b1079da919095cbc895c59af2))
|
|
79
|
+
* add type_enforcement flag to schema change detection for yml vs inferred precedence ([c97e8d3](https://github.com/chio-labs/sqlbuild/commit/c97e8d36638024694c15d5d57cebb17e8c7bc45e))
|
|
80
|
+
* add view executor, SQL unit test executor, and planner test ordering for Stage 8 ([38890d8](https://github.com/chio-labs/sqlbuild/commit/38890d89fce9b06baeff2087e09ec33815d353b3))
|
|
81
|
+
* add warehouse cursor type consistency check with heuristic and sqlglot classification ([0726216](https://github.com/chio-labs/sqlbuild/commit/0726216864c2707c61ced52ad077afaacb35896c))
|
|
82
|
+
* add warehouse snapshot gathering with bulk relation, column, and fingerprint reads ([c09e764](https://github.com/chio-labs/sqlbuild/commit/c09e764ae609e6ae7fe9963b02251d7583c16044))
|
|
83
|
+
* attach defaults and path defaults to compile model inputs ([8aec92c](https://github.com/chio-labs/sqlbuild/commit/8aec92c7fcbc0cd61e747efea1ce4abb366c0461))
|
|
84
|
+
* bootstrap repo and port convention checkers ([4967f63](https://github.com/chio-labs/sqlbuild/commit/4967f63fde8d68b1947f03988b63346ef9a73280))
|
|
85
|
+
* compile attached generic audits ([b619e53](https://github.com/chio-labs/sqlbuild/commit/b619e539e061f7d4df5b7a6b5af1dc0176b8f1c2))
|
|
86
|
+
* compile test and audit sql surfaces ([9482476](https://github.com/chio-labs/sqlbuild/commit/9482476fd72e54daf06e9fd027ce76e6b4c50272))
|
|
87
|
+
* default audits to delta and final ([25099c2](https://github.com/chio-labs/sqlbuild/commit/25099c2669679b683ad5fb1b0cba605504343a79))
|
|
88
|
+
* enforce typed source columns by default ([6d80f38](https://github.com/chio-labs/sqlbuild/commit/6d80f3898148b7667e6c388e0194e8fe440aae9e))
|
|
89
|
+
* enforce typed source columns by default ([4fd4e9b](https://github.com/chio-labs/sqlbuild/commit/4fd4e9b2d2fe03dc0017b435d9e1bc220ec85be6))
|
|
90
|
+
* expand compile templates in config layers ([f21b124](https://github.com/chio-labs/sqlbuild/commit/f21b124a2f1f7c822b4607fc41556180c47af97c))
|
|
91
|
+
* expand diff examples and samples ([884693f](https://github.com/chio-labs/sqlbuild/commit/884693f0c35da2ded25542dd797940870a516b71))
|
|
92
|
+
* expand discovery parsing and cli error handling ([69f23e2](https://github.com/chio-labs/sqlbuild/commit/69f23e2d34a029fa536e1b21047b8027ea756442))
|
|
93
|
+
* expand path selector endpoint syntax ([938ec22](https://github.com/chio-labs/sqlbuild/commit/938ec22979fdb9899b89450ddfc1e00bbb67db49))
|
|
94
|
+
* expand SQL UDF compile inputs ([9d6f2df](https://github.com/chio-labs/sqlbuild/commit/9d6f2df51a58c2f3b2209608af1c567548ed9242))
|
|
95
|
+
* extract logical sql references during compile ([01517e6](https://github.com/chio-labs/sqlbuild/commit/01517e6e8fee2c43cc735d5889b0b3c5990260d5))
|
|
96
|
+
* extract sql test cte semantics during compile ([65b789a](https://github.com/chio-labs/sqlbuild/commit/65b789a3290f842e616f40502c0e62d5eb9c6712))
|
|
97
|
+
* filter warehouse metadata by selected scope ([e10cd8a](https://github.com/chio-labs/sqlbuild/commit/e10cd8a3c26aab5c40bc8a32c522e7884a54663d))
|
|
98
|
+
* finish lifecycle event logging ([d907eb5](https://github.com/chio-labs/sqlbuild/commit/d907eb551b26b55df768716a9488246552bd97a7))
|
|
99
|
+
* guard unit test sql length ([7af7856](https://github.com/chio-labs/sqlbuild/commit/7af7856d0bd02cafc3f1d0cd4278abb6664fcdbc))
|
|
100
|
+
* improve chained sql test output ([2732950](https://github.com/chio-labs/sqlbuild/commit/273295085e52d4775bd879e53f5774edf1186625))
|
|
101
|
+
* make seed resources explicit ([f635894](https://github.com/chio-labs/sqlbuild/commit/f635894b5ea598b6271c8aaa9dcbabde50033e69))
|
|
102
|
+
* move model metadata into headers ([18d5481](https://github.com/chio-labs/sqlbuild/commit/18d54813b09d22c04112a19934041fc6920e619e))
|
|
103
|
+
* move model metadata into headers ([dd7f980](https://github.com/chio-labs/sqlbuild/commit/dd7f9808e37feef27585341fb8862ea4aff478dc))
|
|
104
|
+
* move statement recording into adapter write methods ([e2c6625](https://github.com/chio-labs/sqlbuild/commit/e2c66250bcc7c1f9665ab79d8eafddce0741e194))
|
|
105
|
+
* redesign plan formatter with grouped output, cascade display, microbatch labels, and enum-only domain strings ([08004cc](https://github.com/chio-labs/sqlbuild/commit/08004cc13f8986d9763724586c1b170acf203920))
|
|
106
|
+
* refine debug diagnostics output ([306506b](https://github.com/chio-labs/sqlbuild/commit/306506bcfac4635ed8de5d0bafc944395812217c))
|
|
107
|
+
* resolve compile environment and vars layering ([67931de](https://github.com/chio-labs/sqlbuild/commit/67931de95e403a175af5f64aedc203f97d6772b0))
|
|
108
|
+
* show delta/final audit phases with batch counts and aggregate microbatch audit results ([30bfde1](https://github.com/chio-labs/sqlbuild/commit/30bfde146d30bad70e3b976312d4f485d6e7f33c))
|
|
109
|
+
* show executed lifecycle SQL in verbose output ([509cc03](https://github.com/chio-labs/sqlbuild/commit/509cc039bc63d797b46efbcd67a78cd2147e2e7d))
|
|
110
|
+
* split early run context from target templates ([9b30f31](https://github.com/chio-labs/sqlbuild/commit/9b30f31572b489e1b08e72aa7e0fa9cae0229fe6))
|
|
111
|
+
* support double quoted model header strings ([5212d40](https://github.com/chio-labs/sqlbuild/commit/5212d40b299f26c5834d5dfb4d980fb0e1d714e6))
|
|
112
|
+
* support expression-backed sources ([2d8a693](https://github.com/chio-labs/sqlbuild/commit/2d8a69355a18ea48905568704e2af417fcf7f860))
|
|
113
|
+
* support local connection settings ([fa900cd](https://github.com/chio-labs/sqlbuild/commit/fa900cdcb08d24d8cf8ba3d34dba494596983c7a))
|
|
114
|
+
* support local environment overrides ([fd84b1e](https://github.com/chio-labs/sqlbuild/commit/fd84b1eced7b8f0e8a2dd8fe27b9bad4187a477c))
|
|
115
|
+
* support local environment overrides ([deeb521](https://github.com/chio-labs/sqlbuild/commit/deeb521993167a472480dd8a8080e178d4835d67))
|
|
116
|
+
* support seed mocks in SQL tests ([ddeea1c](https://github.com/chio-labs/sqlbuild/commit/ddeea1cc327375858604475146e6d1809ea794aa))
|
|
117
|
+
* support sql test macro mocks ([d4b7c84](https://github.com/chio-labs/sqlbuild/commit/d4b7c84c0990db71e2ec35b29f0beead1aa70e66))
|
|
118
|
+
* UNFINISHED (trying to introduce lifecycle events) ([aafbdba](https://github.com/chio-labs/sqlbuild/commit/aafbdba89b0130cafb3af4f8719c782fda1c08e1))
|
|
119
|
+
* use environment range for diff ([7abe590](https://github.com/chio-labs/sqlbuild/commit/7abe5901418580d732b461ac3dc63ea06718c917))
|
|
120
|
+
* use environment range for diff ([12b76ef](https://github.com/chio-labs/sqlbuild/commit/12b76ef00f3ff2a33eb4544a072f98410928368a))
|
|
121
|
+
* validate discovery conflicts and seed metadata ([9dd6622](https://github.com/chio-labs/sqlbuild/commit/9dd6622abe1ffb79ce7f226066e5b2e0438e3fbf))
|
|
122
|
+
* validate seed csv headers in discovery ([e2357a5](https://github.com/chio-labs/sqlbuild/commit/e2357a51d3fd2c80a6e33061445648ffadd808e8))
|
|
123
|
+
* wire CLI commands for build, run, test, audit, and seed ([4d82460](https://github.com/chio-labs/sqlbuild/commit/4d82460bfe9a8522c57321f674bda4145b539688))
|
|
124
|
+
* wire custom materialization loading through compile pipeline and add waffle shop example with e2e coverage ([dad1f75](https://github.com/chio-labs/sqlbuild/commit/dad1f75d79883e397431c3e786f8de89a8abc25d))
|
|
125
|
+
* write runtime SQL artifacts after build and run ([293a29c](https://github.com/chio-labs/sqlbuild/commit/293a29ce3b3d351d7cee60d84416487d6f24da78))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Bug Fixes
|
|
129
|
+
|
|
130
|
+
* align query fingerprint tracking ([a3307bc](https://github.com/chio-labs/sqlbuild/commit/a3307bc30885c0e1a43600b140b9d76ba502bb22))
|
|
131
|
+
* clarify audit failure messaging ([4c2a090](https://github.com/chio-labs/sqlbuild/commit/4c2a0909540111b9c67827f611b189f7419937e3))
|
|
132
|
+
* clarify CLI errors and DuckDB UDF fingerprints ([82921f9](https://github.com/chio-labs/sqlbuild/commit/82921f9423f975b0fd34d20601ee1a2648052d35))
|
|
133
|
+
* clarify CLI errors and DuckDB UDF fingerprints ([4d5801e](https://github.com/chio-labs/sqlbuild/commit/4d5801eeb1c99dc97044268dafef78b43959512a))
|
|
134
|
+
* coarsen mixed timestamp cursor replay ([a53901e](https://github.com/chio-labs/sqlbuild/commit/a53901eed994d2dc030c67e11b6c1848fe78b0e9))
|
|
135
|
+
* consolidate duplicate _get_materialization_type and add advanced custom materialization tests ([b9d3f9d](https://github.com/chio-labs/sqlbuild/commit/b9d3f9d987122484f26782060e167d0f999a1454))
|
|
136
|
+
* correct SKIP semantics, enforce incremental strategy, fix deferred cursor resolution ([bc7c344](https://github.com/chio-labs/sqlbuild/commit/bc7c3448b94618082ab0625bd4bd0eccd6a5de19))
|
|
137
|
+
* enforce cascade backfill planning ([fa18cbb](https://github.com/chio-labs/sqlbuild/commit/fa18cbbc9e03ac7ed33502d94dbb32f7e5050653))
|
|
138
|
+
* enforce cascade backfill planning ([214e294](https://github.com/chio-labs/sqlbuild/commit/214e29441ab972ab146475b8112de789f4eb7a29))
|
|
139
|
+
* handle runtime-owned cursor filters on first build ([e7b9202](https://github.com/chio-labs/sqlbuild/commit/e7b9202175cc0145735a9306237b8c041cfb4ad6))
|
|
140
|
+
* harden microbatch full-refresh execution ([43aa3fc](https://github.com/chio-labs/sqlbuild/commit/43aa3fca70b26fc6878f03040a5ccad52d7e4ef9))
|
|
141
|
+
* improve CLI output formatting and add Execution section header ([f3a67f3](https://github.com/chio-labs/sqlbuild/commit/f3a67f33864cddb4673a02b35cde9ee4a645cb49))
|
|
142
|
+
* improve plan/execution CLI output visual hierarchy and spacing ([eb1b0ed](https://github.com/chio-labs/sqlbuild/commit/eb1b0edcff08543328b22a7a135460870900d87f))
|
|
143
|
+
* improve standalone audit and test output with model grouping and consistent header styling ([c0475ae](https://github.com/chio-labs/sqlbuild/commit/c0475aec81f58e29592e5254e7c28f179512dc16))
|
|
144
|
+
* improve warehouse planning feedback ([70fc2a4](https://github.com/chio-labs/sqlbuild/commit/70fc2a46a0f3d2ebdd62611a87741142a1ef43a5))
|
|
145
|
+
* improve warehouse planning feedback ([17dd900](https://github.com/chio-labs/sqlbuild/commit/17dd90029a297d4d5df5e7518e7f22ffeb9897fb))
|
|
146
|
+
* indent audit and test sub-lines for clearer visual nesting under parent model ([bf2a2c7](https://github.com/chio-labs/sqlbuild/commit/bf2a2c7814fae9aa2e7a10b83964a81412e81db7))
|
|
147
|
+
* polish plan selectors and runtime artifacts ([f2f0633](https://github.com/chio-labs/sqlbuild/commit/f2f0633da597634a6a33863635adcc1a2f76345e))
|
|
148
|
+
* propagate UDF definition changes ([5e87a9c](https://github.com/chio-labs/sqlbuild/commit/5e87a9c08d105d47f44bf226f81497d7c3d77470))
|
|
149
|
+
* propagate UDF definition changes ([12e2125](https://github.com/chio-labs/sqlbuild/commit/12e2125296dff4cf009a1e3af86424f7e194b591))
|
|
150
|
+
* refine query change warning behavior ([6c2a193](https://github.com/chio-labs/sqlbuild/commit/6c2a19383ae04847fad1586cf6797d6eb4f5f736))
|
|
151
|
+
* refresh latest tracked partition ([9ff283e](https://github.com/chio-labs/sqlbuild/commit/9ff283e60faff82878098f690c4c7d46b883a630))
|
|
152
|
+
* reject unsupported dbt refs ([4717d3b](https://github.com/chio-labs/sqlbuild/commit/4717d3ba301af8079b08e04bf4b863a412b1789b))
|
|
153
|
+
* remove dead test helpers, deduplicate write_repo_files into shared fixture, and strengthen ast hash test ([e5daeb2](https://github.com/chio-labs/sqlbuild/commit/e5daeb245b0f1233270153cf1e0a035389940f87))
|
|
154
|
+
* resolve model-backed cursor inputs at runtime ([423f9ff](https://github.com/chio-labs/sqlbuild/commit/423f9ff442457e51095dbec98f1580b9c2f7cbb7))
|
|
155
|
+
* scope snowflake test markers ([9ee43c2](https://github.com/chio-labs/sqlbuild/commit/9ee43c2ff0b71b74df887337ff6853c3c64d3ce5))
|
|
156
|
+
* show incremental strategy annotation on full-refresh build output ([288d8c2](https://github.com/chio-labs/sqlbuild/commit/288d8c2788a1007fb64397cd1113f0c98b38f9f2))
|
|
157
|
+
* show model count in audit and test command headers ([f528515](https://github.com/chio-labs/sqlbuild/commit/f528515ba1fe0562e2ef0a662594fb2d68d4b927))
|
|
158
|
+
* show seed failures and default quotechar ([cabd72c](https://github.com/chio-labs/sqlbuild/commit/cabd72c6dc78320d1dfe8546633d9c1f55704bcd))
|
|
159
|
+
* stabilize SQL tests with Snowflake UDFs ([239fa16](https://github.com/chio-labs/sqlbuild/commit/239fa16786dc45737b15e637e824d2d74e0cbf87))
|
|
160
|
+
* tighten config validation ([6adc4c2](https://github.com/chio-labs/sqlbuild/commit/6adc4c23ade8cc1613701866badbb41e0c26ab6b))
|
|
161
|
+
* use BigQuery copy promotion ([a4ccff9](https://github.com/chio-labs/sqlbuild/commit/a4ccff94258dbd7503ecb1b4039045e74e3d8c50))
|
|
162
|
+
* use BigQuery copy promotion ([386deb4](https://github.com/chio-labs/sqlbuild/commit/386deb49ebbbf625f55847dac0ca63b48240ae3f))
|
|
163
|
+
* use BigQuery MERGE for delete insert ([a0d1283](https://github.com/chio-labs/sqlbuild/commit/a0d12838dfc8165279b83e4103939e4e648c23dd))
|
|
164
|
+
* use BigQuery MERGE for delete insert ([da62a51](https://github.com/chio-labs/sqlbuild/commit/da62a51af74dc93ab8c5679572b663b56039a94b))
|
|
165
|
+
* use dynamic column widths in build progress output for better terminal usage ([0c89ad0](https://github.com/chio-labs/sqlbuild/commit/0c89ad002a596d174c3125b66296f277e326dee0))
|
|
166
|
+
* validate cursor input names ([ec1a97a](https://github.com/chio-labs/sqlbuild/commit/ec1a97ab2d284eba42dbce91a6418970d9e31e48))
|
|
167
|
+
* validate declared inline source columns ([6969e03](https://github.com/chio-labs/sqlbuild/commit/6969e039d202bbab76fd6ed2267bf94f55bcb528))
|
|
168
|
+
* validate declared inline source columns ([da58065](https://github.com/chio-labs/sqlbuild/commit/da58065da0bbb6b6de5fa225772fca1f9978246e))
|
|
169
|
+
* validate hook sql at compile time ([6c370d1](https://github.com/chio-labs/sqlbuild/commit/6c370d1f51a5702295c5be7a3f7e59c877baee09))
|
|
170
|
+
* validate relation source metadata columns ([a0ed2c0](https://github.com/chio-labs/sqlbuild/commit/a0ed2c015421db8641143cb6761b70ab5c7941d2))
|
|
171
|
+
* wrap multi-statement DML in transactions for atomicity ([884bfbc](https://github.com/chio-labs/sqlbuild/commit/884bfbcfbf2cc7e639b1e8dc58cb960baefc567e))
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Documentation
|
|
175
|
+
|
|
176
|
+
* add project logo ([5e629c7](https://github.com/chio-labs/sqlbuild/commit/5e629c726fd637937800a0533f3959a04471e724))
|
|
177
|
+
* capture runtime SQL recording plan ([935e2d3](https://github.com/chio-labs/sqlbuild/commit/935e2d3cd557b9bd68fd0830d3c1fb5a802b8c36))
|
|
178
|
+
* enlarge README logo ([e6daafb](https://github.com/chio-labs/sqlbuild/commit/e6daafbc78cfb4306514760bd99cd0f50dfba27b))
|
|
179
|
+
* expand project README ([968b5f9](https://github.com/chio-labs/sqlbuild/commit/968b5f9bb905c9554af777d8a2312b67f5f00b2c))
|
|
180
|
+
* update feature overview ([607da90](https://github.com/chio-labs/sqlbuild/commit/607da901837f0dccbb5060f294b14d487da2408b))
|
|
181
|
+
* update README logo asset ([cce1d12](https://github.com/chio-labs/sqlbuild/commit/cce1d12df7289fcde8a7da42ae1f606ea206a0cd))
|
|
182
|
+
* update README positioning ([89fea65](https://github.com/chio-labs/sqlbuild/commit/89fea658c15dbd84450b554fed6bea163dfbbbfc))
|
|
183
|
+
* update README positioning ([832153e](https://github.com/chio-labs/sqlbuild/commit/832153e0bebbdbcade455c8d45a628a3f9bee923))
|
|
184
|
+
|
|
185
|
+
## Changelog
|
|
186
|
+
|
|
187
|
+
Release notes are managed by release-please.
|
sqlbuild-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|