squawk-cli 1.4.0__tar.gz → 1.5.5__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.
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/Cargo.lock +158 -31
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/PKG-INFO +2 -2
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/Cargo.toml +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/config.rs +6 -6
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/reporter.rs +27 -22
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/lib.rs +4 -4
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/adding_field_with_default.rs +38 -15
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/adding_foreign_key_constraint.rs +4 -4
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/adding_not_null_field.rs +10 -38
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/adding_primary_key_constraint.rs +2 -2
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/adding_required_field.rs +30 -3
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/ban_char_field.rs +3 -16
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/ban_concurrent_index_creation_in_transaction.rs +7 -4
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/ban_drop_column.rs +1 -1
- squawk_cli-1.4.0/linter/src/rules/bad_drop_database.rs → squawk_cli-1.5.5/linter/src/rules/ban_drop_database.rs +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/ban_drop_not_null.rs +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/ban_drop_table.rs +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/changing_column_type.rs +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/constraint_missing_not_valid.rs +22 -5
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/disallow_unique_constraint.rs +6 -6
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/mod.rs +2 -2
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/prefer_big_int.rs +16 -5
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/prefer_bigint_over_int.rs +5 -5
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/prefer_bigint_over_smallint.rs +5 -5
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/prefer_identity.rs +5 -5
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/prefer_robust_stmts.rs +25 -6
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/prefer_text_field.rs +10 -14
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/prefer_timestamptz.rs +5 -5
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/renaming_column.rs +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/renaming_table.rs +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/require_concurrent_index_creation.rs +3 -3
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/require_concurrent_index_deletion.rs +1 -1
- squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__generated_stored.snap +23 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_not_null_field__test_rules__adding_field_that_is_not_nullable_in_version_11.snap +1 -1
- squawk_cli-1.4.0/linter/src/rules/snapshots/squawk_linter__rules__adding_not_null_field__test_rules__adding_field_that_is_not_nullable.snap → squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__adding_not_null_field__test_rules__adding_field_that_is_not_nullable_without_default.snap +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_primary_key_constraint__test_rules__plain_primary_key-2.snap +1 -1
- squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__adding_required_field__test_rules__not_null_with_default.snap +5 -0
- squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__adding_required_field__test_rules__nullable.snap +5 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_char_field__test_rules__creating_table_with_char_errors.snap +8 -16
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_concurrent_index_creation_in_transaction__test_rules__adding_index_concurrently_in_transaction_with_assume_in_transaction_but_outside.snap +0 -1
- squawk_cli-1.4.0/linter/src/rules/snapshots/squawk_linter__rules__bad_drop_database__test_rules__ban_drop_database.snap → squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__ban_drop_database__test_rules__ban_drop_database.snap +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_drop_table__test_rules__ban_drop_table.snap +0 -1
- squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__regression_with_indexing_2.snap +5 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_big_int__test_rules__create_table_bad.snap +16 -32
- squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__prefer_big_int__test_rules__create_table_many_errors.snap +36 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_bigint_over_int__test_rules__create_table_bad.snap +8 -16
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_bigint_over_smallint__test_rules__create_table_bad.snap +8 -16
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_identity__test_rules__prefer_identity_bad.snap +12 -24
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_text_field__test_rules__adding_column_non_text.snap +2 -4
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_timestamptz__test_rules__alter_table.snap +4 -8
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/transaction_nesting.rs +8 -8
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/utils.rs +3 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/versions.rs +3 -3
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/Cargo.toml +1 -1
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/ast.rs +10 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/parse.rs +125 -125
- squawk_cli-1.5.5/parser/src/snapshots/squawk_parser__parse__tests__parse_sql_query_json_works.snap +139 -0
- squawk_cli-1.4.0/linter/src/rules/snapshots/squawk_linter__rules__ban_char_field__test_rules__regression_with_indexing_2.snap +0 -5
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/Cargo.toml +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5/cli}/README.md +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/file_finding.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/main.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__config__test_config__load_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__config__test_config__load_cfg_full.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__config__test_config__load_excluded_paths.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__config__test_config__load_excluded_rules.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__config__test_config__load_fail_on_violations.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__config__test_config__load_pg_version.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__reporter__test_check_files__check_files_invalid_syntax.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__reporter__test_github_comment__generating_comment_multiple_files.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__reporter__test_github_comment__generating_comment_no_violations.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__reporter__test_github_comment__generating_no_violations_no_files.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__reporter__test_reporter__display_no_violations_tty.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__reporter__test_reporter__display_violations_tty.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/snapshots/squawk__reporter__test_reporter__span_offsets.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/cli/src/subcommand.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/github/Cargo.toml +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/github/README.md +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/github/src/actions.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/github/src/app.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/github/src/lib.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/Cargo.toml +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/README.md +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/errors.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/README.md +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/non_volatile_built_in_functions.txt +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__add_numbers_ok.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_arbitrary_func_err.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_bool_ok.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_enum_ok.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_integer_ok.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_jsonb_ok.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_now_func_ok.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_random_with_args_err.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_str_ok.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_uuid_err.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__default_volatile_func_err.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__docs_example_bad.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_field_with_default__test_rules__docs_example_ok.snap +0 -0
- /squawk_cli-1.4.0/linter/src/rules/snapshots/squawk_linter__rules__adding_not_null_field__test_rules__adding_field_that_is_not_nullable_without_default.snap → /squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__adding_not_null_field__test_rules__adding_field_that_is_not_nullable.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_not_null_field__test_rules__set_not_null.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_primary_key_constraint__test_rules__plain_primary_key.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_primary_key_constraint__test_rules__serial_primary_key.snap +0 -0
- /squawk_cli-1.4.0/linter/src/rules/snapshots/squawk_linter__rules__adding_required_field__test_rules__not_null_with_default.snap → /squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__adding_required_field__test_rules__generated_stored.snap +0 -0
- /squawk_cli-1.4.0/linter/src/rules/snapshots/squawk_linter__rules__adding_required_field__test_rules__nullable.snap → /squawk_cli-1.5.5/linter/src/rules/snapshots/squawk_linter__rules__adding_required_field__test_rules__generated_stored_not_null.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__adding_required_field__test_rules__not_null_without_default.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_char_field__test_rules__creating_table_with_var_char_and_text_okay.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_concurrent_index_creation_in_transaction__test_rules__adding_index_concurrently_in_transaction-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_concurrent_index_creation_in_transaction__test_rules__adding_index_concurrently_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_concurrent_index_creation_in_transaction__test_rules__adding_index_concurrently_in_transaction_with_assume_in_transaction-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_concurrent_index_creation_in_transaction__test_rules__adding_index_concurrently_in_transaction_with_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_drop_column__test_rules__drop_column.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__ban_drop_not_null__test_rules__ban_drop_not_null.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__changing_column_type__test_rules__changing_field_type-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__changing_column_type__test_rules__changing_field_type.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__adding_check_constraint-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__adding_check_constraint.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__adding_foreign_key-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__adding_foreign_key.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__ensure_ignored_when_new_table.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__ensure_ignored_when_new_table_with_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__not_valid_validate_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__not_valid_validate_with_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__constraint_missing_not_valid__test_rules__not_valid_validate_with_assume_in_transaction_with_explicit_commit.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__disallow_unique_constraint__test_rules__adding_unique_constraint-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__disallow_unique_constraint__test_rules__adding_unique_constraint-3.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__disallow_unique_constraint__test_rules__adding_unique_constraint.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__disallow_unique_constraint__test_rules__unique_constraint_inline_add_column.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__disallow_unique_constraint__test_rules__unique_constraint_inline_add_column_unique.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_robust_stmts__test_rules__create_index_concurrently_unnamed.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_robust_stmts__test_rules__disable_row_level_security.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_robust_stmts__test_rules__enable_row_level_security.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__prefer_robust_stmts__test_rules__enable_row_level_security_without_exists_check.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__renaming_column__test_rules__renaming_column.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__renaming_table__test_rules__renaming_table.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__require_concurrent_index_creation__test_rules__adding_index_non_concurrently-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__require_concurrent_index_creation__test_rules__adding_index_non_concurrently.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__require_concurrent_index_creation__test_rules__ensure_ignored_when_new_table.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__require_concurrent_index_creation__test_rules__ensure_ignored_when_new_table_with_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__transaction_nesting__test_rules__begin_repeated.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__transaction_nesting__test_rules__begin_with_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__transaction_nesting__test_rules__commit_repeated.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__transaction_nesting__test_rules__commit_with_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/snapshots/squawk_linter__rules__transaction_nesting__test_rules__rollback_with_assume_in_transaction.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/rules/test_utils.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/snapshots/squawk_linter__test_rules__rule_names_debug_snap.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/snapshots/squawk_linter__test_rules__rule_names_display_snap.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/snapshots/squawk_linter__versions__test_pg_version__parse.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/linter/src/violations.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/README.md +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/error.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/lib.rs +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__adding_index_non_concurrently.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_column_default_with_function.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_database_collation.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_database_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_default_privileges_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_enum_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_event_trigger_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_extension_contents_stmt-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_extension_contents_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_foreign_data_wrapper.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_foreign_server_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_function_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_object_depends_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_op_class_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_op_family_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_operator_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_policy_stmt-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_policy_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_publication.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_role_set_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_role_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_sequence_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_subscription_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_system_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_table_extension.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_table_space_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_ts_configuration_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_ts_dictionary_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__alter_user_mapping_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__checkpoint.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__close_portal_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__cluster_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__comment_on_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__composite_type_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_access_method_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_cast_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_conversion_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_database_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_domain_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_enum_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_event_trigger_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_extension.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_foreign_data_wrapper.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_foreign_server_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_foriegn_table_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_function_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_index_without_index_name.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_op_class_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_plang_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_policy_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_procedure_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_publication_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_range_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_role_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_sequence_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_stats_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_subscription_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_table_as_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_transform_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_trigger_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_user_mapping_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__create_view_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__deallocate_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__declare_cursor_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__define_stmt-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__define_stmt-3.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__define_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__discard_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__do_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__drop_database_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__drop_extension.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__drop_index.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__drop_owned_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__drop_role_set_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__drop_subscription_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__drop_user_mapping_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__error_paths.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__execute_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__explain_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__fetch_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__import_foreign_schema_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__json_index_operator.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__listen_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__load_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__lock_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__migration.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__notify_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_alter_collation_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_alter_constraint_regression.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_alter_domain_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_alter_table_set_list.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_attach_table_partition.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_create_schema_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_create_table_partition.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_create_table_regression.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_delete_stmt-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_delete_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_delete_stmt_2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_detach_table_partition.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_func_call.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_generated_column.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_inh.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_replica_identity_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_set_operations_stmt-2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_set_operations_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_set_operations_stmt_2.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_sql_create_index.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_sql_create_index_concurrently.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_sql_create_unique_index_safe.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parse_sql_query_json.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_copy_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_create_table.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_create_table_space_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_create_table_using_like.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_drop_table_space_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_grant_role.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_grant_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_insert_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_update_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_variable_set_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__parsing_variable_show_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__prepare_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__reassign_owned_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__refresh_material_view_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__regression_update_table.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__reindex_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__rule_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__security_label_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__select_one.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__select_string_literal.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__set_constraints.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__span_with_indent.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__span_with_new_line_and_indent.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__truncate_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__unlisten_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/parser/src/snapshots/squawk_parser__parse__tests__vacuum_stmt.snap +0 -0
- {squawk_cli-1.4.0 → squawk_cli-1.5.5}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
# This file is automatically @generated by Cargo.
|
2
2
|
# It is not intended for manual editing.
|
3
|
-
version =
|
3
|
+
version = 4
|
4
4
|
|
5
5
|
[[package]]
|
6
6
|
name = "addr2line"
|
@@ -94,7 +94,7 @@ version = "0.64.0"
|
|
94
94
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
95
95
|
checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4"
|
96
96
|
dependencies = [
|
97
|
-
"bitflags",
|
97
|
+
"bitflags 1.3.2",
|
98
98
|
"cexpr",
|
99
99
|
"clang-sys",
|
100
100
|
"lazy_static",
|
@@ -116,6 +116,12 @@ version = "1.3.2"
|
|
116
116
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
117
117
|
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
118
118
|
|
119
|
+
[[package]]
|
120
|
+
name = "bitflags"
|
121
|
+
version = "2.6.0"
|
122
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
123
|
+
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
124
|
+
|
119
125
|
[[package]]
|
120
126
|
name = "bumpalo"
|
121
127
|
version = "3.10.0"
|
@@ -168,9 +174,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
168
174
|
|
169
175
|
[[package]]
|
170
176
|
name = "clang-sys"
|
171
|
-
version = "1.
|
177
|
+
version = "1.8.1"
|
172
178
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
173
|
-
checksum = "
|
179
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
174
180
|
dependencies = [
|
175
181
|
"glob",
|
176
182
|
"libc",
|
@@ -185,7 +191,7 @@ checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
|
|
185
191
|
dependencies = [
|
186
192
|
"ansi_term",
|
187
193
|
"atty",
|
188
|
-
"bitflags",
|
194
|
+
"bitflags 1.3.2",
|
189
195
|
"strsim",
|
190
196
|
"textwrap",
|
191
197
|
"unicode-width",
|
@@ -198,7 +204,7 @@ version = "0.0.3"
|
|
198
204
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
199
205
|
checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
|
200
206
|
dependencies = [
|
201
|
-
"bitflags",
|
207
|
+
"bitflags 1.3.2",
|
202
208
|
]
|
203
209
|
|
204
210
|
[[package]]
|
@@ -352,6 +358,16 @@ dependencies = [
|
|
352
358
|
"cfg-if 1.0.0",
|
353
359
|
]
|
354
360
|
|
361
|
+
[[package]]
|
362
|
+
name = "errno"
|
363
|
+
version = "0.3.10"
|
364
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
365
|
+
checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
|
366
|
+
dependencies = [
|
367
|
+
"libc",
|
368
|
+
"windows-sys 0.59.0",
|
369
|
+
]
|
370
|
+
|
355
371
|
[[package]]
|
356
372
|
name = "failure"
|
357
373
|
version = "0.1.8"
|
@@ -442,7 +458,7 @@ version = "0.3.3"
|
|
442
458
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
443
459
|
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
|
444
460
|
dependencies = [
|
445
|
-
"bitflags",
|
461
|
+
"bitflags 1.3.2",
|
446
462
|
"fuchsia-zircon-sys",
|
447
463
|
]
|
448
464
|
|
@@ -522,6 +538,15 @@ dependencies = [
|
|
522
538
|
"libc",
|
523
539
|
]
|
524
540
|
|
541
|
+
[[package]]
|
542
|
+
name = "home"
|
543
|
+
version = "0.5.9"
|
544
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
545
|
+
checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
|
546
|
+
dependencies = [
|
547
|
+
"windows-sys 0.52.0",
|
548
|
+
]
|
549
|
+
|
525
550
|
[[package]]
|
526
551
|
name = "http"
|
527
552
|
version = "0.1.21"
|
@@ -717,24 +742,24 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
717
742
|
|
718
743
|
[[package]]
|
719
744
|
name = "libc"
|
720
|
-
version = "0.2.
|
745
|
+
version = "0.2.167"
|
721
746
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
722
|
-
checksum = "
|
747
|
+
checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc"
|
723
748
|
|
724
749
|
[[package]]
|
725
750
|
name = "libloading"
|
726
|
-
version = "0.
|
751
|
+
version = "0.8.6"
|
727
752
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
728
|
-
checksum = "
|
753
|
+
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
|
729
754
|
dependencies = [
|
730
755
|
"cfg-if 1.0.0",
|
731
|
-
"
|
756
|
+
"windows-targets",
|
732
757
|
]
|
733
758
|
|
734
759
|
[[package]]
|
735
760
|
name = "libpg_query-sys"
|
736
761
|
version = "0.4.0"
|
737
|
-
source = "git+https://github.com/chdsbd/libpg_query-sys.git?rev=
|
762
|
+
source = "git+https://github.com/chdsbd/libpg_query-sys.git?rev=ac223c7b197459d657d166449ccf99883f23bbcb#ac223c7b197459d657d166449ccf99883f23bbcb"
|
738
763
|
dependencies = [
|
739
764
|
"bindgen",
|
740
765
|
"cc",
|
@@ -749,6 +774,12 @@ version = "0.5.6"
|
|
749
774
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
750
775
|
checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
|
751
776
|
|
777
|
+
[[package]]
|
778
|
+
name = "linux-raw-sys"
|
779
|
+
version = "0.4.14"
|
780
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
781
|
+
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
782
|
+
|
752
783
|
[[package]]
|
753
784
|
name = "lock_api"
|
754
785
|
version = "0.3.4"
|
@@ -893,9 +924,9 @@ dependencies = [
|
|
893
924
|
|
894
925
|
[[package]]
|
895
926
|
name = "nom"
|
896
|
-
version = "7.1.
|
927
|
+
version = "7.1.3"
|
897
928
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
898
|
-
checksum = "
|
929
|
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
899
930
|
dependencies = [
|
900
931
|
"memchr",
|
901
932
|
"minimal-lexical",
|
@@ -971,7 +1002,7 @@ version = "0.10.40"
|
|
971
1002
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
972
1003
|
checksum = "fb81a6430ac911acb25fe5ac8f1d2af1b4ea8a4fdfda0f1ee4292af2e2d8eb0e"
|
973
1004
|
dependencies = [
|
974
|
-
"bitflags",
|
1005
|
+
"bitflags 1.3.2",
|
975
1006
|
"cfg-if 1.0.0",
|
976
1007
|
"foreign-types",
|
977
1008
|
"libc",
|
@@ -1258,7 +1289,7 @@ version = "0.2.13"
|
|
1258
1289
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1259
1290
|
checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42"
|
1260
1291
|
dependencies = [
|
1261
|
-
"bitflags",
|
1292
|
+
"bitflags 1.3.2",
|
1262
1293
|
]
|
1263
1294
|
|
1264
1295
|
[[package]]
|
@@ -1355,6 +1386,19 @@ dependencies = [
|
|
1355
1386
|
"semver",
|
1356
1387
|
]
|
1357
1388
|
|
1389
|
+
[[package]]
|
1390
|
+
name = "rustix"
|
1391
|
+
version = "0.38.41"
|
1392
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1393
|
+
checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6"
|
1394
|
+
dependencies = [
|
1395
|
+
"bitflags 2.6.0",
|
1396
|
+
"errno",
|
1397
|
+
"libc",
|
1398
|
+
"linux-raw-sys",
|
1399
|
+
"windows-sys 0.52.0",
|
1400
|
+
]
|
1401
|
+
|
1358
1402
|
[[package]]
|
1359
1403
|
name = "ryu"
|
1360
1404
|
version = "1.0.10"
|
@@ -1368,7 +1412,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1368
1412
|
checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2"
|
1369
1413
|
dependencies = [
|
1370
1414
|
"lazy_static",
|
1371
|
-
"windows-sys",
|
1415
|
+
"windows-sys 0.36.1",
|
1372
1416
|
]
|
1373
1417
|
|
1374
1418
|
[[package]]
|
@@ -1383,7 +1427,7 @@ version = "2.6.1"
|
|
1383
1427
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1384
1428
|
checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc"
|
1385
1429
|
dependencies = [
|
1386
|
-
"bitflags",
|
1430
|
+
"bitflags 1.3.2",
|
1387
1431
|
"core-foundation",
|
1388
1432
|
"core-foundation-sys",
|
1389
1433
|
"libc",
|
@@ -1492,9 +1536,9 @@ dependencies = [
|
|
1492
1536
|
|
1493
1537
|
[[package]]
|
1494
1538
|
name = "shlex"
|
1495
|
-
version = "1.
|
1539
|
+
version = "1.3.0"
|
1496
1540
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1497
|
-
checksum = "
|
1541
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
1498
1542
|
|
1499
1543
|
[[package]]
|
1500
1544
|
name = "simple_asn1"
|
@@ -1542,7 +1586,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
|
|
1542
1586
|
|
1543
1587
|
[[package]]
|
1544
1588
|
name = "squawk"
|
1545
|
-
version = "1.
|
1589
|
+
version = "1.5.5"
|
1546
1590
|
dependencies = [
|
1547
1591
|
"atty",
|
1548
1592
|
"base64 0.12.3",
|
@@ -2116,13 +2160,14 @@ dependencies = [
|
|
2116
2160
|
|
2117
2161
|
[[package]]
|
2118
2162
|
name = "which"
|
2119
|
-
version = "4.2
|
2163
|
+
version = "4.4.2"
|
2120
2164
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2121
|
-
checksum = "
|
2165
|
+
checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
|
2122
2166
|
dependencies = [
|
2123
2167
|
"either",
|
2124
|
-
"
|
2125
|
-
"
|
2168
|
+
"home",
|
2169
|
+
"once_cell",
|
2170
|
+
"rustix",
|
2126
2171
|
]
|
2127
2172
|
|
2128
2173
|
[[package]]
|
@@ -2174,43 +2219,125 @@ version = "0.36.1"
|
|
2174
2219
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2175
2220
|
checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
|
2176
2221
|
dependencies = [
|
2177
|
-
"windows_aarch64_msvc",
|
2178
|
-
"windows_i686_gnu",
|
2179
|
-
"windows_i686_msvc",
|
2180
|
-
"windows_x86_64_gnu",
|
2181
|
-
"windows_x86_64_msvc",
|
2222
|
+
"windows_aarch64_msvc 0.36.1",
|
2223
|
+
"windows_i686_gnu 0.36.1",
|
2224
|
+
"windows_i686_msvc 0.36.1",
|
2225
|
+
"windows_x86_64_gnu 0.36.1",
|
2226
|
+
"windows_x86_64_msvc 0.36.1",
|
2227
|
+
]
|
2228
|
+
|
2229
|
+
[[package]]
|
2230
|
+
name = "windows-sys"
|
2231
|
+
version = "0.52.0"
|
2232
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2233
|
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
2234
|
+
dependencies = [
|
2235
|
+
"windows-targets",
|
2182
2236
|
]
|
2183
2237
|
|
2238
|
+
[[package]]
|
2239
|
+
name = "windows-sys"
|
2240
|
+
version = "0.59.0"
|
2241
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2242
|
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
2243
|
+
dependencies = [
|
2244
|
+
"windows-targets",
|
2245
|
+
]
|
2246
|
+
|
2247
|
+
[[package]]
|
2248
|
+
name = "windows-targets"
|
2249
|
+
version = "0.52.6"
|
2250
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2251
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
2252
|
+
dependencies = [
|
2253
|
+
"windows_aarch64_gnullvm",
|
2254
|
+
"windows_aarch64_msvc 0.52.6",
|
2255
|
+
"windows_i686_gnu 0.52.6",
|
2256
|
+
"windows_i686_gnullvm",
|
2257
|
+
"windows_i686_msvc 0.52.6",
|
2258
|
+
"windows_x86_64_gnu 0.52.6",
|
2259
|
+
"windows_x86_64_gnullvm",
|
2260
|
+
"windows_x86_64_msvc 0.52.6",
|
2261
|
+
]
|
2262
|
+
|
2263
|
+
[[package]]
|
2264
|
+
name = "windows_aarch64_gnullvm"
|
2265
|
+
version = "0.52.6"
|
2266
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2267
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
2268
|
+
|
2184
2269
|
[[package]]
|
2185
2270
|
name = "windows_aarch64_msvc"
|
2186
2271
|
version = "0.36.1"
|
2187
2272
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2188
2273
|
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
|
2189
2274
|
|
2275
|
+
[[package]]
|
2276
|
+
name = "windows_aarch64_msvc"
|
2277
|
+
version = "0.52.6"
|
2278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2279
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
2280
|
+
|
2190
2281
|
[[package]]
|
2191
2282
|
name = "windows_i686_gnu"
|
2192
2283
|
version = "0.36.1"
|
2193
2284
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2194
2285
|
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
|
2195
2286
|
|
2287
|
+
[[package]]
|
2288
|
+
name = "windows_i686_gnu"
|
2289
|
+
version = "0.52.6"
|
2290
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2291
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
2292
|
+
|
2293
|
+
[[package]]
|
2294
|
+
name = "windows_i686_gnullvm"
|
2295
|
+
version = "0.52.6"
|
2296
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2297
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
2298
|
+
|
2196
2299
|
[[package]]
|
2197
2300
|
name = "windows_i686_msvc"
|
2198
2301
|
version = "0.36.1"
|
2199
2302
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2200
2303
|
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
|
2201
2304
|
|
2305
|
+
[[package]]
|
2306
|
+
name = "windows_i686_msvc"
|
2307
|
+
version = "0.52.6"
|
2308
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2309
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
2310
|
+
|
2202
2311
|
[[package]]
|
2203
2312
|
name = "windows_x86_64_gnu"
|
2204
2313
|
version = "0.36.1"
|
2205
2314
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2206
2315
|
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
|
2207
2316
|
|
2317
|
+
[[package]]
|
2318
|
+
name = "windows_x86_64_gnu"
|
2319
|
+
version = "0.52.6"
|
2320
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2321
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
2322
|
+
|
2323
|
+
[[package]]
|
2324
|
+
name = "windows_x86_64_gnullvm"
|
2325
|
+
version = "0.52.6"
|
2326
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2327
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
2328
|
+
|
2208
2329
|
[[package]]
|
2209
2330
|
name = "windows_x86_64_msvc"
|
2210
2331
|
version = "0.36.1"
|
2211
2332
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2212
2333
|
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
|
2213
2334
|
|
2335
|
+
[[package]]
|
2336
|
+
name = "windows_x86_64_msvc"
|
2337
|
+
version = "0.52.6"
|
2338
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2339
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
2340
|
+
|
2214
2341
|
[[package]]
|
2215
2342
|
name = "winreg"
|
2216
2343
|
version = "0.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: squawk-cli
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.5.5
|
4
4
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
5
5
|
Classifier: Operating System :: MacOS
|
6
6
|
Classifier: Operating System :: Microsoft :: Windows
|
@@ -104,7 +104,7 @@ mod test_config {
|
|
104
104
|
use super::*;
|
105
105
|
|
106
106
|
#[test]
|
107
|
-
fn
|
107
|
+
fn load_cfg_full() {
|
108
108
|
let squawk_toml = NamedTempFile::new().expect("generate tempFile");
|
109
109
|
let file = r#"
|
110
110
|
pg_version = "19.1"
|
@@ -117,7 +117,7 @@ assume_in_transaction = true
|
|
117
117
|
assert_debug_snapshot!(Config::parse(Some(squawk_toml.path().to_path_buf())));
|
118
118
|
}
|
119
119
|
#[test]
|
120
|
-
fn
|
120
|
+
fn load_pg_version() {
|
121
121
|
let squawk_toml = NamedTempFile::new().expect("generate tempFile");
|
122
122
|
let file = r#"
|
123
123
|
pg_version = "19.1"
|
@@ -127,7 +127,7 @@ pg_version = "19.1"
|
|
127
127
|
assert_debug_snapshot!(Config::parse(Some(squawk_toml.path().to_path_buf())));
|
128
128
|
}
|
129
129
|
#[test]
|
130
|
-
fn
|
130
|
+
fn load_excluded_rules() {
|
131
131
|
let squawk_toml = NamedTempFile::new().expect("generate tempFile");
|
132
132
|
let file = r#"
|
133
133
|
excluded_rules = ["require-concurrent-index-creation"]
|
@@ -137,7 +137,7 @@ excluded_rules = ["require-concurrent-index-creation"]
|
|
137
137
|
assert_debug_snapshot!(Config::parse(Some(squawk_toml.path().to_path_buf())));
|
138
138
|
}
|
139
139
|
#[test]
|
140
|
-
fn
|
140
|
+
fn load_excluded_paths() {
|
141
141
|
let squawk_toml = NamedTempFile::new().expect("generate tempFile");
|
142
142
|
let file = r#"
|
143
143
|
excluded_paths = ["example.sql"]
|
@@ -147,7 +147,7 @@ excluded_paths = ["example.sql"]
|
|
147
147
|
assert_debug_snapshot!(Config::parse(Some(squawk_toml.path().to_path_buf())));
|
148
148
|
}
|
149
149
|
#[test]
|
150
|
-
fn
|
150
|
+
fn load_assume_in_transaction() {
|
151
151
|
let squawk_toml = NamedTempFile::new().expect("generate tempFile");
|
152
152
|
let file = r"
|
153
153
|
assume_in_transaction = false
|
@@ -157,7 +157,7 @@ assume_in_transaction = false
|
|
157
157
|
assert_debug_snapshot!(Config::parse(Some(squawk_toml.path().to_path_buf())));
|
158
158
|
}
|
159
159
|
#[test]
|
160
|
-
fn
|
160
|
+
fn load_fail_on_violations() {
|
161
161
|
let squawk_toml = NamedTempFile::new().expect("generate tempFile");
|
162
162
|
let file = r"
|
163
163
|
[upload_to_github]
|
@@ -386,13 +386,18 @@ pub fn pretty_violations(
|
|
386
386
|
#[allow(clippy::cast_sign_loss)]
|
387
387
|
let start = start as usize;
|
388
388
|
|
389
|
-
#[allow(clippy::cast_sign_loss)]
|
390
|
-
let len = len.unwrap_or(0) as usize;
|
391
|
-
|
392
389
|
// 1-indexed
|
393
|
-
|
394
|
-
|
395
|
-
|
390
|
+
// remove the leading whitespace on last line
|
391
|
+
let lineno = sql[..start].trim_end().lines().count() + 1;
|
392
|
+
|
393
|
+
let content = if let Some(len) = len {
|
394
|
+
#[allow(clippy::cast_sign_loss)]
|
395
|
+
&sql[start..=start + len as usize]
|
396
|
+
} else {
|
397
|
+
// Use current line
|
398
|
+
let tail = sql[start..].find('\n').unwrap_or(sql.len() - start);
|
399
|
+
&sql[start..=start + tail]
|
400
|
+
};
|
396
401
|
|
397
402
|
// TODO(sbdchd): could remove the leading whitespace and comments to
|
398
403
|
// get cleaner reports
|
@@ -476,10 +481,10 @@ fn get_sql_file_content(violation: &ViolationContent) -> Result<String, std::io:
|
|
476
481
|
|
477
482
|
let violation_content = if violation_count > 0 {
|
478
483
|
format!(
|
479
|
-
r
|
484
|
+
r"
|
480
485
|
```
|
481
486
|
{}
|
482
|
-
```"
|
487
|
+
```",
|
483
488
|
violations_text.trim_matches('\n')
|
484
489
|
)
|
485
490
|
} else {
|
@@ -489,7 +494,7 @@ fn get_sql_file_content(violation: &ViolationContent) -> Result<String, std::io:
|
|
489
494
|
let violations_emoji = get_violations_emoji(violation_count);
|
490
495
|
|
491
496
|
Ok(format!(
|
492
|
-
r
|
497
|
+
r"
|
493
498
|
<h3><code>{filename}</code></h3>
|
494
499
|
|
495
500
|
```sql
|
@@ -501,7 +506,7 @@ fn get_sql_file_content(violation: &ViolationContent) -> Result<String, std::io:
|
|
501
506
|
{violation_content}
|
502
507
|
|
503
508
|
---
|
504
|
-
"
|
509
|
+
",
|
505
510
|
violations_emoji = violations_emoji,
|
506
511
|
filename = violation.filename,
|
507
512
|
sql = sql,
|
@@ -516,7 +521,7 @@ pub fn get_comment_body(files: &[ViolationContent], version: &str) -> String {
|
|
516
521
|
let violations_emoji = get_violations_emoji(violations_count);
|
517
522
|
|
518
523
|
format!(
|
519
|
-
r
|
524
|
+
r"
|
520
525
|
# Squawk Report
|
521
526
|
|
522
527
|
### **{violations_emoji} {violation_count}** violations across **{file_count}** file(s)
|
@@ -527,7 +532,7 @@ pub fn get_comment_body(files: &[ViolationContent], version: &str) -> String {
|
|
527
532
|
[📚 More info on rules](https://github.com/sbdchd/squawk#rules)
|
528
533
|
|
529
534
|
⚡️ Powered by [`Squawk`](https://github.com/sbdchd/squawk) ({version}), a linter for PostgreSQL, focused on migrations
|
530
|
-
"
|
535
|
+
",
|
531
536
|
violations_emoji = violations_emoji,
|
532
537
|
violation_count = violations_count,
|
533
538
|
file_count = files.len(),
|
@@ -551,7 +556,7 @@ mod test_github_comment {
|
|
551
556
|
/// Most cases, hopefully, will be a single migration for a given PR, but
|
552
557
|
/// let's check the case of multiple migrations
|
553
558
|
#[test]
|
554
|
-
fn
|
559
|
+
fn generating_comment_multiple_files() {
|
555
560
|
let violations = vec![ViolationContent {
|
556
561
|
filename: "alpha.sql".into(),
|
557
562
|
sql: r"
|
@@ -583,7 +588,7 @@ SELECT 1;
|
|
583
588
|
/// Even when we don't have violations we still want to output the SQL for
|
584
589
|
/// easy human reading.
|
585
590
|
#[test]
|
586
|
-
fn
|
591
|
+
fn generating_comment_no_violations() {
|
587
592
|
let violations = vec![
|
588
593
|
ViolationContent {
|
589
594
|
filename: "alpha.sql".into(),
|
@@ -618,7 +623,7 @@ ALTER TABLE "core_recipe" ADD COLUMN "foo" integer DEFAULT 10;
|
|
618
623
|
/// Ideally the logic won't leave a comment when there are no migrations but
|
619
624
|
/// better safe than sorry
|
620
625
|
#[test]
|
621
|
-
fn
|
626
|
+
fn generating_no_violations_no_files() {
|
622
627
|
let violations = vec![];
|
623
628
|
|
624
629
|
let body = get_comment_body(&violations, "0.2.3");
|
@@ -637,7 +642,7 @@ mod test_check_files {
|
|
637
642
|
use super::process_violations;
|
638
643
|
|
639
644
|
#[test]
|
640
|
-
fn
|
645
|
+
fn check_files_invalid_syntax() {
|
641
646
|
let sql = r"
|
642
647
|
select \;
|
643
648
|
";
|
@@ -667,7 +672,7 @@ mod test_reporter {
|
|
667
672
|
}
|
668
673
|
|
669
674
|
#[test]
|
670
|
-
fn
|
675
|
+
fn display_violations_gcc() {
|
671
676
|
let sql = r#"
|
672
677
|
ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL;
|
673
678
|
ALTER TABLE "core_foo" ADD COLUMN "bar" integer NOT NULL;
|
@@ -693,7 +698,7 @@ SELECT 1;
|
|
693
698
|
}
|
694
699
|
|
695
700
|
#[test]
|
696
|
-
fn
|
701
|
+
fn display_violations_tty() {
|
697
702
|
let sql = r#"
|
698
703
|
ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL;
|
699
704
|
ALTER TABLE "core_foo" ADD COLUMN "bar" integer NOT NULL;
|
@@ -714,7 +719,7 @@ SELECT 1;
|
|
714
719
|
assert_display_snapshot!(strip_ansi_codes(&String::from_utf8_lossy(&buff)));
|
715
720
|
}
|
716
721
|
#[test]
|
717
|
-
fn
|
722
|
+
fn display_no_violations_tty() {
|
718
723
|
let mut buff = Vec::new();
|
719
724
|
|
720
725
|
let res = print_violations(
|
@@ -729,7 +734,7 @@ SELECT 1;
|
|
729
734
|
}
|
730
735
|
|
731
736
|
#[test]
|
732
|
-
fn
|
737
|
+
fn display_violations_json() {
|
733
738
|
let sql = r#"
|
734
739
|
ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL;
|
735
740
|
ALTER TABLE "core_foo" ADD COLUMN "bar" integer NOT NULL;
|
@@ -752,7 +757,7 @@ SELECT 1;
|
|
752
757
|
}
|
753
758
|
|
754
759
|
#[test]
|
755
|
-
fn
|
760
|
+
fn span_offsets() {
|
756
761
|
let sql = r#"
|
757
762
|
|
758
763
|
ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL;
|
@@ -768,7 +773,7 @@ SELECT 1;
|
|
768
773
|
/// `pretty_violations` was slicing the SQL improperly, trimming off the first
|
769
774
|
/// letter.
|
770
775
|
#[test]
|
771
|
-
fn
|
776
|
+
fn trimming_sql_newlines() {
|
772
777
|
let sql = r#"ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL;"#;
|
773
778
|
let violations = lint_sql(sql);
|
774
779
|
|
@@ -425,7 +425,7 @@ mod test_rules {
|
|
425
425
|
}
|
426
426
|
/// Ensure we handle both serializing and deserializing `RuleViolationKind`
|
427
427
|
#[test]
|
428
|
-
fn
|
428
|
+
fn parsing_rule_kind() {
|
429
429
|
let rule_names = RULES.iter().map(|r| r.name.clone());
|
430
430
|
for rule in rule_names {
|
431
431
|
let rule_str = rule.to_string();
|
@@ -435,19 +435,19 @@ mod test_rules {
|
|
435
435
|
}
|
436
436
|
/// Ensure rule names don't change
|
437
437
|
#[test]
|
438
|
-
fn
|
438
|
+
fn rule_names_debug_snap() {
|
439
439
|
let rule_names: Vec<String> = RULES.iter().map(|r| r.name.to_string()).collect();
|
440
440
|
assert_debug_snapshot!(rule_names);
|
441
441
|
}
|
442
442
|
#[test]
|
443
|
-
fn
|
443
|
+
fn rule_names_display_snap() {
|
444
444
|
let rule_names: Vec<String> = RULES.iter().map(|r| r.name.to_string()).collect();
|
445
445
|
assert_display_snapshot!(rule_names.join("\n"));
|
446
446
|
}
|
447
447
|
|
448
448
|
/// Ensure we stort the resulting violations by where they occur in the file.
|
449
449
|
#[test]
|
450
|
-
fn
|
450
|
+
fn check_rules_orderin() {
|
451
451
|
let sql = r#"
|
452
452
|
ALTER TABLE "table_name" RENAME COLUMN "column_name" TO "new_column_name";
|
453
453
|
CREATE INDEX "field_name_idx" ON "table_name" ("field_name");
|