From 95b670587f3269485d0b132e3783a35c4586393c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 17:26:04 +0000 Subject: [PATCH] chore(deps): update module github.com/google/go-github/v67 to v69 --- go.mod | 5 +- go.sum | 1 + .../DataDog/go-sqllexer/testdata/README.md | 54 ------------------ .../extremely-complex-poorly-written-sql.json | 16 ------ .../testdata/mssql/complex/indexed-views.json | 17 ------ .../complex/partitioned-tables-indexes.json | 16 ------ .../super-complex-poorly-written-sql.json | 16 ------ .../mssql/delete/conditional-delete-case.json | 16 ------ .../testdata/mssql/delete/delete-basic.json | 16 ------ .../testdata/mssql/delete/delete-cascade.json | 16 ------ .../mssql/delete/delete-rowlock-hint.json | 16 ------ .../mssql/delete/delete-using-subquery.json | 16 ------ .../delete/delete-using-table-variable.json | 16 ------ .../mssql/delete/delete-with-cte.json | 16 ------ .../mssql/delete/delete-with-join.json | 16 ------ .../mssql/delete/delete-with-output.json | 16 ------ .../mssql/delete/delete-with-top.json | 16 ------ .../testdata/mssql/insert/insert-basic.json | 16 ------ .../mssql/insert/insert-default-values.json | 16 ------ .../mssql/insert/insert-identity-insert.json | 16 ------ .../testdata/mssql/insert/insert-merge.json | 16 ------ .../testdata/mssql/insert/insert-output.json | 16 ------ .../mssql/insert/insert-select-into.json | 16 ------ .../mssql/insert/insert-subquery-values.json | 16 ------ .../mssql/insert/insert-top-orderby.json | 16 ------ .../insert/insert-values-multiple-rows.json | 16 ------ .../mssql/insert/insert-with-select.json | 16 ------ .../insert/using-throw-error-handling.json | 16 ------ ...-stored-procedure-multiple-operations.json | 27 --------- ...-stored-procedure-multiple-statements.json | 27 --------- ...edure-comprehensive-logic-explanation.json | 27 --------- .../stored-procedure-conditional-logic.json | 27 --------- .../stored-procedure-cursor-temp-table.json | 27 --------- ...ored-procedure-detailed-documentation.json | 27 --------- ...-procedure-dynamic-sql-error-handling.json | 27 --------- ...tored-procedure-dynamic-sql-execution.json | 27 --------- .../stored-procedure-executing-another.json | 27 --------- ...red-procedure-temp-tables-transaction.json | 27 --------- .../stored-procedure-try-catch-error.json | 27 --------- .../stored-procedure-version-control.json | 27 --------- ...cedure-with-params-and-execution.json.json | 26 --------- .../testdata/mssql/select/basic-select.json | 16 ------ .../select/data-compression-features.json | 16 ------ .../mssql/select/filetable-storage.json | 16 ------ .../select/pivot-unpivot-operations.json | 16 ------ .../testdata/mssql/select/select-choose.json | 16 ------ .../testdata/mssql/select/select-format.json | 16 ------ .../mssql/select/select-full-outer-join.json | 16 ------ .../mssql/select/select-identity.json | 16 ------ .../testdata/mssql/select/select-iif.json | 16 ------ .../mssql/select/select-join-aggregation.json | 16 ------ .../mssql/select/select-system-user.json | 16 ------ .../mssql/select/select-using-pivot.json | 16 ------ .../select/select-using-try-convert.json | 16 ------ .../mssql/select/select-with-cte.json | 24 -------- .../select/select-with-offset-fetch.json | 16 ------ .../mssql/select/select-with-string-agg.json | 16 ------ .../select/select-with-table-sample.json | 16 ------ .../select/select-with-window-function.json | 24 -------- .../testdata/mssql/select/service-broker.json | 16 ------ .../select/spatial-data-types-functions.json | 16 ------ .../mssql/select/xml-data-types-queries.json | 16 ------ .../mssql/update/conditional-update-case.json | 16 ------ .../testdata/mssql/update/update-basic.json | 16 ------ .../mssql/update/update-complex-where.json | 16 ------ .../mssql/update/update-from-aliases.json | 16 ------ .../mssql/update/update-join-top.json | 16 ------ .../mssql/update/update-rowlock-hint.json | 16 ------ .../update-using-quoted-identifiers.json | 16 ------ .../mssql/update/update-using-top.json | 16 ------ .../update-using-variable-store-value.json | 16 ------ .../update/update-with-boolean-logic.json | 16 ------ .../mssql/update/update-with-case.json | 16 ------ .../mssql/update/update-with-cte.json | 16 ------ .../update/update-with-date-manipulation.json | 16 ------ .../mssql/update/update-with-join.json | 16 ------ .../update/update-with-named-variables.json | 16 ------ .../update/update-with-null-handling.json | 16 ------ .../update-with-numeric-calculation.json | 16 ------ .../mssql/update/update-with-output.json | 16 ------ .../update-with-string-concatenation.json | 16 ------ .../mssql/update/update-with-subquery.json | 16 ------ .../super-complex-poorly-written-sql.json | 16 ------ .../super-complex-sql-multiple-joins.json | 16 ------ .../super-complex-sql-nested-subqueries.json | 15 ----- .../testdata/mysql/delete/delete-basic.json | 16 ------ .../testdata/mysql/delete/delete-cascade.json | 16 ------ .../delete/delete-cascading-triggers.json | 16 ------ .../delete/delete-conditional-logic.json | 16 ------ .../delete-foreign-key-constraints.json | 16 ------ .../mysql/delete/delete-free-disk-space.json | 16 ------ .../delete-join-multiple-conditions.json | 16 ------ .../mysql/delete/delete-lock-tables.json | 16 ------ .../mysql/delete/delete-multiple-tables.json | 16 ------ .../delete/delete-optimized-conditions.json | 16 ------ .../mysql/delete/delete-order-by-limit.json | 16 ------ .../mysql/delete/delete-range-conditions.json | 16 ------ .../delete/delete-regular-expressions.json | 16 ------ .../mysql/delete/delete-safe-update-mode.json | 16 ------ .../delete/delete-subquery-optimization.json | 16 ------ .../mysql/delete/delete-truncate.json | 16 ------ .../mysql/delete/delete-using-subquery.json | 16 ------ .../mysql/delete/delete-with-join.json | 16 ------ .../mysql/delete/delete-with-limit.json | 16 ------ .../delete/delete-with-user-variables.json | 16 ------ .../insert/batch-insert-multiple-rows.json | 16 ------ .../mysql/insert/insert-auto-increment.json | 16 ------ .../testdata/mysql/insert/insert-basic.json | 16 ------ .../mysql/insert/insert-blob-data.json | 16 ------ .../mysql/insert/insert-enum-data.json | 16 ------ .../testdata/mysql/insert/insert-ignore.json | 16 ------ .../mysql/insert/insert-json-data.json | 16 ------ .../mysql/insert/insert-on-duplicate-key.json | 16 ------ .../mysql/insert/insert-select-union.json | 16 ------ .../mysql/insert/insert-spatial-data.json | 16 ------ .../insert/insert-using-last-insert-id.json | 16 ------ .../mysql/insert/insert-using-subquery.json | 16 ------ .../insert/insert-with-conditional-logic.json | 16 ------ .../insert/insert-with-curdate-curtime.json | 16 ------ .../insert-with-encryption-functions.json | 16 ------ .../insert/insert-with-generated-columns.json | 15 ----- .../mysql/insert/insert-with-replace.json | 16 ------ .../mysql/insert/insert-with-set-syntax.json | 16 ------ .../insert/insert-with-spatial-data.json | 16 ------ .../mysql/insert/insert-with-timestamp.json | 16 ------ .../complex-procedure-error-handling.json | 16 ------ .../procedure/stored-procedure-basic.json | 15 ----- ...ored-procedure-conditional-logic-loop.json | 15 ----- .../procedure/stored-procedure-cursor.json | 16 ------ .../stored-procedure-dynamic-sql.json | 16 ------ .../stored-procedure-error-handling.json | 16 ------ ...red-procedure-input-output-parameters.json | 16 ------ .../stored-procedure-loop-control.json | 15 ----- .../stored-procedure-parameters.json | 15 ----- ...ored-procedure-transaction-management.json | 15 ----- .../testdata/mysql/select/bit-data-type.json | 16 ------ .../mysql/select/blob-text-data-types.json | 16 ------ .../mysql/select/decimal-data-type.json | 16 ------ .../mysql/select/enum-set-data-types.json | 16 ------ .../mysql/select/full-text-search-innodb.json | 16 ------ .../select/select-aggregate-functions.json | 16 ------ .../testdata/mysql/select/select-basic.json | 16 ------ .../mysql/select/select-case-statement.json | 16 ------ .../select/select-coalesce-function.json | 16 ------ .../mysql/select/select-conditional-case.json | 16 ------ .../mysql/select/select-date-functions.json | 16 ------ .../mysql/select/select-distinct.json | 16 ------ .../mysql/select/select-full-text-search.json | 16 ------ .../mysql/select/select-geospatial-data.json | 16 ------ .../mysql/select/select-group-concat.json | 16 ------ .../mysql/select/select-join-aliases.json | 16 ------ .../testdata/mysql/select/select-join.json | 16 ------ .../mysql/select/select-json-functions.json | 16 ------ .../mysql/select/select-limit-offset.json | 16 ------ .../select/select-lock-in-share-mode.json | 16 ------ .../mysql/select/select-natural-join.json | 16 ------ .../select/select-parameter-binding.json | 16 ------ .../testdata/mysql/select/select-regex.json | 16 ------ .../mysql/select/select-straight-join.json | 16 ------ .../mysql/select/select-string-functions.json | 16 ------ .../mysql/select/select-subquery.json | 16 ------ .../select/select-user-defined-variables.json | 16 ------ .../select/select-variable-assignment.json | 16 ------ .../mysql/select/select-window-functions.json | 16 ------ .../select/spatial-data-types-functions.json | 16 ------ .../select/spatial-geometry-data-types.json | 16 ------ .../mysql/select/system-versioned-tables.json | 16 ------ .../mysql/select/using-temporary-tables.json | 16 ------ .../select/virtual-generated-columns.json | 16 ------ .../bulk-update-multiple-conditions.json | 16 ------ .../mysql/update/conditional-update-case.json | 16 ------ .../testdata/mysql/update/update-basic.json | 15 ----- .../update-case-aggregate-functions.json | 16 ------ .../update/update-date-time-functions.json | 16 ------ .../update/update-encryption-functions.json | 16 ------ .../mysql/update/update-enum-data.json | 16 ------ .../mysql/update/update-json-functions.json | 16 ------ .../mysql/update/update-json-modify.json | 16 ------ .../mysql/update/update-lock-tables.json | 16 ------ .../mysql/update/update-math-functions.json | 16 ------ .../update/update-optimizing-conditions.json | 16 ------ .../mysql/update/update-order-by-limit.json | 16 ------ .../update/update-regular-expressions.json | 16 ------ .../mysql/update/update-spatial-data.json | 16 ------ .../mysql/update/update-string-functions.json | 16 ------ .../update/update-user-defined-variables.json | 16 ------ .../mysql/update/update-using-variables.json | 16 ------ .../mysql/update/update-with-join.json | 16 ------ .../mysql/update/update-with-subquery.json | 16 ------ .../oracle/complex/bulk-operations.json | 27 --------- .../complex/complex-multi-table-delete.json | 16 ------ .../complex/complex-nested-subqueries.json | 16 ------ .../complex-select-aggregates-joins.json | 23 -------- .../extremely-complex-oracle-query.json | 16 ------ .../extremely-complex-stored-procedure.json | 16 ------ .../testdata/oracle/complex/plsql-blocks.json | 16 ------ .../complex/super-complex-oracle-query.json | 16 ------ .../delete/conditional-delete-with-case.json | 16 ------ .../testdata/oracle/delete/delete-basic.json | 16 ------ .../oracle/delete/delete-cascade.json | 16 ------ .../oracle/delete/delete-using-rowid.json | 16 ------ .../delete/delete-where-current-of.json | 16 ------ .../delete-with-complex-subqueries.json | 16 ------ .../delete/delete-with-flashback-query.json | 16 ------ .../delete/delete-with-join-syntax.json | 16 ------ .../delete/delete-with-pseudocolumns.json | 16 ------ .../delete/delete-with-returning-clause.json | 16 ------ .../oracle/delete/delete-with-subquery.json | 23 -------- .../insert-all-into-multiple-tables.json | 16 ------ .../insert-all-multiple-conditions.json | 16 ------ .../testdata/oracle/insert/insert-basic.json | 16 ------ .../oracle/insert/insert-using-decode.json | 16 ------ .../insert/insert-with-column-ordering.json | 16 ------ .../insert/insert-with-returning-clause.json | 16 ------ .../insert/insert-with-select-union.json | 16 ------ .../oracle/insert/insert-with-sequence.json | 16 ------ .../oracle/insert/insert-with-subquery.json | 23 -------- .../insert/multitable-insert-conditional.json | 16 ------ .../create-procedure-in-out-params.json | 27 --------- .../create-procedure-with-cursors.json | 27 --------- ...ate-procedure-with-exception-handling.json | 27 --------- .../create-simple-stored-procedure.json | 27 --------- .../procedure/error-handling-exception.json | 27 --------- .../invoke-stored-procedure-with-exec.json | 27 --------- .../procedure/invoke-stored-procedure.json | 27 --------- .../testdata/oracle/procedure/packages.json | 27 --------- .../oracle/procedure/pipelined-functions.json | 27 --------- .../stored-procedures-functions.json | 27 --------- .../testdata/oracle/procedure/triggers.json | 27 --------- .../select/complex-join-operations.json | 16 ------ .../testdata/oracle/select/full-hint.json | 24 -------- .../oracle/select/hierarchical-queries.json | 16 ------ .../testdata/oracle/select/index-hint.json | 24 -------- .../oracle/select/large-objects-lobs.json | 16 ------ .../oracle/select/multiple-hints.json | 24 -------- .../oracle/select/optimizer-mode-hint.json | 24 -------- .../testdata/oracle/select/oracle-text.json | 16 ------ .../quoted-identifiers-case-sensitive.json | 22 ------- ...quoted-identifiers-special-characters.json | 22 ------- .../testdata/oracle/select/recursive-cte.json | 16 ------ .../select/select-basic-conditions.json | 22 ------- .../select/select-hierarchical-query.json | 25 -------- .../select/select-using-oracle-text.json | 23 -------- .../select/select-using-with-clause.json | 23 -------- .../select/select-with-flashback-query.json | 23 -------- .../select/select-with-model-clause.json | 23 -------- .../select-with-multi-line-comments.json | 22 ------- .../select-with-oracle-specific-joins.json | 23 -------- .../select/select-with-partition-by.json | 23 -------- .../select/select-with-pseudocolumns.json | 22 ------- .../select/select-with-rollup-function.json | 23 -------- .../select/select-with-sample-clause.json | 23 -------- .../select-with-single-line-comments.json | 22 ------- .../select/select-with-skip-locked.json | 22 ------- .../testdata/oracle/select/use-nl-hint.json | 24 -------- .../select/window-functions-analytics.json | 16 ------ .../update/conditional-update-with-case.json | 22 ------- .../conditional-update-with-decode.json | 23 -------- .../testdata/oracle/update/dynamic-plsql.json | 16 ------ .../testdata/oracle/update/update-basic.json | 22 ------- .../update/update-oracle-specific-syntax.json | 23 -------- .../update-using-correlated-subquery.json | 23 -------- .../update/update-using-join-syntax.json | 23 -------- .../update-with-correlated-subquery.json | 23 -------- .../oracle/update/update-with-join.json | 22 ------- .../update/update-with-returning-clause.json | 22 ------- .../update/update-with-subquery-in-set.json | 23 -------- .../oracle/update/update-with-subquery.json | 23 -------- .../delete-complex-subqueries-joins.json | 19 ------ .../complex/insert-complex-select-joins.json | 24 -------- .../select-complex-aggregates-subqueries.json | 23 -------- ...select-complex-joins-window-functions.json | 21 ------- ...t-nested-subqueries-aggregates-limits.json | 19 ------ .../update-complex-subquery-conditional.json | 21 ------- .../postgresql/delete/delete-all-rows.json | 19 ------ .../postgresql/delete/delete-returning.json | 19 ------ .../postgresql/delete/delete-simple.json | 19 ------ .../postgresql/delete/delete-using-join.json | 19 ------ .../postgresql/delete/delete-with-cte.json | 21 ------- .../delete/delete-with-subquery.json | 21 ------- .../create-function-that-raises-notice.json | 14 ----- .../create-function-with-dynamic-query.json | 14 ----- .../create-function-with-parameters.json | 14 ----- .../create-function-with-table-return.json | 14 ----- .../create-simple-plpgsql-function.json | 14 ----- ...invoke-function-positional-parameters.json | 17 ------ .../invoke-function-returning-table.json | 8 --- .../invoke-function-that-raises-notice.json | 8 --- .../invoke-function-with-dynamic-query.json | 8 --- .../invoke-function-with-parameter.json | 8 --- .../function/invoke-simple-function.json | 8 --- .../postgresql/insert/insert-array-data.json | 25 -------- .../postgresql/insert/insert-json-data.json | 19 ------ .../insert/insert-multiple-rows.json | 19 ------ .../insert/insert-positional-parameters.json | 14 ----- ...insert-returning-positional-parameter.json | 14 ----- .../postgresql/insert/insert-simple-row.json | 19 ------ .../insert-with-conflict-do-nothing.json | 19 ------ .../insert/insert-with-conflict-update.json | 20 ------- .../insert/insert-with-default.json | 19 ------ .../insert/insert-with-enum-type.json | 19 ------ .../insert/insert-with-geometric-data.json | 19 ------ .../insert/insert-with-hstore-data.json | 19 ------ .../insert/insert-with-range-data.json | 19 ------ .../insert/insert-with-returning.json | 19 ------ .../postgresql/insert/insert-with-select.json | 21 ------- .../insert-with-subquery-and-alias.json | 21 ------- .../select/aggregate-functions-count.json | 25 -------- .../select/basic_select_with_alias.json | 31 ---------- .../postgresql/select/case-statements.json | 19 ------ .../select/common-table-expressions-cte.json | 21 ------- .../postgresql/select/cross-joins.json | 21 ------- .../select/distinct-on-expressions.json | 19 ------ .../postgresql/select/fetch-first-clause.json | 19 ------ .../postgresql/select/for-update-of.json | 20 ------- .../postgresql/select/full-outer-joins.json | 21 ------- .../postgresql/select/group-by-having.json | 25 -------- .../postgresql/select/json-field-access.json | 19 ------ .../select/jsonb-array-elements-text.json | 25 -------- .../postgresql/select/jsonb-array-length.json | 25 -------- .../select/jsonb-contained-in-path.json | 19 ------ .../postgresql/select/jsonb-contains-key.json | 19 ------ .../jsonb-contains-object-at-top-level.json | 19 ------ .../select/jsonb-delete-array-element.json | 19 ------ .../postgresql/select/jsonb-delete-key.json | 19 ------ .../postgresql/select/jsonb-delete-path.json | 28 --------- .../select/jsonb-extract-path-text.json | 25 -------- .../postgresql/select/jsonb-extract-path.json | 25 -------- .../postgresql/select/jsonb-pretty-print.json | 25 -------- .../select/jsonb-set-new-value.json | 25 -------- .../postgresql/select/lateral-joins.json | 26 --------- .../postgresql/select/limit-and-offset.json | 19 ------ .../postgresql/select/natural-joins.json | 21 ------- .../quoted-identifiers-case-sensitive.json | 21 ------- ...quoted-identifiers-special-characters.json | 21 ------- ...elect-in-clause-positional-parameters.json | 14 ----- ...iple-conditions-positional-parameters.json | 14 ----- .../select-with-positional-parameter.json | 14 ----- .../postgresql/select/self-joins.json | 19 ------ .../postgresql/select/subquery-in-from.json | 25 -------- .../postgresql/select/subquery-in-select.json | 20 ------- .../postgresql/select/subquery-in-where.json | 20 ------- .../select/tablesample-bernoulli.json | 19 ------ .../update/update-array-append.json | 19 ------ .../update/update-increment-numeric.json | 19 ------ .../postgresql/update/update-json-data.json | 25 -------- ...multiple-fields-positional-parameters.json | 15 ----- .../update/update-positional-parameters.json | 14 ----- .../postgresql/update/update-returning.json | 25 -------- .../update/update-set-multiple-columns.json | 19 ------ .../update/update-set-single-column.json | 19 ------ .../postgresql/update/update-using-join.json | 20 ------- .../postgresql/update/update-with-case.json | 19 ------ .../postgresql/update/update-with-cte.json | 21 ------- .../update/update-with-subquery.json | 26 --------- .../snowflake/test-cases/data-clone.json | 21 ------- .../snowflake/test-cases/external-data.json | 19 ------ .../snowflake/test-cases/listagg.json | 19 ------ .../test-cases/materialized-view.json | 20 ------- .../semi-structured-data-types.json | 19 ------ .../testdata/snowflake/test-cases/stream.json | 19 ------ .../testdata/snowflake/test-cases/task.json | 22 ------- .../snowflake/test-cases/time-travel.json | 19 ------ .../test-cases/warehouse-controls.json | 18 ------ .../testdata/client_intermediate_cert.der | Bin 998 -> 0 bytes .../testdata/client_leaf_cert.der | Bin 1147 -> 0 bytes .../testdata/client_root_cert.der | Bin 1013 -> 0 bytes .../testdata/server_intermediate_cert.der | Bin 998 -> 0 bytes .../testdata/server_leaf_cert.der | Bin 1147 -> 0 bytes .../testdata/server_root_cert.der | Bin 1013 -> 0 bytes .../v2/remotesigner/testdata/client_cert.der | Bin 1013 -> 0 bytes .../v2/remotesigner/testdata/client_cert.pem | 24 -------- .../v2/remotesigner/testdata/client_key.pem | 27 --------- .../v2/remotesigner/testdata/server_cert.der | Bin 1013 -> 0 bytes .../v2/remotesigner/testdata/server_cert.pem | 24 -------- .../v2/remotesigner/testdata/server_key.pem | 27 --------- .../internal/v2/testdata/client_cert.pem | 24 -------- .../internal/v2/testdata/client_key.pem | 27 --------- .../internal/v2/testdata/server_cert.pem | 24 -------- .../internal/v2/testdata/server_key.pem | 27 --------- .../tlsconfigstore/testdata/client_cert.pem | 24 -------- .../v2/tlsconfigstore/testdata/client_key.pem | 27 --------- .../tlsconfigstore/testdata/server_cert.pem | 24 -------- .../v2/tlsconfigstore/testdata/server_key.pem | 27 --------- .../google/s2a-go/testdata/client_cert.pem | 24 -------- .../google/s2a-go/testdata/client_key.pem | 27 --------- .../s2a-go/testdata/mds_client_cert.pem | 19 ------ .../google/s2a-go/testdata/mds_client_key.pem | 28 --------- .../google/s2a-go/testdata/mds_root_cert.pem | 21 ------- .../s2a-go/testdata/mds_server_cert.pem | 21 ------- .../google/s2a-go/testdata/mds_server_key.pem | 28 --------- .../s2a-go/testdata/self_signed_cert.pem | 19 ------ .../s2a-go/testdata/self_signed_key.pem | 28 --------- .../google/s2a-go/testdata/server_cert.pem | 24 -------- .../google/s2a-go/testdata/server_key.pem | 27 --------- vendor/modules.txt | 2 + 396 files changed, 7 insertions(+), 7251 deletions(-) delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/README.md delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/extremely-complex-poorly-written-sql.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/indexed-views.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/partitioned-tables-indexes.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/super-complex-poorly-written-sql.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/conditional-delete-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-cascade.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-rowlock-hint.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-table-variable.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-cte.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-output.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-top.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-default-values.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-identity-insert.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-merge.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-output.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-select-into.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-subquery-values.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-top-orderby.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-values-multiple-rows.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-with-select.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/using-throw-error-handling.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-operations.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-statements.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-comprehensive-logic-explanation.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-conditional-logic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-cursor-temp-table.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-detailed-documentation.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-error-handling.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-execution.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-executing-another.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-temp-tables-transaction.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-try-catch-error.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-version-control.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-with-params-and-execution.json.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/basic-select.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/data-compression-features.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/filetable-storage.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/pivot-unpivot-operations.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-choose.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-format.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-full-outer-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-identity.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-iif.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-join-aggregation.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-system-user.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-pivot.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-try-convert.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-cte.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-offset-fetch.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-string-agg.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-table-sample.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-window-function.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/service-broker.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/spatial-data-types-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/xml-data-types-queries.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/conditional-update-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-complex-where.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-from-aliases.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-join-top.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-rowlock-hint.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-quoted-identifiers.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-top.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-variable-store-value.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-boolean-logic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-cte.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-date-manipulation.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-named-variables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-null-handling.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-numeric-calculation.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-output.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-string-concatenation.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-poorly-written-sql.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-multiple-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-nested-subqueries.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascade.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascading-triggers.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-conditional-logic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-foreign-key-constraints.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-free-disk-space.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-join-multiple-conditions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-lock-tables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-multiple-tables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-optimized-conditions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-order-by-limit.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-range-conditions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-regular-expressions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-safe-update-mode.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-subquery-optimization.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-truncate.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-using-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-limit.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-user-variables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/batch-insert-multiple-rows.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-auto-increment.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-blob-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-enum-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-ignore.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-json-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-on-duplicate-key.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-select-union.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-spatial-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-last-insert-id.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-conditional-logic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-curdate-curtime.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-encryption-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-generated-columns.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-replace.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-set-syntax.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-spatial-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-timestamp.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/complex-procedure-error-handling.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-conditional-logic-loop.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-cursor.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-dynamic-sql.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-error-handling.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-input-output-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-loop-control.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-transaction-management.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/bit-data-type.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/blob-text-data-types.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/decimal-data-type.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/enum-set-data-types.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/full-text-search-innodb.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-aggregate-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-case-statement.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-coalesce-function.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-conditional-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-date-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-distinct.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-full-text-search.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-geospatial-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-group-concat.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join-aliases.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-json-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-limit-offset.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-lock-in-share-mode.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-natural-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-parameter-binding.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-regex.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-straight-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-string-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-user-defined-variables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-variable-assignment.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-window-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-data-types-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-geometry-data-types.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/system-versioned-tables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/using-temporary-tables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/virtual-generated-columns.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/bulk-update-multiple-conditions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/conditional-update-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-case-aggregate-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-date-time-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-encryption-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-enum-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-modify.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-lock-tables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-math-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-optimizing-conditions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-order-by-limit.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-regular-expressions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-spatial-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-string-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-user-defined-variables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-using-variables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/bulk-operations.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-multi-table-delete.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-nested-subqueries.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-select-aggregates-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-oracle-query.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-stored-procedure.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/plsql-blocks.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/super-complex-oracle-query.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/conditional-delete-with-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-cascade.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-using-rowid.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-where-current-of.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-complex-subqueries.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-flashback-query.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-join-syntax.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-pseudocolumns.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-returning-clause.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-into-multiple-tables.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-multiple-conditions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-using-decode.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-column-ordering.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-returning-clause.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-select-union.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-sequence.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/multitable-insert-conditional.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-in-out-params.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-cursors.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-exception-handling.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-simple-stored-procedure.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/error-handling-exception.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure-with-exec.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/packages.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/pipelined-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/stored-procedures-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/triggers.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/complex-join-operations.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/full-hint.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/hierarchical-queries.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/index-hint.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/large-objects-lobs.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/multiple-hints.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/optimizer-mode-hint.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/oracle-text.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-case-sensitive.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-special-characters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/recursive-cte.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-basic-conditions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-hierarchical-query.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-oracle-text.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-with-clause.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-flashback-query.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-model-clause.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-multi-line-comments.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-oracle-specific-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-partition-by.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-pseudocolumns.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-rollup-function.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-sample-clause.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-single-line-comments.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-skip-locked.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/use-nl-hint.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/window-functions-analytics.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-decode.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/dynamic-plsql.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-basic.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-oracle-specific-syntax.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-correlated-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-join-syntax.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-correlated-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-returning-clause.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery-in-set.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/delete-complex-subqueries-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/insert-complex-select-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-aggregates-subqueries.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-joins-window-functions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-nested-subqueries-aggregates-limits.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/update-complex-subquery-conditional.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-all-rows.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-returning.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-simple.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-using-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-cte.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-that-raises-notice.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-dynamic-query.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-table-return.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-simple-plpgsql-function.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-positional-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-returning-table.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-that-raises-notice.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-dynamic-query.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-parameter.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-simple-function.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-array-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-json-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-multiple-rows.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-positional-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-returning-positional-parameter.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-simple-row.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-do-nothing.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-update.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-default.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-enum-type.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-geometric-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-hstore-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-range-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-returning.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-select.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-subquery-and-alias.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/aggregate-functions-count.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/basic_select_with_alias.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/case-statements.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/common-table-expressions-cte.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/cross-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/distinct-on-expressions.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/fetch-first-clause.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/for-update-of.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/full-outer-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/group-by-having.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/json-field-access.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-elements-text.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-length.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contained-in-path.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-key.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-object-at-top-level.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-array-element.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-key.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-path.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path-text.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-pretty-print.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-set-new-value.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/lateral-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/limit-and-offset.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/natural-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-case-sensitive.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-special-characters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-in-clause-positional-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-multiple-conditions-positional-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-with-positional-parameter.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/self-joins.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-from.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-select.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-where.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/tablesample-bernoulli.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-array-append.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-increment-numeric.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-json-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-multiple-fields-positional-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-positional-parameters.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-returning.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-multiple-columns.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-single-column.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-using-join.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-case.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-cte.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-subquery.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/data-clone.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/external-data.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/listagg.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/materialized-view.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/semi-structured-data-types.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/stream.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/task.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/time-travel.json delete mode 100644 vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/warehouse-controls.json delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_intermediate_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_leaf_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_root_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_intermediate_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_leaf_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_root_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.der delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/testdata/server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/internal/v2/tlsconfigstore/testdata/server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_client_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_client_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_root_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/mds_server_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/self_signed_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/self_signed_key.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/server_cert.pem delete mode 100644 vendor/github.com/google/s2a-go/testdata/server_key.pem diff --git a/go.mod b/go.mod index 1a0173eb..f660fd82 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/bitrise-io/bitrise-webhooks -go 1.21 +go 1.22.0 + +toolchain go1.24.0 require ( cloud.google.com/go/pubsub v1.42.0 @@ -8,6 +10,7 @@ require ( github.com/bitrise-io/envman v0.0.0-20240730123632-8066eeb61599 github.com/go-playground/webhooks/v6 v6.4.0 github.com/google/go-github/v67 v67.0.0 + github.com/google/go-github/v69 v69.0.0 github.com/gorilla/mux v1.8.1 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.9.0 diff --git a/go.sum b/go.sum index 7b4ebc82..aad33e39 100644 --- a/go.sum +++ b/go.sum @@ -120,6 +120,7 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github/v67 v67.0.0 h1:g11NDAmfaBaCO8qYdI9fsmbaRipHNWRIU/2YGvlh4rg= github.com/google/go-github/v67 v67.0.0/go.mod h1:zH3K7BxjFndr9QSeFibx4lTKkYS3K9nDanoI1NjaOtY= +github.com/google/go-github/v69 v69.0.0/go.mod h1:xne4jymxLR6Uj9b7J7PyTpkMYstEMMwGZa0Aehh1azM= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/README.md b/vendor/github.com/DataDog/go-sqllexer/testdata/README.md deleted file mode 100644 index 1237e812..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# Test Suite - -The test suite is a collection of test SQL statements that are organized per DBMS. The test suite is used to test the SQL obfuscator and normalizer for correctness and completeness. It is also intended to cover DBMS specific edge cases, that are not covered by the generic unit tests. - -## Test Suite Structure - -The test suite is organized in the following way: - -```text -testdata -├── README.md -├── dbms1 -│   ├── query_type1 -│   │   ├── test1.json -│   └── query_type2 -│   ├── test1.json -dbms_test.go -``` - -The test suite is organized per DBMS. Each DBMS has a number of query types. Each query type has a number of test cases. Each test case consists of a SQL statement and the expected output of the obfuscator/normalizer. - -## Test File Format - -The test files are simple json files where each test case comes with one input SQL statements and an array of expected outputs. -Each expected output can optionally come with a configuration for the obfuscator and normalizer. The configuration is optional, because the default configuration is used if no configuration is provided. - -testcase.json: - -```json -{ - "input": "SELECT * FROM table1", - "outputs": [ - { - // Test case 1 - "expected": "SELECT * FROM table1", - "obfuscator_config": {...}, // optional - "normalizer_config": {...} // optional - }, - { - // Test case 2 - "expected": "SELECT * FROM table1", - "obfuscator_config": {...}, // optional - "normalizer_config": {...} // optional - } - ] -} -``` - -## How to write a new test case - -1. Create a new directory for the DBMS, if it does not exist yet. (this step is often not necessary) -2. Create a new directory for the query type, if it does not exist yet. -3. Create a new test case `.json` file with the SQL statement and expected output. Refer to the [test file format](#test-file-format) or `testcase struct` in [dbms_test.go](../dbms_test.go) for more details. -4. Run the test suite to verify that the test case is working as expected. diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/extremely-complex-poorly-written-sql.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/extremely-complex-poorly-written-sql.json deleted file mode 100644 index a8442bdb..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/extremely-complex-poorly-written-sql.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "WITH ComplexCTE AS (SELECT t1.id, t2.amount, ROW_NUMBER() OVER(PARTITION BY t1.customer_id ORDER BY t2.amount DESC) AS rn FROM (SELECT id, customer_id, status FROM orders WHERE YEAR(order_date) = YEAR(GETDATE()) AND status NOT IN ('Cancelled', 'Returned')) t1 INNER JOIN (SELECT order_id, SUM(amount) AS amount FROM order_details GROUP BY order_id) t2 ON t1.id = t2.order_id WHERE t2.amount > 500), SecondCTE AS (SELECT c1.*, c2.name, c2.region FROM ComplexCTE c1 INNER JOIN customers c2 ON c1.customer_id = c2.id WHERE c2.region IN ('East', 'West') AND c1.rn < 5) SELECT s.id, s.name, s.amount, p.product_name, CASE WHEN s.amount > 1000 THEN 'High' ELSE 'Low' END AS ValueCategory FROM SecondCTE s LEFT JOIN (SELECT DISTINCT p1.order_id, p2.product_name FROM order_products p1 INNER JOIN products p2 ON p1.product_id = p2.id) p ON s.id = p.order_id WHERE s.region = 'East' AND s.status LIKE '%Active%' ORDER BY s.amount DESC, s.name;", - "outputs": [ - { - "expected": "WITH ComplexCTE AS ( SELECT t?.id, t?.amount, ROW_NUMBER ( ) OVER ( PARTITION BY t?.customer_id ORDER BY t?.amount DESC ) FROM ( SELECT id, customer_id, status FROM orders WHERE YEAR ( order_date ) = YEAR ( GETDATE ( ) ) AND status NOT IN ( ? ) ) t? INNER JOIN ( SELECT order_id, SUM ( amount ) FROM order_details GROUP BY order_id ) t? ON t?.id = t?.order_id WHERE t?.amount > ? ), SecondCTE AS ( SELECT c?. *, c?.name, c?.region FROM ComplexCTE c? INNER JOIN customers c? ON c?.customer_id = c?.id WHERE c?.region IN ( ? ) AND c?.rn < ? ) SELECT s.id, s.name, s.amount, p.product_name, CASE WHEN s.amount > ? THEN ? ELSE ? END FROM SecondCTE s LEFT JOIN ( SELECT DISTINCT p?.order_id, p?.product_name FROM order_products p? INNER JOIN products p? ON p?.product_id = p?.id ) p ON s.id = p.order_id WHERE s.region = ? AND s.status LIKE ? ORDER BY s.amount DESC, s.name", - "statement_metadata": { - "size": 79, - "tables": ["orders", "order_details", "ComplexCTE", "customers", "SecondCTE", "order_products", "products"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/indexed-views.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/indexed-views.json deleted file mode 100644 index 5d78886d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/indexed-views.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "input": "CREATE VIEW dbo.OrderSummary WITH SCHEMABINDING AS SELECT customer_id, COUNT_BIG(*) AS TotalOrders, SUM(amount) AS TotalAmount FROM dbo.orders GROUP BY customer_id; CREATE UNIQUE CLUSTERED INDEX IDX_V1 ON dbo.OrderSummary(customer_id);", - "outputs": [ - { - "expected": "CREATE VIEW dbo.OrderSummary WITH SCHEMABINDING AS SELECT customer_id, COUNT_BIG ( * ), SUM ( amount ) FROM dbo.orders GROUP BY customer_id; CREATE UNIQUE CLUSTERED INDEX IDX_V? ON dbo.OrderSummary ( customer_id )", - "statement_metadata": { - "size": 22, - "tables": ["dbo.orders"], - "commands": ["CREATE", "SELECT"], - "comments": [], - "procedures": [], - "views": ["dbo.OrderSummary"] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/partitioned-tables-indexes.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/partitioned-tables-indexes.json deleted file mode 100644 index c06612ec..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/partitioned-tables-indexes.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE PARTITION FUNCTION myRangePF1 (INT) AS RANGE LEFT FOR VALUES (1, 100, 1000); CREATE PARTITION SCHEME myScheme AS PARTITION myRangePF1 TO ([PRIMARY], [SECONDARY], [TERTIARY]); CREATE TABLE partitionedTable (id INT) ON myScheme(id);", - "outputs": [ - { - "expected": "CREATE PARTITION FUNCTION myRangePF? ( INT ) LEFT FOR VALUES ( ? ); CREATE PARTITION SCHEME myScheme myRangePF? TO ( PRIMARY, SECONDARY, TERTIARY ); CREATE TABLE partitionedTable ( id INT ) ON myScheme ( id )", - "statement_metadata": { - "size": 22, - "tables": ["partitionedTable"], - "commands": ["CREATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/super-complex-poorly-written-sql.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/super-complex-poorly-written-sql.json deleted file mode 100644 index 41bd0e0e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/complex/super-complex-poorly-written-sql.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT a.*, b.totalAmount, CASE WHEN c.id IS NOT NULL THEN d.description ELSE 'N/A' END AS description FROM (SELECT id, name, status, customer_id FROM orders WHERE order_date > DATEADD(month, -6, GETDATE()) AND status IN ('Pending', 'Completed') AND customer_id IN (SELECT customer_id FROM customers WHERE region IN ('East', 'West') AND last_order_date > DATEADD(year, -1, GETDATE())) ORDER BY name DESC) a INNER JOIN (SELECT order_id, SUM(amount) AS totalAmount FROM order_details GROUP BY order_id) b ON a.id = b.order_id LEFT JOIN audit_log c ON a.id = c.order_id LEFT JOIN (SELECT DISTINCT status, description FROM status_descriptions) d ON a.status = d.status WHERE a.name LIKE '%test%' AND (b.totalAmount > 1000 OR b.totalAmount IS NULL) ORDER BY a.order_date DESC, a.name;", - "outputs": [ - { - "expected": "SELECT a. *, b.totalAmount, CASE WHEN c.id IS NOT ? THEN d.description ELSE ? END FROM ( SELECT id, name, status, customer_id FROM orders WHERE order_date > DATEADD ( month, ?, GETDATE ( ) ) AND status IN ( ? ) AND customer_id IN ( SELECT customer_id FROM customers WHERE region IN ( ? ) AND last_order_date > DATEADD ( year, ?, GETDATE ( ) ) ) ORDER BY name DESC ) a INNER JOIN ( SELECT order_id, SUM ( amount ) FROM order_details GROUP BY order_id ) b ON a.id = b.order_id LEFT JOIN audit_log c ON a.id = c.order_id LEFT JOIN ( SELECT DISTINCT status, description FROM status_descriptions ) d ON a.status = d.status WHERE a.name LIKE ? AND ( b.totalAmount > ? OR b.totalAmount IS ? ) ORDER BY a.order_date DESC, a.name", - "statement_metadata": { - "size": 66, - "tables": ["orders", "customers", "order_details", "audit_log", "status_descriptions"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/conditional-delete-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/conditional-delete-case.json deleted file mode 100644 index 66a0da8c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/conditional-delete-case.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status = CASE WHEN order_date < GETDATE() - 90 THEN 'Expired' ELSE 'Active' END;", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status = CASE WHEN order_date < GETDATE ( ) - ? THEN ? ELSE ? END", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-basic.json deleted file mode 100644 index eb9025d8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status = 'Cancelled';", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-cascade.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-cascade.json deleted file mode 100644 index 2e4a3b54..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-cascade.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM customers WHERE region = 'North'; -- Assuming CASCADE DELETE is set up on the foreign key in the orders table", - "outputs": [ - { - "expected": "DELETE FROM customers WHERE region = ?", - "statement_metadata": { - "size": 90, - "tables": ["customers"], - "commands": ["DELETE"], - "comments": ["-- Assuming CASCADE DELETE is set up on the foreign key in the orders table"], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-rowlock-hint.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-rowlock-hint.json deleted file mode 100644 index b5649652..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-rowlock-hint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WITH (ROWLOCK) WHERE status = 'Pending';", - "outputs": [ - { - "expected": "DELETE FROM orders WITH ( ROWLOCK ) WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-subquery.json deleted file mode 100644 index 2d739ca4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-subquery.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE customer_id IN (SELECT id FROM customers WHERE region = 'West');", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE customer_id IN ( SELECT id FROM customers WHERE region = ? )", - "statement_metadata": { - "size": 27, - "tables": ["orders", "customers"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-table-variable.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-table-variable.json deleted file mode 100644 index 91809fe3..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-using-table-variable.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DECLARE @ExpiredOrders TABLE (id INT); INSERT INTO @ExpiredOrders (id) SELECT id FROM orders WHERE order_date < GETDATE() - 365; DELETE FROM orders WHERE id IN (SELECT id FROM @ExpiredOrders);", - "outputs": [ - { - "expected": "DECLARE @ExpiredOrders TABLE ( id INT ); INSERT INTO @ExpiredOrders ( id ) SELECT id FROM orders WHERE order_date < GETDATE ( ) - ?; DELETE FROM orders WHERE id IN ( SELECT id FROM @ExpiredOrders )", - "statement_metadata": { - "size": 24, - "tables": ["orders"], - "commands": ["INSERT", "SELECT", "DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-cte.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-cte.json deleted file mode 100644 index 69121952..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-cte.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "WITH OldOrders AS (SELECT id FROM orders WHERE order_date < '2022-01-01') DELETE FROM orders WHERE id IN (SELECT id FROM OldOrders);", - "outputs": [ - { - "expected": "WITH OldOrders AS ( SELECT id FROM orders WHERE order_date < ? ) DELETE FROM orders WHERE id IN ( SELECT id FROM OldOrders )", - "statement_metadata": { - "size": 27, - "tables": ["orders", "OldOrders"], - "commands": ["SELECT", "DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-join.json deleted file mode 100644 index 7fa63f36..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE o FROM orders o INNER JOIN customers c ON o.customer_id = c.id WHERE c.region = 'East' AND o.status = 'Pending';", - "outputs": [ - { - "expected": "DELETE o FROM orders o INNER JOIN customers c ON o.customer_id = c.id WHERE c.region = ? AND o.status = ?", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["DELETE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-output.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-output.json deleted file mode 100644 index b3373cc5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-output.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders OUTPUT DELETED.* WHERE status = 'Shipped';", - "outputs": [ - { - "expected": "DELETE FROM orders OUTPUT DELETED. * WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-top.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-top.json deleted file mode 100644 index 12116c3b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/delete/delete-with-top.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE TOP (10) FROM orders WHERE status = 'Pending';", - "outputs": [ - { - "expected": "DELETE TOP ( ? ) FROM orders WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-basic.json deleted file mode 100644 index fe1d97fd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, order_date, status) VALUES (1, GETDATE(), 'Pending');", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, order_date, status ) VALUES ( ?, GETDATE ( ), ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-default-values.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-default-values.json deleted file mode 100644 index 9c8a08ad..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-default-values.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders DEFAULT VALUES;", - "outputs": [ - { - "expected": "INSERT INTO orders DEFAULT VALUES", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-identity-insert.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-identity-insert.json deleted file mode 100644 index 5fdc3e03..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-identity-insert.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SET IDENTITY_INSERT orders ON; INSERT INTO orders (id, customer_id, order_date, status) VALUES (100, 3, GETDATE(), 'Pending'); SET IDENTITY_INSERT orders OFF;", - "outputs": [ - { - "expected": "SET IDENTITY_INSERT orders ON; INSERT INTO orders ( id, customer_id, order_date, status ) VALUES ( ?, GETDATE ( ), ? ); SET IDENTITY_INSERT orders OFF", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-merge.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-merge.json deleted file mode 100644 index 81d75e6e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-merge.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "MERGE INTO orders AS target USING (SELECT customer_id, order_date, status FROM incoming_orders) AS source ON target.id = source.id WHEN NOT MATCHED THEN INSERT (customer_id, order_date, status) VALUES (source.customer_id, source.order_date, source.status);", - "outputs": [ - { - "expected": "MERGE INTO orders USING ( SELECT customer_id, order_date, status FROM incoming_orders ) ON target.id = source.id WHEN NOT MATCHED THEN INSERT ( customer_id, order_date, status ) VALUES ( source.customer_id, source.order_date, source.status )", - "statement_metadata": { - "size": 38, - "tables": ["orders", "incoming_orders"], - "commands": ["MERGE", "SELECT", "INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-output.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-output.json deleted file mode 100644 index d16031fd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-output.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, order_date, status) OUTPUT INSERTED.id VALUES (3, GETDATE(), 'Processing');", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, order_date, status ) OUTPUT INSERTED.id VALUES ( ?, GETDATE ( ), ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-select-into.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-select-into.json deleted file mode 100644 index 74700113..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-select-into.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * INTO new_orders FROM orders WHERE status = 'Pending';", - "outputs": [ - { - "expected": "SELECT * INTO new_orders FROM orders WHERE status = ?", - "statement_metadata": { - "size": 22, - "tables": ["new_orders", "orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-subquery-values.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-subquery-values.json deleted file mode 100644 index af7a2a0f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-subquery-values.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO order_totals (order_id, total_amount) VALUES ((SELECT MAX(id) FROM orders), 500);", - "outputs": [ - { - "expected": "INSERT INTO order_totals ( order_id, total_amount ) VALUES ( ( SELECT MAX ( id ) FROM orders ), ? )", - "statement_metadata": { - "size": 30, - "tables": ["order_totals", "orders"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-top-orderby.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-top-orderby.json deleted file mode 100644 index 2469fd38..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-top-orderby.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO top_orders (id, amount) SELECT TOP 5 id, amount FROM orders ORDER BY amount DESC;", - "outputs": [ - { - "expected": "INSERT INTO top_orders ( id, amount ) SELECT TOP ? id, amount FROM orders ORDER BY amount DESC", - "statement_metadata": { - "size": 28, - "tables": ["top_orders", "orders"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-values-multiple-rows.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-values-multiple-rows.json deleted file mode 100644 index ec79720b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-values-multiple-rows.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO customers (name, region) VALUES ('John Doe', 'North'), ('Jane Smith', 'South');", - "outputs": [ - { - "expected": "INSERT INTO customers ( name, region ) VALUES ( ? ), ( ? )", - "statement_metadata": { - "size": 15, - "tables": ["customers"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-with-select.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-with-select.json deleted file mode 100644 index 30392800..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/insert-with-select.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders_archive (id, customer_id, order_date, status) SELECT id, customer_id, order_date, status FROM orders WHERE status = 'Completed';", - "outputs": [ - { - "expected": "INSERT INTO orders_archive ( id, customer_id, order_date, status ) SELECT id, customer_id, order_date, status FROM orders WHERE status = ?", - "statement_metadata": { - "size": 32, - "tables": ["orders_archive", "orders"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/using-throw-error-handling.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/using-throw-error-handling.json deleted file mode 100644 index 8458f773..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/insert/using-throw-error-handling.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "BEGIN TRY INSERT INTO orders (customer_id, amount) VALUES (1, -100); END TRY BEGIN CATCH THROW; END CATCH;", - "outputs": [ - { - "expected": "BEGIN TRY INSERT INTO orders ( customer_id, amount ) VALUES ( ? ); END TRY BEGIN CATCH THROW; END CATCH", - "statement_metadata": { - "size": 17, - "tables": ["orders"], - "commands": ["BEGIN", "INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-operations.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-operations.json deleted file mode 100644 index 485e68de..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-operations.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE ManageCustomerOrders @customerId INT AS BEGIN SET NOCOUNT ON; IF NOT EXISTS (SELECT 1 FROM customers WHERE id = @customerId) BEGIN THROW 50001, 'Customer not found.', 1; END; UPDATE orders SET status = 'Reviewed' WHERE customer_id = @customerId AND status = 'Pending'; INSERT INTO audit_log (description) VALUES ('Orders reviewed for customer ' + CAST(@customerId AS NVARCHAR(10))); END;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE ManageCustomerOrders @customerId INT AS BEGIN SET NOCOUNT ON; IF NOT EXISTS (SELECT ? FROM customers WHERE id = @customerId) BEGIN THROW ?, ?, ?; END; UPDATE orders SET status = ? WHERE customer_id = @customerId AND status = ?; INSERT INTO audit_log (description) VALUES (? + CAST(@customerId AS NVARCHAR(?))); END;", - "statement_metadata": { - "size": 78, - "tables": ["customers", "orders", "audit_log"], - "commands": ["CREATE", "ALTER", "BEGIN", "SELECT", "UPDATE", "INSERT"], - "comments": [], - "procedures": ["ManageCustomerOrders"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-statements.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-statements.json deleted file mode 100644 index 886e455a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/complex-stored-procedure-multiple-statements.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE FullOrderManagement AS\nBEGIN\n-- Comprehensive procedure to manage order lifecycle\n-- It checks, processes, and logs orders.\nSET NOCOUNT ON;\n-- Check for new orders\nUPDATE orders SET status = 'Processing' WHERE status = 'New';\n-- Log the update\nINSERT INTO audit_log (description) VALUES ('Processed new orders.');\n-- Finalize processed orders\nUPDATE orders SET status = 'Finalized' WHERE status = 'Processing';\nEND;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE FullOrderManagement AS BEGIN SET NOCOUNT ON; UPDATE orders SET status = ? WHERE status = ?; INSERT INTO audit_log (description) VALUES (?); UPDATE orders SET status = ? WHERE status = ?; END;", - "statement_metadata": { - "size": 223, - "tables": ["orders", "audit_log"], - "commands": ["CREATE", "ALTER", "BEGIN", "UPDATE", "INSERT"], - "comments": ["-- Comprehensive procedure to manage order lifecycle", "-- It checks, processes, and logs orders.", "-- Check for new orders", "-- Log the update", "-- Finalize processed orders"], - "procedures": ["FullOrderManagement"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-comprehensive-logic-explanation.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-comprehensive-logic-explanation.json deleted file mode 100644 index 3036098a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-comprehensive-logic-explanation.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE ValidateOrderDetails AS\nBEGIN\n/*\n Procedure Name: ValidateOrderDetails\n Purpose: To validate the details of orders before processing.\n Detailed Description:\n This procedure runs through each order in the 'orders' table\n and checks if all required details are present.\n It updates the 'order_status' table with 'Valid' or 'Invalid'.\n It's a critical part of the order processing pipeline to ensure data integrity.\n*/\n-- Validation logic\nUPDATE orders SET status = CASE WHEN customer_id IS NOT NULL AND total_amount IS NOT NULL THEN 'Valid' ELSE 'Invalid' END;\nEND;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE ValidateOrderDetails AS BEGIN UPDATE orders SET status = CASE WHEN customer_id IS NOT NULL AND total_amount IS NOT NULL THEN ? ELSE ? END; END;", - "statement_metadata": { - "size": 466, - "tables": ["orders"], - "commands": ["CREATE", "ALTER", "BEGIN", "UPDATE"], - "comments": ["/*\n Procedure Name: ValidateOrderDetails\n Purpose: To validate the details of orders before processing.\n Detailed Description:\n This procedure runs through each order in the 'orders' table\n and checks if all required details are present.\n It updates the 'order_status' table with 'Valid' or 'Invalid'.\n It's a critical part of the order processing pipeline to ensure data integrity.\n*/", "-- Validation logic"], - "procedures": ["ValidateOrderDetails"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-conditional-logic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-conditional-logic.json deleted file mode 100644 index 81008418..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-conditional-logic.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE CheckOrderStatus @orderId INT AS\nBEGIN\n-- Checks the status of an order and logs if it's delayed.\n-- This is part of our order monitoring system.\nSET NOCOUNT ON;\nDECLARE @status NVARCHAR(50);\nSELECT @status = status FROM orders WHERE id = @orderId;\nIF @status = 'Delayed'\nBEGIN\n INSERT INTO audit_log (description) VALUES ('Order ' + CAST(@orderId AS NVARCHAR(10)) + ' is delayed.');\nEND\nEND;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE CheckOrderStatus @orderId INT AS BEGIN SET NOCOUNT ON; DECLARE @status NVARCHAR(?); SELECT @status = status FROM orders WHERE id = @orderId; IF @status = ? BEGIN INSERT INTO audit_log (description) VALUES (? + CAST(@orderId AS NVARCHAR(?)) + ?); END END;", - "statement_metadata": { - "size": 164, - "tables": ["orders", "audit_log"], - "commands": ["CREATE", "ALTER", "BEGIN", "SELECT", "INSERT"], - "comments": ["-- Checks the status of an order and logs if it's delayed.", "-- This is part of our order monitoring system."], - "procedures": ["CheckOrderStatus"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-cursor-temp-table.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-cursor-temp-table.json deleted file mode 100644 index 7f6ad14e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-cursor-temp-table.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE ArchiveOldOrders AS BEGIN SET NOCOUNT ON; DECLARE @orderId INT; DECLARE orderCursor CURSOR FOR SELECT id FROM orders WHERE order_date < GETDATE() - 365; OPEN orderCursor; FETCH NEXT FROM orderCursor INTO @orderId; WHILE @@FETCH_STATUS = 0 BEGIN INSERT INTO orders_archive (id, status) SELECT id, status FROM orders WHERE id = @orderId; FETCH NEXT FROM orderCursor INTO @orderId; END; CLOSE orderCursor; DEALLOCATE orderCursor; END;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE ArchiveOldOrders AS BEGIN SET NOCOUNT ON; DECLARE @orderId INT; DECLARE orderCursor CURSOR FOR SELECT id FROM orders WHERE order_date < GETDATE() - ?; OPEN orderCursor; FETCH NEXT FROM orderCursor INTO @orderId; WHILE @@FETCH_STATUS = ? BEGIN INSERT INTO orders_archive (id, status) SELECT id, status FROM orders WHERE id = @orderId; FETCH NEXT FROM orderCursor INTO @orderId; END; CLOSE orderCursor; DEALLOCATE orderCursor; END;", - "statement_metadata": { - "size": 75, - "tables": ["orders", "orderCursor", "orders_archive"], - "commands": ["CREATE", "ALTER", "BEGIN", "SELECT", "INSERT"], - "comments": [], - "procedures": ["ArchiveOldOrders"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-detailed-documentation.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-detailed-documentation.json deleted file mode 100644 index 68166fd5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-detailed-documentation.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE AuditOrderProcessing AS\nBEGIN\n/*\n Procedure: AuditOrderProcessing\n Author: Jane Doe\n Created: 2023-04-15\n Description: This procedure is designed to audit order processing steps.\n It checks each step of the order processing workflow and logs it into the audit_log table.\n Modifications:\n - 2023-04-20: Added additional logging for failed orders.\n - 2023-05-01: Updated logic to include new order status.\n*/\nSET NOCOUNT ON;\n-- Insert audit records\nINSERT INTO audit_log (description) SELECT 'Order processed: ' + CAST(id AS NVARCHAR(10)) FROM orders WHERE status = 'Processed';\nEND;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE AuditOrderProcessing AS BEGIN SET NOCOUNT ON; INSERT INTO audit_log (description) SELECT ? + CAST(id AS NVARCHAR(?)) FROM orders WHERE status = ?; END;", - "statement_metadata": { - "size": 478, - "tables": ["audit_log", "orders"], - "commands": ["CREATE", "ALTER", "BEGIN", "INSERT", "SELECT"], - "comments": ["/*\n Procedure: AuditOrderProcessing\n Author: Jane Doe\n Created: 2023-04-15\n Description: This procedure is designed to audit order processing steps.\n It checks each step of the order processing workflow and logs it into the audit_log table.\n Modifications:\n - 2023-04-20: Added additional logging for failed orders.\n - 2023-05-01: Updated logic to include new order status.\n*/", "-- Insert audit records"], - "procedures": ["AuditOrderProcessing"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-error-handling.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-error-handling.json deleted file mode 100644 index 8600e30f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-error-handling.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE UpdateOrderStatus @orderId INT, @newStatus NVARCHAR(50) AS BEGIN SET NOCOUNT ON; BEGIN TRY BEGIN TRANSACTION; DECLARE @sql NVARCHAR(MAX) = N'UPDATE orders SET status = ''' + @newStatus + ''' WHERE id = ' + CAST(@orderId AS NVARCHAR(10)) + ';'; EXEC sp_executesql @sql; COMMIT TRANSACTION; END TRY BEGIN CATCH ROLLBACK TRANSACTION; THROW; END CATCH; END;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE UpdateOrderStatus @orderId INT, @newStatus NVARCHAR(?) AS BEGIN SET NOCOUNT ON; BEGIN TRY BEGIN TRANSACTION; DECLARE @sql NVARCHAR(MAX) = N ? ? + @newStatus + ? ? + CAST(@orderId AS NVARCHAR(?)) + ?; EXEC sp_executesql @sql; COMMIT TRANSACTION; END TRY BEGIN CATCH ROLLBACK TRANSACTION; THROW; END CATCH; END;", - "statement_metadata": { - "size": 43, - "tables": [], - "commands": ["CREATE", "ALTER", "BEGIN", "EXEC", "COMMIT"], - "comments": [], - "procedures": ["UpdateOrderStatus"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-execution.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-execution.json deleted file mode 100644 index 9d3e043d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-dynamic-sql-execution.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE DynamicCustomerQuery @query NVARCHAR(MAX) AS\nBEGIN\n-- Executes a dynamic SQL query based on the input.\n-- Used for flexible customer data retrieval.\nSET NOCOUNT ON;\nEXEC sp_executesql @query;\nEND;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE DynamicCustomerQuery @query NVARCHAR(MAX) AS BEGIN SET NOCOUNT ON; EXEC sp_executesql @query; END;", - "statement_metadata": { - "size": 136, - "tables": [], - "commands": ["CREATE", "ALTER", "BEGIN", "EXEC"], - "comments": ["-- Executes a dynamic SQL query based on the input.", "-- Used for flexible customer data retrieval."], - "procedures": ["DynamicCustomerQuery"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-executing-another.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-executing-another.json deleted file mode 100644 index abf61515..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-executing-another.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE FullOrderProcessing AS BEGIN SET NOCOUNT ON; EXEC ProcessOrders; EXEC UpdateOrderStatus 1, 'Dispatched'; END;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE FullOrderProcessing AS BEGIN SET NOCOUNT ON; EXEC ProcessOrders; EXEC UpdateOrderStatus ?, ?; END;", - "statement_metadata": { - "size": 39, - "tables": [], - "commands": ["CREATE", "ALTER", "BEGIN", "EXEC"], - "comments": [], - "procedures": ["FullOrderProcessing"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-temp-tables-transaction.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-temp-tables-transaction.json deleted file mode 100644 index d83db6ba..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-temp-tables-transaction.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE ProcessOrders AS BEGIN SET NOCOUNT ON; BEGIN TRANSACTION; CREATE TABLE #TempOrders (id INT, status NVARCHAR(50)); INSERT INTO #TempOrders (id, status) SELECT id, status FROM orders WHERE status = 'Pending'; UPDATE orders SET status = 'Processing' WHERE status = 'Pending'; COMMIT TRANSACTION; SELECT * FROM #TempOrders; DROP TABLE #TempOrders; END;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE ProcessOrders AS BEGIN SET NOCOUNT ON; BEGIN TRANSACTION; CREATE TABLE #TempOrders (id INT, status NVARCHAR(?)); INSERT INTO #TempOrders (id, status) SELECT id, status FROM orders WHERE status = ?; UPDATE orders SET status = ? WHERE status = ?; COMMIT TRANSACTION; SELECT * FROM #TempOrders; DROP TABLE #TempOrders; END;", - "statement_metadata": { - "size": 74, - "tables": ["#TempOrders", "orders"], - "commands": ["CREATE", "ALTER", "BEGIN", "INSERT", "SELECT", "UPDATE", "COMMIT", "DROP"], - "comments": [], - "procedures": ["ProcessOrders"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-try-catch-error.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-try-catch-error.json deleted file mode 100644 index 909c2889..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-try-catch-error.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE ProcessPayment @orderId INT, @amount MONEY AS\nBEGIN\n-- This procedure processes payments for orders.\n-- It includes error handling using TRY-CATCH.\nSET NOCOUNT ON;\nBEGIN TRY\n -- Attempt to process the payment\n UPDATE orders SET payment_received = 1, payment_amount = @amount WHERE id = @orderId;\nEND TRY\nBEGIN CATCH\n -- Handle the error\n INSERT INTO error_log (error_message) VALUES (ERROR_MESSAGE());\nEND CATCH\nEND;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE ProcessPayment @orderId INT, @amount MONEY AS BEGIN SET NOCOUNT ON; BEGIN TRY UPDATE orders SET payment_received = ?, payment_amount = @amount WHERE id = @orderId; END TRY BEGIN CATCH INSERT INTO error_log (error_message) VALUES (ERROR_MESSAGE()); END CATCH END;", - "statement_metadata": { - "size": 203, - "tables": ["orders", "error_log"], - "commands": ["CREATE", "ALTER", "BEGIN", "UPDATE", "INSERT"], - "comments": ["-- This procedure processes payments for orders.", "-- It includes error handling using TRY-CATCH.", "-- Attempt to process the payment", "-- Handle the error"], - "procedures": ["ProcessPayment"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-version-control.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-version-control.json deleted file mode 100644 index 68166fd5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-version-control.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE AuditOrderProcessing AS\nBEGIN\n/*\n Procedure: AuditOrderProcessing\n Author: Jane Doe\n Created: 2023-04-15\n Description: This procedure is designed to audit order processing steps.\n It checks each step of the order processing workflow and logs it into the audit_log table.\n Modifications:\n - 2023-04-20: Added additional logging for failed orders.\n - 2023-05-01: Updated logic to include new order status.\n*/\nSET NOCOUNT ON;\n-- Insert audit records\nINSERT INTO audit_log (description) SELECT 'Order processed: ' + CAST(id AS NVARCHAR(10)) FROM orders WHERE status = 'Processed';\nEND;", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE AuditOrderProcessing AS BEGIN SET NOCOUNT ON; INSERT INTO audit_log (description) SELECT ? + CAST(id AS NVARCHAR(?)) FROM orders WHERE status = ?; END;", - "statement_metadata": { - "size": 478, - "tables": ["audit_log", "orders"], - "commands": ["CREATE", "ALTER", "BEGIN", "INSERT", "SELECT"], - "comments": ["/*\n Procedure: AuditOrderProcessing\n Author: Jane Doe\n Created: 2023-04-15\n Description: This procedure is designed to audit order processing steps.\n It checks each step of the order processing workflow and logs it into the audit_log table.\n Modifications:\n - 2023-04-20: Added additional logging for failed orders.\n - 2023-05-01: Updated logic to include new order status.\n*/", "-- Insert audit records"], - "procedures": ["AuditOrderProcessing"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-with-params-and-execution.json.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-with-params-and-execution.json.json deleted file mode 100644 index 9c3d20a8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/procedure/stored-procedure-with-params-and-execution.json.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "input": "CREATE OR ALTER PROCEDURE UpdateCustomerStatus @customerId INT, @newStatus NVARCHAR(50) AS\nBEGIN\n-- This procedure updates the status of a customer.\n-- It takes the customer ID and the new status as parameters.\nSET NOCOUNT ON;\nUPDATE customers SET status = @newStatus WHERE id = @customerId;\nEND;\nEXEC UpdateCustomerStatus 123, 'Active';", - "outputs": [ - { - "expected": "CREATE OR ALTER PROCEDURE UpdateCustomerStatus @customerId INT, @newStatus NVARCHAR(?) AS BEGIN SET NOCOUNT ON; UPDATE customers SET status = @newStatus WHERE id = @customerId; END; EXEC UpdateCustomerStatus ?, ?;", - "statement_metadata": { - "size": 167, - "tables": ["customers"], - "commands": ["CREATE", "ALTER", "BEGIN", "UPDATE", "EXEC"], - "comments": ["-- This procedure updates the status of a customer.", "-- It takes the customer ID and the new status as parameters."], - "procedures": ["UpdateCustomerStatus"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] -} diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/basic-select.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/basic-select.json deleted file mode 100644 index 1c103a26..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/basic-select.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, name, email FROM customers WHERE active = 1;", - "outputs": [ - { - "expected": "SELECT id, name, email FROM customers WHERE active = ?", - "statement_metadata": { - "size": 15, - "tables": ["customers"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/data-compression-features.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/data-compression-features.json deleted file mode 100644 index 96ca517a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/data-compression-features.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE TABLE orders_compressed WITH (DATA_COMPRESSION = PAGE) AS SELECT * FROM orders;", - "outputs": [ - { - "expected": "CREATE TABLE orders_compressed WITH ( DATA_COMPRESSION = PAGE ) AS SELECT * FROM orders", - "statement_metadata": { - "size": 35, - "tables": ["orders_compressed", "orders"], - "commands": ["CREATE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/filetable-storage.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/filetable-storage.json deleted file mode 100644 index 15c83fd7..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/filetable-storage.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE TABLE DocumentStore AS FileTable;", - "outputs": [ - { - "expected": "CREATE TABLE DocumentStore", - "statement_metadata": { - "size": 19, - "tables": ["DocumentStore"], - "commands": ["CREATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/pivot-unpivot-operations.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/pivot-unpivot-operations.json deleted file mode 100644 index a2e5b22c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/pivot-unpivot-operations.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * FROM (SELECT customer_id, product_id, amount FROM order_details) AS SourceTable PIVOT (SUM(amount) FOR product_id IN ([1], [2], [3])) AS PivotTable;", - "outputs": [ - { - "expected": "SELECT * FROM ( SELECT customer_id, product_id, amount FROM order_details ) PIVOT ( SUM ( amount ) FOR product_id IN ( ? ) )", - "statement_metadata": { - "size": 19, - "tables": ["order_details"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-choose.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-choose.json deleted file mode 100644 index 821d7276..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-choose.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, name, CHOOSE(department_id, 'Sales', 'Engineering', 'HR') AS DepartmentName FROM employees;", - "outputs": [ - { - "expected": "SELECT id, name, CHOOSE ( department_id, ?, ?, ? ) FROM employees", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-format.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-format.json deleted file mode 100644 index e1129aae..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-format.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT name, FORMAT(joining_date, 'dd-MM-yyyy') AS FormattedJoiningDate FROM employees;", - "outputs": [ - { - "expected": "SELECT name, FORMAT ( joining_date, ? ) FROM employees", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-full-outer-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-full-outer-join.json deleted file mode 100644 index d2096762..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-full-outer-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT c.name, o.order_date FROM customers c FULL OUTER JOIN orders o ON c.id = o.customer_id WHERE c.region = 'West' OR o.amount > 500;", - "outputs": [ - { - "expected": "SELECT c.name, o.order_date FROM customers c FULL OUTER JOIN orders o ON c.id = o.customer_id WHERE c.region = ? OR o.amount > ?", - "statement_metadata": { - "size": 25, - "tables": ["customers", "orders"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-identity.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-identity.json deleted file mode 100644 index 18bb4e11..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-identity.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO employees (name, department) VALUES ('John Doe', 'Sales'); SELECT @@IDENTITY AS LastInsertedIdentity;", - "outputs": [ - { - "expected": "INSERT INTO employees ( name, department ) VALUES ( ? ); SELECT @@IDENTITY", - "statement_metadata": { - "size": 21, - "tables": ["employees"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-iif.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-iif.json deleted file mode 100644 index 9ecc3b4a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-iif.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT name, IIF(gender = 'M', 'Male', 'Female') AS GenderDescription FROM employees;", - "outputs": [ - { - "expected": "SELECT name, IIF ( gender = ?, ?, ? ) FROM employees", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-join-aggregation.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-join-aggregation.json deleted file mode 100644 index 1de78462..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-join-aggregation.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT c.name, SUM(o.amount) AS total_sales FROM customers c INNER JOIN orders o ON c.id = o.customer_id GROUP BY c.name;", - "outputs": [ - { - "expected": "SELECT c.name, SUM ( o.amount ) FROM customers c INNER JOIN orders o ON c.id = o.customer_id GROUP BY c.name", - "statement_metadata": { - "size": 25, - "tables": ["customers", "orders"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-system-user.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-system-user.json deleted file mode 100644 index f841baab..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-system-user.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT SYSTEM_USER AS CurrentSystemUser, USER_NAME() AS CurrentDatabaseUser, NEWID() AS UniqueIdentifier;", - "outputs": [ - { - "expected": "SELECT SYSTEM_USER, USER_NAME ( ), NEWID ( )", - "statement_metadata": { - "size": 6, - "tables": [], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-pivot.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-pivot.json deleted file mode 100644 index 3c6c8ce2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-pivot.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * FROM (SELECT customer_id, product_id, amount FROM orders) AS SourceTable PIVOT (SUM(amount) FOR product_id IN ([1], [2], [3])) AS PivotTable;", - "outputs": [ - { - "expected": "SELECT * FROM ( SELECT customer_id, product_id, amount FROM orders ) PIVOT ( SUM ( amount ) FOR product_id IN ( ? ) )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-try-convert.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-try-convert.json deleted file mode 100644 index aed4952d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-using-try-convert.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, TRY_CONVERT(float, total_amount) AS TotalFloat FROM orders WHERE TRY_CONVERT(float, total_amount) IS NOT NULL;", - "outputs": [ - { - "expected": "SELECT id, TRY_CONVERT ( float, total_amount ) FROM orders WHERE TRY_CONVERT ( float, total_amount ) IS NOT ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-cte.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-cte.json deleted file mode 100644 index 48add7e9..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-cte.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "WITH RankedOrders AS (SELECT o.id, o.customer_id, RANK() OVER (PARTITION BY o.customer_id ORDER BY o.amount DESC) AS rnk FROM orders o) SELECT id FROM RankedOrders WHERE rnk = 1;", - "outputs": [ - { - "expected": "WITH RankedOrders AS ( SELECT o.id, o.customer_id, RANK ( ) OVER ( PARTITION BY o.customer_id ORDER BY o.amount DESC ) FROM orders o ) SELECT id FROM RankedOrders WHERE rnk = ?", - "statement_metadata": { - "size": 24, - "tables": ["orders", "RankedOrders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "WITH RankedOrders AS (SELECT o.id, o.customer_id, RANK() OVER (PARTITION BY o.customer_id ORDER BY o.amount DESC) AS rnk FROM orders o) SELECT id FROM RankedOrders WHERE rnk = ?;", - "normalizer_config": { - "keep_sql_alias": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-offset-fetch.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-offset-fetch.json deleted file mode 100644 index c00765a8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-offset-fetch.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, name FROM customers ORDER BY name OFFSET 10 ROWS FETCH NEXT 5 ROWS ONLY;", - "outputs": [ - { - "expected": "SELECT id, name FROM customers ORDER BY name OFFSET ? ROWS FETCH NEXT ? ROWS ONLY", - "statement_metadata": { - "size": 15, - "tables": ["customers"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-string-agg.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-string-agg.json deleted file mode 100644 index 838f137e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-string-agg.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT STRING_AGG(name, ', ') AS names FROM customers WHERE region = 'East';", - "outputs": [ - { - "expected": "SELECT STRING_AGG ( name, ? ) FROM customers WHERE region = ?", - "statement_metadata": { - "size": 15, - "tables": ["customers"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-table-sample.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-table-sample.json deleted file mode 100644 index 4953ab6e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-table-sample.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * FROM customers TABLESAMPLE (10 PERCENT);", - "outputs": [ - { - "expected": "SELECT * FROM customers TABLESAMPLE ( ? PERCENT )", - "statement_metadata": { - "size": 15, - "tables": ["customers"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-window-function.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-window-function.json deleted file mode 100644 index cf918833..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/select-with-window-function.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "SELECT id, amount, ROW_NUMBER() OVER (ORDER BY amount DESC) AS rownum FROM orders;", - "outputs": [ - { - "expected": "SELECT id, amount, ROW_NUMBER ( ) OVER ( ORDER BY amount DESC ) AS rownum FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT id, amount, ROW_NUMBER() OVER (ORDER BY amount DESC) AS rownum FROM orders;", - "normalizer_config": { - "keep_sql_alias": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/service-broker.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/service-broker.json deleted file mode 100644 index 4f6cc45c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/service-broker.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE MESSAGE TYPE RequestMessage VALIDATION = WELL_FORMED_XML; CREATE CONTRACT RequestContract (RequestMessage SENT BY INITIATOR);", - "outputs": [ - { - "expected": "CREATE MESSAGE TYPE RequestMessage VALIDATION = WELL_FORMED_XML; CREATE CONTRACT RequestContract ( RequestMessage SENT BY INITIATOR )", - "statement_metadata": { - "size": 6, - "tables": [], - "commands": ["CREATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/spatial-data-types-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/spatial-data-types-functions.json deleted file mode 100644 index 92519e16..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/spatial-data-types-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT geography::Point(latitude, longitude, 4326).ToString() FROM locations;", - "outputs": [ - { - "expected": "SELECT geography :: Point ( latitude, longitude, ? ) . ToString ( ) FROM locations", - "statement_metadata": { - "size": 15, - "tables": ["locations"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/xml-data-types-queries.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/xml-data-types-queries.json deleted file mode 100644 index ad9cae93..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/select/xml-data-types-queries.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT xmlData.value('(/Customer/Name)[1]', 'nvarchar(100)') AS CustomerName FROM customerRecords;", - "outputs": [ - { - "expected": "SELECT xmlData.value ( ? ) FROM customerRecords", - "statement_metadata": { - "size": 21, - "tables": ["customerRecords"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/conditional-update-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/conditional-update-case.json deleted file mode 100644 index bc0c0f6e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/conditional-update-case.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = CASE WHEN amount >= 1000 THEN 'High Value' ELSE 'Regular' END;", - "outputs": [ - { - "expected": "UPDATE orders SET status = CASE WHEN amount >= ? THEN ? ELSE ? END", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-basic.json deleted file mode 100644 index 5fe74fe1..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Processed' WHERE order_date < GETDATE() - 30;", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE order_date < GETDATE ( ) - ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-complex-where.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-complex-where.json deleted file mode 100644 index 68e5c7fd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-complex-where.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Review Needed' WHERE customer_id IN (SELECT id FROM customers WHERE last_order_date < GETDATE() - 365) AND status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE customer_id IN ( SELECT id FROM customers WHERE last_order_date < GETDATE ( ) - ? ) AND status = ?", - "statement_metadata": { - "size": 27, - "tables": ["orders", "customers"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-from-aliases.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-from-aliases.json deleted file mode 100644 index b16fadd9..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-from-aliases.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE o SET o.status = 'Completed' FROM orders o WHERE o.order_date > '2023-01-01' AND o.amount > 500;", - "outputs": [ - { - "expected": "UPDATE o SET o.status = ? FROM orders o WHERE o.order_date > ? AND o.amount > ?", - "statement_metadata": { - "size": 13, - "tables": ["o", "orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-join-top.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-join-top.json deleted file mode 100644 index 7d268717..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-join-top.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE TOP (5) o SET o.status = 'Pending Review' FROM orders o INNER JOIN customers c ON o.customer_id = c.id WHERE c.region = 'North';", - "outputs": [ - { - "expected": "UPDATE TOP ( ? ) o SET o.status = ? FROM orders o INNER JOIN customers c ON o.customer_id = c.id WHERE c.region = ?", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["UPDATE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-rowlock-hint.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-rowlock-hint.json deleted file mode 100644 index f5a6d59f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-rowlock-hint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders WITH (ROWLOCK) SET status = 'Processing' WHERE status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE orders WITH ( ROWLOCK ) SET status = ? WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-quoted-identifiers.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-quoted-identifiers.json deleted file mode 100644 index f2e62659..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-quoted-identifiers.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE [orders] SET [status] = 'Confirmed' WHERE [order_date] >= '2023-01-01';", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE order_date >= ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-top.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-top.json deleted file mode 100644 index e2c36d09..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-top.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE TOP (10) orders SET status = 'Reviewed' WHERE status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE TOP ( ? ) orders SET status = ? WHERE status = ?", - "statement_metadata": { - "size": 6, - "tables": [], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-variable-store-value.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-variable-store-value.json deleted file mode 100644 index c7d21a31..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-using-variable-store-value.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DECLARE @maxDate DATETIME; SET @maxDate = (SELECT MAX(order_date) FROM orders); UPDATE orders SET status = 'Old Order' WHERE order_date < @maxDate;", - "outputs": [ - { - "expected": "DECLARE @maxDate DATETIME; SET @maxDate = ( SELECT MAX ( order_date ) FROM orders ); UPDATE orders SET status = ? WHERE order_date < @maxDate", - "statement_metadata": { - "size": 18, - "tables": ["orders"], - "commands": ["SELECT", "UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-boolean-logic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-boolean-logic.json deleted file mode 100644 index 470f3955..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-boolean-logic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET is_priority = CASE WHEN total_amount > 1000 THEN 1 ELSE 0 END WHERE order_date > '2023-01-01';", - "outputs": [ - { - "expected": "UPDATE orders SET is_priority = CASE WHEN total_amount > ? THEN ? ELSE ? END WHERE order_date > ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-case.json deleted file mode 100644 index b9a20bbc..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-case.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = CASE WHEN amount > 1000 THEN 'High Value' ELSE 'Standard' END WHERE order_date >= '2023-01-01';", - "outputs": [ - { - "expected": "UPDATE orders SET status = CASE WHEN amount > ? THEN ? ELSE ? END WHERE order_date >= ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-cte.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-cte.json deleted file mode 100644 index c167ed39..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-cte.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "WITH UpdatedOrders AS (SELECT id FROM orders WHERE order_date < GETDATE() - 30) UPDATE o SET o.status = 'Archived' FROM orders o JOIN UpdatedOrders uo ON o.id = uo.id;", - "outputs": [ - { - "expected": "WITH UpdatedOrders AS ( SELECT id FROM orders WHERE order_date < GETDATE ( ) - ? ) UPDATE o SET o.status = ? FROM orders o JOIN UpdatedOrders uo ON o.id = uo.id", - "statement_metadata": { - "size": 36, - "tables": ["orders", "o", "UpdatedOrders"], - "commands": ["SELECT", "UPDATE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-date-manipulation.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-date-manipulation.json deleted file mode 100644 index 6a4fd85d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-date-manipulation.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET due_date = DATEADD(day, 10, order_date) WHERE status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE orders SET due_date = DATEADD ( day, ?, order_date ) WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-join.json deleted file mode 100644 index e17a7422..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE o SET o.status = 'Dispatched' FROM orders o INNER JOIN customers c ON o.customer_id = c.id WHERE c.region = 'West' AND o.status = 'Processed';", - "outputs": [ - { - "expected": "UPDATE o SET o.status = ? FROM orders o INNER JOIN customers c ON o.customer_id = c.id WHERE c.region = ? AND o.status = ?", - "statement_metadata": { - "size": 26, - "tables": ["o", "orders", "customers"], - "commands": ["UPDATE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-named-variables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-named-variables.json deleted file mode 100644 index 67b84476..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-named-variables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DECLARE @status NVARCHAR(50); SET @status = 'Delayed'; UPDATE orders SET status = @status WHERE order_date < GETDATE() - 60;", - "outputs": [ - { - "expected": "DECLARE @status NVARCHAR ( ? ); SET @status = ?; UPDATE orders SET status = @status WHERE order_date < GETDATE ( ) - ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-null-handling.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-null-handling.json deleted file mode 100644 index bcfce2b0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-null-handling.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET delivery_date = NULLIF(order_date, due_date) WHERE status = 'Cancelled';", - "outputs": [ - { - "expected": "UPDATE orders SET delivery_date = NULLIF ( order_date, due_date ) WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-numeric-calculation.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-numeric-calculation.json deleted file mode 100644 index 6b8ec4b7..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-numeric-calculation.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET total_amount = quantity * unit_price WHERE status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE orders SET total_amount = quantity * unit_price WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-output.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-output.json deleted file mode 100644 index a5edfb60..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-output.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Cancelled' OUTPUT deleted.id, deleted.status WHERE status = 'Pending' AND order_date < GETDATE() - 90;", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? OUTPUT deleted.id, deleted.status WHERE status = ? AND order_date < GETDATE ( ) - ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-string-concatenation.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-string-concatenation.json deleted file mode 100644 index b81b8138..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-string-concatenation.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET notes = CONCAT(notes, ' Updated on ', CONVERT(VARCHAR, GETDATE(), 101)) WHERE status = 'Shipped';", - "outputs": [ - { - "expected": "UPDATE orders SET notes = CONCAT ( notes, ?, CONVERT ( VARCHAR, GETDATE ( ), ? ) ) WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-subquery.json deleted file mode 100644 index 00d3be23..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mssql/update/update-with-subquery.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'High Priority' WHERE id IN (SELECT order_id FROM order_details WHERE quantity > 10);", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE id IN ( SELECT order_id FROM order_details WHERE quantity > ? )", - "statement_metadata": { - "size": 31, - "tables": ["orders", "order_details"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-poorly-written-sql.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-poorly-written-sql.json deleted file mode 100644 index 39a0d7fd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-poorly-written-sql.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT a.*, b.totalAmount, CASE WHEN c.id IS NOT NULL THEN d.description ELSE 'N/A' END AS description\n-- Joining table a with b to get total amounts. If c.id is not null, get description from d\nFROM (SELECT id, name, status, customer_id\n FROM orders\n WHERE order_date > DATE_ADD(CURDATE(), INTERVAL -6 MONTH)\n AND status IN ('Pending', 'Completed')\n AND customer_id IN (SELECT customer_id FROM customers WHERE region IN ('East', 'West') AND last_order_date > DATE_ADD(CURDATE(), INTERVAL -1 YEAR))\n ORDER BY name DESC) a\nINNER JOIN (SELECT order_id, SUM(amount) AS totalAmount FROM order_details GROUP BY order_id) b ON a.id = b.order_id\nLEFT JOIN audit_log c ON a.id = c.order_id\nLEFT JOIN (SELECT DISTINCT status, description FROM status_descriptions) d ON a.status = d.status\nWHERE a.name LIKE '%test%'\n-- Filtering on name containing 'test'\nAND (b.totalAmount > 1000 OR b.totalAmount IS NULL)\nORDER BY a.order_date DESC, a.name;", - "outputs": [ - { - "expected": "SELECT a. *, b.totalAmount, CASE WHEN c.id IS NOT ? THEN d.description ELSE ? END FROM ( SELECT id, name, status, customer_id FROM orders WHERE order_date > DATE_ADD ( CURDATE ( ), INTERVAL ? MONTH ) AND status IN ( ? ) AND customer_id IN ( SELECT customer_id FROM customers WHERE region IN ( ? ) AND last_order_date > DATE_ADD ( CURDATE ( ), INTERVAL ? YEAR ) ) ORDER BY name DESC ) a INNER JOIN ( SELECT order_id, SUM ( amount ) FROM order_details GROUP BY order_id ) b ON a.id = b.order_id LEFT JOIN audit_log c ON a.id = c.order_id LEFT JOIN ( SELECT DISTINCT status, description FROM status_descriptions ) d ON a.status = d.status WHERE a.name LIKE ? AND ( b.totalAmount > ? OR b.totalAmount IS ? ) ORDER BY a.order_date DESC, a.name", - "statement_metadata": { - "size": 195, - "tables": ["orders", "customers", "order_details", "audit_log", "status_descriptions"], - "commands": ["SELECT", "JOIN"], - "comments": ["-- Joining table a with b to get total amounts. If c.id is not null, get description from d", "-- Filtering on name containing 'test'"], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-multiple-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-multiple-joins.json deleted file mode 100644 index e0bde0ba..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-multiple-joins.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT a.id, a.name, IFNULL(b.totalAmount, 0) AS totalAmount, c.comment, d.productCount, e.latestOrderDate\n-- Extremely complex query combining multiple joins, subqueries, and inline views\nFROM (SELECT id, name FROM customers WHERE status = 'Active') a\nJOIN (SELECT customer_id, SUM(amount) AS totalAmount FROM orders GROUP BY customer_id) b ON a.id = b.customer_id\nLEFT JOIN (SELECT customer_id, comment FROM customer_feedback WHERE rating = 5 ORDER BY feedback_date DESC LIMIT 1) c ON a.id = c.customer_id\nLEFT JOIN (SELECT customer_id, COUNT(*) AS productCount FROM order_details GROUP BY customer_id) d ON a.id = d.customer_id\nLEFT JOIN (SELECT customer_id, MAX(order_date) AS latestOrderDate FROM orders WHERE status IN ('Completed', 'Shipped') GROUP BY customer_id) e ON a.id = e.customer_id\nWHERE a.name LIKE '%Corp%' AND (b.totalAmount > 1000 OR d.productCount > 5)\nORDER BY a.name, totalAmount DESC;", - "outputs": [ - { - "expected": "SELECT a.id, a.name, IFNULL ( b.totalAmount, ? ), c.comment, d.productCount, e.latestOrderDate FROM ( SELECT id, name FROM customers WHERE status = ? ) a JOIN ( SELECT customer_id, SUM ( amount ) FROM orders GROUP BY customer_id ) b ON a.id = b.customer_id LEFT JOIN ( SELECT customer_id, comment FROM customer_feedback WHERE rating = ? ORDER BY feedback_date DESC LIMIT ? ) c ON a.id = c.customer_id LEFT JOIN ( SELECT customer_id, COUNT ( * ) FROM order_details GROUP BY customer_id ) d ON a.id = d.customer_id LEFT JOIN ( SELECT customer_id, MAX ( order_date ) FROM orders WHERE status IN ( ? ) GROUP BY customer_id ) e ON a.id = e.customer_id WHERE a.name LIKE ? AND ( b.totalAmount > ? OR d.productCount > ? ) ORDER BY a.name, totalAmount DESC", - "statement_metadata": { - "size": 136, - "tables": ["customers", "orders", "customer_feedback", "order_details"], - "commands": ["SELECT", "JOIN"], - "comments": ["-- Extremely complex query combining multiple joins, subqueries, and inline views"], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-nested-subqueries.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-nested-subqueries.json deleted file mode 100644 index a086430d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/complex/super-complex-sql-nested-subqueries.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "SELECT t1.id, t1.status, t3.totalAmount, t4.commentsCount, CASE WHEN t5.latestCommentDate IS NOT NULL THEN t5.latestCommentDate ELSE 'No Comments' END AS latestComment\n-- Complex query joining multiple subqueries and using conditional logic\nFROM (SELECT id, status FROM orders WHERE customer_id IN (SELECT id FROM customers WHERE region = 'North') AND order_date > (SELECT MAX(order_date) FROM orders WHERE status = 'Pending')) t1\nJOIN (SELECT order_id, SUM(amount) AS totalAmount FROM order_details WHERE product_id IN (SELECT id FROM products WHERE name LIKE '%Premium%') GROUP BY order_id) t3 ON t1.id = t3.order_id\nLEFT JOIN (SELECT order_id, COUNT(*) AS commentsCount FROM order_comments GROUP BY order_id) t4 ON t1.id = t4.order_id\nLEFT JOIN (SELECT order_id, MAX(comment_date) AS latestCommentDate FROM order_comments WHERE comment LIKE '%urgent%' GROUP BY order_id) t5 ON t1.id = t5.order_id\nWHERE t1.status NOT IN ('Cancelled', 'Returned') AND (t3.totalAmount > 500 OR t4.commentsCount > 10)\nORDER BY t1.id, latestComment DESC;", - "outputs": [ - { - "expected": "SELECT t?.id, t?.status, t?.totalAmount, t?.commentsCount, CASE WHEN t?.latestCommentDate IS NOT ? THEN t?.latestCommentDate ELSE ? END FROM ( SELECT id, status FROM orders WHERE customer_id IN ( SELECT id FROM customers WHERE region = ? ) AND order_date > ( SELECT MAX ( order_date ) FROM orders WHERE status = ? ) ) t? JOIN ( SELECT order_id, SUM ( amount ) FROM order_details WHERE product_id IN ( SELECT id FROM products WHERE name LIKE ? ) GROUP BY order_id ) t? ON t?.id = t?.order_id LEFT JOIN ( SELECT order_id, COUNT ( * ) FROM order_comments GROUP BY order_id ) t? ON t?.id = t?.order_id LEFT JOIN ( SELECT order_id, MAX ( comment_date ) FROM order_comments WHERE comment LIKE ? GROUP BY order_id ) t? ON t?.id = t?.order_id WHERE t?.status NOT IN ( ? ) AND ( t?.totalAmount > ? OR t?.commentsCount > ? ) ORDER BY t?.id, latestComment DESC", - "statement_metadata": { - "size": 132, - "tables": ["orders", "customers", "order_details", "products", "order_comments"], - "commands": ["SELECT", "JOIN"], - "comments": ["-- Complex query joining multiple subqueries and using conditional logic"], - "procedures": [] - } - } - ] -} diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-basic.json deleted file mode 100644 index eb9025d8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status = 'Cancelled';", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascade.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascade.json deleted file mode 100644 index 2e4a3b54..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascade.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM customers WHERE region = 'North'; -- Assuming CASCADE DELETE is set up on the foreign key in the orders table", - "outputs": [ - { - "expected": "DELETE FROM customers WHERE region = ?", - "statement_metadata": { - "size": 90, - "tables": ["customers"], - "commands": ["DELETE"], - "comments": ["-- Assuming CASCADE DELETE is set up on the foreign key in the orders table"], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascading-triggers.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascading-triggers.json deleted file mode 100644 index 6ebeb031..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-cascading-triggers.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM customers WHERE id = 1; -- Assumes a trigger exists for cascading delete to orders", - "outputs": [ - { - "expected": "DELETE FROM customers WHERE id = ?", - "statement_metadata": { - "size": 73, - "tables": ["customers"], - "commands": ["DELETE"], - "comments": ["-- Assumes a trigger exists for cascading delete to orders"], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-conditional-logic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-conditional-logic.json deleted file mode 100644 index 27eb2283..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-conditional-logic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status = IF(DAYOFWEEK(CURDATE()) = 1, 'Pending', 'Completed');", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status = IF ( DAYOFWEEK ( CURDATE ( ) ) = ?, ?, ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-foreign-key-constraints.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-foreign-key-constraints.json deleted file mode 100644 index c5ab710f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-foreign-key-constraints.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE id IN (SELECT order_id FROM order_details WHERE quantity = 0);", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE id IN ( SELECT order_id FROM order_details WHERE quantity = ? )", - "statement_metadata": { - "size": 31, - "tables": ["orders", "order_details"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-free-disk-space.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-free-disk-space.json deleted file mode 100644 index b2507bb4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-free-disk-space.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE order_date < '2020-01-01'; OPTIMIZE TABLE orders;", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE order_date < ?; OPTIMIZE TABLE orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-join-multiple-conditions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-join-multiple-conditions.json deleted file mode 100644 index b6f629cd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-join-multiple-conditions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE o FROM orders o JOIN customers c ON o.customer_id = c.id WHERE o.status = 'Completed' AND c.region = 'South';", - "outputs": [ - { - "expected": "DELETE o FROM orders o JOIN customers c ON o.customer_id = c.id WHERE o.status = ? AND c.region = ?", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["DELETE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-lock-tables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-lock-tables.json deleted file mode 100644 index 84e1c59c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-lock-tables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "LOCK TABLES orders WRITE; DELETE FROM orders WHERE status = 'Failed'; UNLOCK TABLES;", - "outputs": [ - { - "expected": "LOCK TABLES orders WRITE; DELETE FROM orders WHERE status = ?; UNLOCK TABLES", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-multiple-tables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-multiple-tables.json deleted file mode 100644 index d90a73b9..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-multiple-tables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE orders, order_details FROM orders INNER JOIN order_details ON orders.id = order_details.order_id WHERE orders.status = 'Obsolete';", - "outputs": [ - { - "expected": "DELETE orders, order_details FROM orders INNER JOIN order_details ON orders.id = order_details.order_id WHERE orders.status = ?", - "statement_metadata": { - "size": 29, - "tables": ["orders", "order_details"], - "commands": ["DELETE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-optimized-conditions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-optimized-conditions.json deleted file mode 100644 index e521eb50..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-optimized-conditions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status = 'Completed' AND order_date < DATE_SUB(NOW(), INTERVAL 1 YEAR);", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status = ? AND order_date < DATE_SUB ( NOW ( ), INTERVAL ? YEAR )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-order-by-limit.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-order-by-limit.json deleted file mode 100644 index 3f054e3c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-order-by-limit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status = 'Completed' ORDER BY order_date DESC LIMIT 5;", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status = ? ORDER BY order_date DESC LIMIT ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-range-conditions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-range-conditions.json deleted file mode 100644 index 0c41e2d2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-range-conditions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE amount BETWEEN 100 AND 500;", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE amount BETWEEN ? AND ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-regular-expressions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-regular-expressions.json deleted file mode 100644 index 7fa55b7e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-regular-expressions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status REGEXP '^C.*';", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status REGEXP ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-safe-update-mode.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-safe-update-mode.json deleted file mode 100644 index 9abb2814..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-safe-update-mode.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SET SQL_SAFE_UPDATES = 0; DELETE FROM orders WHERE customer_id = 1; SET SQL_SAFE_UPDATES = 1;", - "outputs": [ - { - "expected": "SET SQL_SAFE_UPDATES = ?; DELETE FROM orders WHERE customer_id = ?; SET SQL_SAFE_UPDATES = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-subquery-optimization.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-subquery-optimization.json deleted file mode 100644 index 14944cec..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-subquery-optimization.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE id IN (SELECT id FROM orders WHERE status = 'Failed' LIMIT 10);", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE id IN ( SELECT id FROM orders WHERE status = ? LIMIT ? )", - "statement_metadata": { - "size": 18, - "tables": ["orders"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-truncate.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-truncate.json deleted file mode 100644 index 6a7053a8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-truncate.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "TRUNCATE TABLE order_details;", - "outputs": [ - { - "expected": "TRUNCATE TABLE order_details", - "statement_metadata": { - "size": 21, - "tables": ["order_details"], - "commands": ["TRUNCATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-using-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-using-subquery.json deleted file mode 100644 index 2d739ca4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-using-subquery.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE customer_id IN (SELECT id FROM customers WHERE region = 'West');", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE customer_id IN ( SELECT id FROM customers WHERE region = ? )", - "statement_metadata": { - "size": 27, - "tables": ["orders", "customers"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-join.json deleted file mode 100644 index c6def56a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE o FROM orders o JOIN customers c ON o.customer_id = c.id WHERE c.region = 'East' AND o.status = 'Pending';", - "outputs": [ - { - "expected": "DELETE o FROM orders o JOIN customers c ON o.customer_id = c.id WHERE c.region = ? AND o.status = ?", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["DELETE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-limit.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-limit.json deleted file mode 100644 index 60b99764..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-limit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE status = 'Pending' LIMIT 10;", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE status = ? LIMIT ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-user-variables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-user-variables.json deleted file mode 100644 index a0c41cc6..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/delete/delete-with-user-variables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SET @max_id = (SELECT MAX(id) FROM orders); DELETE FROM orders WHERE id = @max_id;", - "outputs": [ - { - "expected": "SET @max_id = ( SELECT MAX ( id ) FROM orders ); DELETE FROM orders WHERE id = @max_id", - "statement_metadata": { - "size": 18, - "tables": ["orders"], - "commands": ["SELECT", "DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/batch-insert-multiple-rows.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/batch-insert-multiple-rows.json deleted file mode 100644 index 6ff42c67..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/batch-insert-multiple-rows.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status) VALUES (1, 'Pending'), (2, 'Completed'), (3, 'Processing');", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status ) VALUES ( ? ), ( ? ), ( ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-auto-increment.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-auto-increment.json deleted file mode 100644 index 0c866869..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-auto-increment.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status) VALUES (3, 'Processing');", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status ) VALUES ( ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-basic.json deleted file mode 100644 index 7fce1641..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, order_date, status) VALUES (1, NOW(), 'Pending');", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, order_date, status ) VALUES ( ?, NOW ( ), ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-blob-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-blob-data.json deleted file mode 100644 index 10f1fe22..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-blob-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, document) VALUES (5, 'Pending', LOAD_FILE('/path/to/file'));", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, document ) VALUES ( ?, LOAD_FILE ( ? ) )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-enum-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-enum-data.json deleted file mode 100644 index 2297c9b8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-enum-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, order_type) VALUES (7, 'Pending', 'Express');", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, order_type ) VALUES ( ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-ignore.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-ignore.json deleted file mode 100644 index 706788ae..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-ignore.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT IGNORE INTO orders (id, customer_id, status) VALUES (1, 10, 'Cancelled');", - "outputs": [ - { - "expected": "INSERT IGNORE INTO orders ( id, customer_id, status ) VALUES ( ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-json-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-json-data.json deleted file mode 100644 index 43566686..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-json-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, details) VALUES (1, 'Pending', '{\"items\": [\"item1\", \"item2\"]}');", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, details ) VALUES ( ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-on-duplicate-key.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-on-duplicate-key.json deleted file mode 100644 index 4dc3f78b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-on-duplicate-key.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (id, customer_id, status) VALUES (100, 2, 'Pending') ON DUPLICATE KEY UPDATE status = 'Pending';", - "outputs": [ - { - "expected": "INSERT INTO orders ( id, customer_id, status ) VALUES ( ? ) ON DUPLICATE KEY UPDATE status = ?", - "statement_metadata": { - "size": 24, - "tables": ["orders", "status"], - "commands": ["INSERT", "UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-select-union.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-select-union.json deleted file mode 100644 index f9a24172..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-select-union.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status) SELECT customer_id, status FROM archived_orders UNION ALL SELECT customer_id, status FROM special_orders;", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status ) SELECT customer_id, status FROM archived_orders UNION ALL SELECT customer_id, status FROM special_orders", - "statement_metadata": { - "size": 47, - "tables": ["orders", "archived_orders", "special_orders"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-spatial-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-spatial-data.json deleted file mode 100644 index e7a245ed..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-spatial-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, location) VALUES (6, 'Delivered', ST_GeomFromText('POINT(1 1)'));", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, location ) VALUES ( ?, ST_GeomFromText ( ? ) )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-last-insert-id.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-last-insert-id.json deleted file mode 100644 index 63eaa529..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-last-insert-id.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO customers (name) VALUES ('John Doe'); INSERT INTO orders (customer_id, status) VALUES (LAST_INSERT_ID(), 'Pending');", - "outputs": [ - { - "expected": "INSERT INTO customers ( name ) VALUES ( ? ); INSERT INTO orders ( customer_id, status ) VALUES ( LAST_INSERT_ID ( ), ? )", - "statement_metadata": { - "size": 21, - "tables": ["customers", "orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-subquery.json deleted file mode 100644 index 03fbae9d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-using-subquery.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO order_audit (order_id, status) SELECT id, status FROM orders WHERE customer_id = 1;", - "outputs": [ - { - "expected": "INSERT INTO order_audit ( order_id, status ) SELECT id, status FROM orders WHERE customer_id = ?", - "statement_metadata": { - "size": 29, - "tables": ["order_audit", "orders"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-conditional-logic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-conditional-logic.json deleted file mode 100644 index 61d60872..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-conditional-logic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, amount) SELECT id, 'New', IF(region = 'West', 100, 50) FROM customers;", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, amount ) SELECT id, ?, IF ( region = ?, ?, ? ) FROM customers", - "statement_metadata": { - "size": 27, - "tables": ["orders", "customers"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-curdate-curtime.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-curdate-curtime.json deleted file mode 100644 index 1eb52dac..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-curdate-curtime.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, order_date, order_time) VALUES (15, 'Pending', CURDATE(), CURTIME());", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, order_date, order_time ) VALUES ( ?, CURDATE ( ), CURTIME ( ) )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-encryption-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-encryption-functions.json deleted file mode 100644 index 40427ead..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-encryption-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, encrypted_note) VALUES (13, 'Pending', AES_ENCRYPT('Confidential note', 'encryption_key'));", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, encrypted_note ) VALUES ( ?, AES_ENCRYPT ( ? ) )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-generated-columns.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-generated-columns.json deleted file mode 100644 index 7e6b9f55..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-generated-columns.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, total_incl_tax) VALUES (12, 'Pending', 150); -- total_incl_tax is a generated column", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, total_incl_tax ) VALUES ( ? )", - "statement_metadata": { - "size": 51, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": ["-- total_incl_tax is a generated column"], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-replace.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-replace.json deleted file mode 100644 index 651ee691..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-replace.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "REPLACE INTO orders (id, customer_id, status) VALUES (1, 9, 'Completed');", - "outputs": [ - { - "expected": "REPLACE INTO orders ( id, customer_id, status ) VALUES ( ? )", - "statement_metadata": { - "size": 6, - "tables": ["orders"], - "commands": [], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-set-syntax.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-set-syntax.json deleted file mode 100644 index 21afae77..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-set-syntax.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders SET customer_id = 8, status = 'Processing', order_date = CURDATE();", - "outputs": [ - { - "expected": "INSERT INTO orders SET customer_id = ?, status = ?, order_date = CURDATE ( )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-spatial-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-spatial-data.json deleted file mode 100644 index 4059132b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-spatial-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, location) VALUES (14, 'Pending', ST_GeomFromText('POINT(1 1)'));", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, location ) VALUES ( ?, ST_GeomFromText ( ? ) )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-timestamp.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-timestamp.json deleted file mode 100644 index e93ee978..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/insert/insert-with-timestamp.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO orders (customer_id, status, created_at) VALUES (4, 'Shipped', CURRENT_TIMESTAMP);", - "outputs": [ - { - "expected": "INSERT INTO orders ( customer_id, status, created_at ) VALUES ( ?, CURRENT_TIMESTAMP )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/complex-procedure-error-handling.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/complex-procedure-error-handling.json deleted file mode 100644 index 7137fbbf..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/complex-procedure-error-handling.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE PROCEDURE UpdateOrderStatus(IN orderId INT, IN newStatus VARCHAR(20)) BEGIN\n DECLARE EXIT HANDLER FOR SQLEXCEPTION\n BEGIN\n -- Handle error\n ROLLBACK;\n END;\n START TRANSACTION;\n UPDATE orders SET status = newStatus WHERE id = orderId;\n IF ROW_COUNT() = 0 THEN\n SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'No rows updated';\n END IF;\n COMMIT;\n END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE UpdateOrderStatus ( IN orderId INT, IN newStatus VARCHAR ( ? ) ) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN ROLLBACK; END; START TRANSACTION; UPDATE orders SET status = newStatus WHERE id = orderId; IF ROW_COUNT ( ) = ? THEN SIGNAL SQLSTATE ? SET MESSAGE_TEXT = ?; END IF; COMMIT; END", - "statement_metadata": { - "size": 61, - "tables": ["orders"], - "commands": ["CREATE", "BEGIN", "UPDATE", "COMMIT"], - "comments": ["-- Handle error"], - "procedures": ["UpdateOrderStatus"] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-basic.json deleted file mode 100644 index e8487b6b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-basic.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "CREATE PROCEDURE GetAllOrders() BEGIN SELECT * FROM orders; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE GetAllOrders ( ) BEGIN SELECT * FROM orders; END", - "statement_metadata": { - "size": 35, - "tables": ["orders"], - "commands": ["CREATE", "BEGIN", "SELECT"], - "comments": [], - "procedures": ["GetAllOrders"] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-conditional-logic-loop.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-conditional-logic-loop.json deleted file mode 100644 index cb2b88ef..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-conditional-logic-loop.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "CREATE PROCEDURE ProcessOrders() BEGIN\n DECLARE done INT DEFAULT 0;\n DECLARE a INT;\n DECLARE cur1 CURSOR FOR SELECT id FROM orders WHERE status = 'Pending';\n DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;\n OPEN cur1;\n read_loop: LOOP\n FETCH cur1 INTO a;\n IF done THEN\n LEAVE read_loop;\n END IF;\n UPDATE orders SET status = 'Processing' WHERE id = a;\n END LOOP;\n CLOSE cur1;\n END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE ProcessOrders ( ) BEGIN DECLARE done INT DEFAULT ?; DECLARE a INT; DECLARE cur? CURSOR FOR SELECT id FROM orders WHERE status = ?; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = ?; OPEN cur?; read_loop : LOOP FETCH cur? INTO a; IF done THEN LEAVE read_loop; END IF; UPDATE orders SET status = ? WHERE id = a; END LOOP; CLOSE cur?; END", - "statement_metadata": { - "size": 43, - "tables": ["orders", "a"], - "commands": ["CREATE", "BEGIN", "SELECT", "UPDATE"], - "comments": [], - "procedures": ["ProcessOrders"] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-cursor.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-cursor.json deleted file mode 100644 index d0e3462b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-cursor.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE PROCEDURE FetchOrders() BEGIN DECLARE done INT DEFAULT FALSE; DECLARE cur CURSOR FOR SELECT id FROM orders; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; OPEN cur; read_loop: LOOP FETCH cur INTO order_id; IF done THEN LEAVE read_loop; END IF; /* process each order */ END LOOP; CLOSE cur; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE FetchOrders ( ) BEGIN DECLARE done INT DEFAULT ?; DECLARE cur CURSOR FOR SELECT id FROM orders; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = ?; OPEN cur; read_loop : LOOP FETCH cur INTO order_id; IF done THEN LEAVE read_loop; END IF; END LOOP; CLOSE cur; END", - "statement_metadata": { - "size": 66, - "tables": ["orders", "order_id"], - "commands": ["CREATE", "BEGIN", "SELECT"], - "comments": ["/* process each order */"], - "procedures": ["FetchOrders"] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-dynamic-sql.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-dynamic-sql.json deleted file mode 100644 index 42128dc7..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-dynamic-sql.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE PROCEDURE DynamicQuery(IN tbl_name VARCHAR(50)) BEGIN SET @s = CONCAT('SELECT * FROM ', tbl_name); PREPARE stmt FROM @s; EXECUTE stmt; DEALLOCATE PREPARE stmt; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE DynamicQuery ( IN tbl_name VARCHAR ( ? ) ) BEGIN SET @s = CONCAT ( ?, tbl_name ); PREPARE stmt FROM @s; EXECUTE stmt; DEALLOCATE PREPARE stmt; END", - "statement_metadata": { - "size": 30, - "tables": [], - "commands": ["CREATE", "BEGIN", "EXECUTE"], - "comments": [], - "procedures": ["DynamicQuery"] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-error-handling.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-error-handling.json deleted file mode 100644 index 82fdd16b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-error-handling.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE PROCEDURE SafeUpdate(IN order_id INT, IN new_status VARCHAR(50)) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN -- handle error\n SET @error = 'An error occurred'; END; UPDATE orders SET status = new_status WHERE id = order_id; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE SafeUpdate ( IN order_id INT, IN new_status VARCHAR ( ? ) ) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SET @error = ?; END; UPDATE orders SET status = new_status WHERE id = order_id; END", - "statement_metadata": { - "size": 48, - "tables": ["orders"], - "commands": ["CREATE", "BEGIN", "UPDATE"], - "comments": ["-- handle error"], - "procedures": ["SafeUpdate"] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-input-output-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-input-output-parameters.json deleted file mode 100644 index 26711350..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-input-output-parameters.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE PROCEDURE GetTotalOrders(OUT total INT) BEGIN SELECT COUNT(*) INTO total FROM orders; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE GetTotalOrders ( OUT total INT ) BEGIN SELECT COUNT ( * ) INTO total FROM orders; END", - "statement_metadata": { - "size": 42, - "tables": ["total", "orders"], - "commands": ["CREATE", "BEGIN", "SELECT"], - "comments": [], - "procedures": ["GetTotalOrders"] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-loop-control.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-loop-control.json deleted file mode 100644 index fc8f688d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-loop-control.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "CREATE PROCEDURE ProcessOrders() BEGIN DECLARE done INT DEFAULT FALSE; DECLARE cur CURSOR FOR SELECT id FROM orders; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; OPEN cur; read_loop: LOOP FETCH cur INTO order_id; IF done THEN LEAVE read_loop; END IF; UPDATE orders SET status = 'Processed' WHERE id = order_id; END LOOP; CLOSE cur; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE ProcessOrders ( ) BEGIN DECLARE done INT DEFAULT ?; DECLARE cur CURSOR FOR SELECT id FROM orders; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = ?; OPEN cur; read_loop : LOOP FETCH cur INTO order_id; IF done THEN LEAVE read_loop; END IF; UPDATE orders SET status = ? WHERE id = order_id; END LOOP; CLOSE cur; END", - "statement_metadata": { - "size": 50, - "tables": ["orders", "order_id"], - "commands": ["CREATE", "BEGIN", "SELECT", "UPDATE"], - "comments": [], - "procedures": ["ProcessOrders"] - } - } - ] -} diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-parameters.json deleted file mode 100644 index fc98aa4f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-parameters.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "CREATE PROCEDURE GetOrdersByStatus(IN status VARCHAR(20)) BEGIN SELECT * FROM orders WHERE orders.status = status; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE GetOrdersByStatus ( IN status VARCHAR ( ? ) ) BEGIN SELECT * FROM orders WHERE orders.status = status; END", - "statement_metadata": { - "size": 40, - "tables": ["orders"], - "commands": ["CREATE", "BEGIN", "SELECT"], - "comments": [], - "procedures": ["GetOrdersByStatus"] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-transaction-management.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-transaction-management.json deleted file mode 100644 index 75aace98..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/procedure/stored-procedure-transaction-management.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "CREATE PROCEDURE UpdateOrderTransaction(IN order_id INT, IN new_status VARCHAR(50)) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN ROLLBACK; END; START TRANSACTION; UPDATE orders SET status = new_status WHERE id = order_id; COMMIT; END;", - "outputs": [ - { - "expected": "CREATE PROCEDURE UpdateOrderTransaction ( IN order_id INT, IN new_status VARCHAR ( ? ) ) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN ROLLBACK; END; START TRANSACTION; UPDATE orders SET status = new_status WHERE id = order_id; COMMIT; END", - "statement_metadata": { - "size": 51, - "tables": ["orders"], - "commands": ["CREATE", "BEGIN", "UPDATE", "COMMIT"], - "comments": [], - "procedures": ["UpdateOrderTransaction"] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/bit-data-type.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/bit-data-type.json deleted file mode 100644 index c39da7ed..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/bit-data-type.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, status, (is_paid & 1) AS isPaidFlag FROM orders;", - "outputs": [ - { - "expected": "SELECT id, status, ( is_paid & ? ) FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/blob-text-data-types.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/blob-text-data-types.json deleted file mode 100644 index d80018d4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/blob-text-data-types.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, SUBSTRING(order_notes, 1, 100) AS short_notes FROM orders WHERE LENGTH(document_blob) > 1024;", - "outputs": [ - { - "expected": "SELECT id, SUBSTRING ( order_notes, ?, ? ) FROM orders WHERE LENGTH ( document_blob ) > ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/decimal-data-type.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/decimal-data-type.json deleted file mode 100644 index e3b65579..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/decimal-data-type.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, ROUND(total_amount, 2) AS rounded_total FROM orders;", - "outputs": [ - { - "expected": "SELECT id, ROUND ( total_amount, ? ) FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/enum-set-data-types.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/enum-set-data-types.json deleted file mode 100644 index cfccc93b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/enum-set-data-types.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, order_type, status_flags FROM order_details WHERE order_type = 'Standard' AND FIND_IN_SET('urgent', status_flags);", - "outputs": [ - { - "expected": "SELECT id, order_type, status_flags FROM order_details WHERE order_type = ? AND FIND_IN_SET ( ?, status_flags )", - "statement_metadata": { - "size": 19, - "tables": ["order_details"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/full-text-search-innodb.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/full-text-search-innodb.json deleted file mode 100644 index 1374d833..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/full-text-search-innodb.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE FULLTEXT INDEX ft_index ON orders (description); SELECT * FROM orders WHERE MATCH(description) AGAINST ('+delivery -return' IN BOOLEAN MODE);", - "outputs": [ - { - "expected": "CREATE FULLTEXT INDEX ft_index ON orders ( description ); SELECT * FROM orders WHERE MATCH ( description ) AGAINST ( ? IN BOOLEAN MODE )", - "statement_metadata": { - "size": 18, - "tables": ["orders"], - "commands": ["CREATE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-aggregate-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-aggregate-functions.json deleted file mode 100644 index a8880b7d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-aggregate-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT customer_id, COUNT(*) AS total_orders FROM orders GROUP BY customer_id HAVING COUNT(*) > 5;", - "outputs": [ - { - "expected": "SELECT customer_id, COUNT ( * ) FROM orders GROUP BY customer_id HAVING COUNT ( * ) > ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-basic.json deleted file mode 100644 index be6c6062..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, customer_id, order_date, status FROM orders WHERE status = 'Pending';", - "outputs": [ - { - "expected": "SELECT id, customer_id, order_date, status FROM orders WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-case-statement.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-case-statement.json deleted file mode 100644 index 68202df4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-case-statement.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, CASE WHEN status = 'Pending' THEN 'P' WHEN status = 'Completed' THEN 'C' ELSE 'Other' END AS status_code FROM orders;", - "outputs": [ - { - "expected": "SELECT id, CASE WHEN status = ? THEN ? WHEN status = ? THEN ? ELSE ? END FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-coalesce-function.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-coalesce-function.json deleted file mode 100644 index d6dc561d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-coalesce-function.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, COALESCE(comments, 'No comments') AS order_comments FROM orders;", - "outputs": [ - { - "expected": "SELECT id, COALESCE ( comments, ? ) FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-conditional-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-conditional-case.json deleted file mode 100644 index 68202df4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-conditional-case.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, CASE WHEN status = 'Pending' THEN 'P' WHEN status = 'Completed' THEN 'C' ELSE 'Other' END AS status_code FROM orders;", - "outputs": [ - { - "expected": "SELECT id, CASE WHEN status = ? THEN ? WHEN status = ? THEN ? ELSE ? END FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-date-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-date-functions.json deleted file mode 100644 index 482f9a26..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-date-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, YEAR(order_date) AS order_year FROM orders WHERE MONTH(order_date) = 1;", - "outputs": [ - { - "expected": "SELECT id, YEAR ( order_date ) FROM orders WHERE MONTH ( order_date ) = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-distinct.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-distinct.json deleted file mode 100644 index 6552154c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-distinct.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT DISTINCT status FROM orders;", - "outputs": [ - { - "expected": "SELECT DISTINCT status FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-full-text-search.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-full-text-search.json deleted file mode 100644 index c5dfd177..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-full-text-search.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, MATCH (description) AGAINST ('+shipping -delayed' IN BOOLEAN MODE) AS score FROM orders WHERE MATCH (description) AGAINST ('+shipping -delayed' IN BOOLEAN MODE) > 0;", - "outputs": [ - { - "expected": "SELECT id, MATCH ( description ) AGAINST ( ? IN BOOLEAN MODE ) FROM orders WHERE MATCH ( description ) AGAINST ( ? IN BOOLEAN MODE ) > ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-geospatial-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-geospatial-data.json deleted file mode 100644 index cb807f36..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-geospatial-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, ST_AsText(location) AS location FROM orders WHERE ST_Distance_Sphere(location, ST_GeomFromText('POINT(10 20)')) < 10000;", - "outputs": [ - { - "expected": "SELECT id, ST_AsText ( location ) FROM orders WHERE ST_Distance_Sphere ( location, ST_GeomFromText ( ? ) ) < ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-group-concat.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-group-concat.json deleted file mode 100644 index 50c4d103..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-group-concat.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT customer_id, GROUP_CONCAT(status ORDER BY order_date DESC SEPARATOR ', ') AS order_statuses FROM orders GROUP BY customer_id;", - "outputs": [ - { - "expected": "SELECT customer_id, GROUP_CONCAT ( status ORDER BY order_date DESC SEPARATOR ? ) FROM orders GROUP BY customer_id", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join-aliases.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join-aliases.json deleted file mode 100644 index 54f27bf1..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join-aliases.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT o.id, c.name AS customer_name, o.status FROM orders o LEFT JOIN customers c ON o.customer_id = c.id;", - "outputs": [ - { - "expected": "SELECT o.id, c.name, o.status FROM orders o LEFT JOIN customers c ON o.customer_id = c.id", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join.json deleted file mode 100644 index 5aa1860f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT o.id, c.name, o.status FROM orders o JOIN customers c ON o.customer_id = c.id WHERE o.status = 'Completed';", - "outputs": [ - { - "expected": "SELECT o.id, c.name, o.status FROM orders o JOIN customers c ON o.customer_id = c.id WHERE o.status = ?", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-json-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-json-functions.json deleted file mode 100644 index 1e550315..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-json-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, JSON_EXTRACT(order_details, '$.items[0].name') AS first_item_name FROM orders WHERE JSON_CONTAINS(order_details, '\"Active\"', '$.status');", - "outputs": [ - { - "expected": "SELECT id, JSON_EXTRACT ( order_details, ? ) FROM orders WHERE JSON_CONTAINS ( order_details, ?, ? )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-limit-offset.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-limit-offset.json deleted file mode 100644 index d7af084b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-limit-offset.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * FROM orders ORDER BY order_date DESC LIMIT 10 OFFSET 5;", - "outputs": [ - { - "expected": "SELECT * FROM orders ORDER BY order_date DESC LIMIT ? OFFSET ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-lock-in-share-mode.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-lock-in-share-mode.json deleted file mode 100644 index 703bf310..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-lock-in-share-mode.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * FROM orders WHERE status = 'Pending' LOCK IN SHARE MODE;", - "outputs": [ - { - "expected": "SELECT * FROM orders WHERE status = ? LOCK IN SHARE MODE", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-natural-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-natural-join.json deleted file mode 100644 index 9e526391..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-natural-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * FROM orders NATURAL JOIN customers;", - "outputs": [ - { - "expected": "SELECT * FROM orders NATURAL JOIN customers", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-parameter-binding.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-parameter-binding.json deleted file mode 100644 index 4db2716b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-parameter-binding.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, status FROM orders WHERE customer_id = ?;", - "outputs": [ - { - "expected": "SELECT id, status FROM orders WHERE customer_id = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-regex.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-regex.json deleted file mode 100644 index 969c50c6..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-regex.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, customer_id FROM orders WHERE status REGEXP '^Comp.*';", - "outputs": [ - { - "expected": "SELECT id, customer_id FROM orders WHERE status REGEXP ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-straight-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-straight-join.json deleted file mode 100644 index eba10c9f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-straight-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT * FROM orders STRAIGHT_JOIN customers ON orders.customer_id = customers.id;", - "outputs": [ - { - "expected": "SELECT * FROM orders STRAIGHT_JOIN customers ON orders.customer_id = customers.id", - "statement_metadata": { - "size": 34, - "tables": ["orders", "customers"], - "commands": ["SELECT", "STRAIGHT_JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-string-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-string-functions.json deleted file mode 100644 index 6e3f96c1..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-string-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, UPPER(status) AS status_upper FROM orders;", - "outputs": [ - { - "expected": "SELECT id, UPPER ( status ) FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-subquery.json deleted file mode 100644 index 29290726..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-subquery.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, (SELECT name FROM customers WHERE id = orders.customer_id) AS customer_name FROM orders;", - "outputs": [ - { - "expected": "SELECT id, ( SELECT name FROM customers WHERE id = orders.customer_id ) FROM orders", - "statement_metadata": { - "size": 21, - "tables": ["customers", "orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-user-defined-variables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-user-defined-variables.json deleted file mode 100644 index 2593abf9..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-user-defined-variables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SET @orderRank := 0; SELECT @orderRank := @orderRank + 1 AS rank, id, status FROM orders ORDER BY id;", - "outputs": [ - { - "expected": "SET @orderRank := ?; SELECT @orderRank := @orderRank + ?, id, status FROM orders ORDER BY id", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-variable-assignment.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-variable-assignment.json deleted file mode 100644 index 44f417c3..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-variable-assignment.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT @orderCount := COUNT(*) FROM orders WHERE status = 'Completed';", - "outputs": [ - { - "expected": "SELECT @orderCount := COUNT ( * ) FROM orders WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-window-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-window-functions.json deleted file mode 100644 index 981fa153..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/select-window-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, status, RANK() OVER (PARTITION BY customer_id ORDER BY order_date DESC) AS rank FROM orders;", - "outputs": [ - { - "expected": "SELECT id, status, RANK ( ) OVER ( PARTITION BY customer_id ORDER BY order_date DESC ) FROM orders", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-data-types-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-data-types-functions.json deleted file mode 100644 index cb807f36..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-data-types-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, ST_AsText(location) AS location FROM orders WHERE ST_Distance_Sphere(location, ST_GeomFromText('POINT(10 20)')) < 10000;", - "outputs": [ - { - "expected": "SELECT id, ST_AsText ( location ) FROM orders WHERE ST_Distance_Sphere ( location, ST_GeomFromText ( ? ) ) < ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-geometry-data-types.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-geometry-data-types.json deleted file mode 100644 index 75160756..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/spatial-geometry-data-types.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, ST_AsText(location) FROM orders WHERE ST_Distance(location, ST_GeomFromText('POINT(1 1)')) < 100;", - "outputs": [ - { - "expected": "SELECT id, ST_AsText ( location ) FROM orders WHERE ST_Distance ( location, ST_GeomFromText ( ? ) ) < ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/system-versioned-tables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/system-versioned-tables.json deleted file mode 100644 index ee383187..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/system-versioned-tables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE TABLE orders_with_history (id INT, status VARCHAR(20)) WITH SYSTEM VERSIONING;", - "outputs": [ - { - "expected": "CREATE TABLE orders_with_history ( id INT, status VARCHAR ( ? ) ) WITH SYSTEM VERSIONING", - "statement_metadata": { - "size": 25, - "tables": ["orders_with_history"], - "commands": ["CREATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/using-temporary-tables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/using-temporary-tables.json deleted file mode 100644 index dd436566..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/using-temporary-tables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE TEMPORARY TABLE temp_orders SELECT * FROM orders; SELECT * FROM temp_orders WHERE status = 'Pending'; DROP TEMPORARY TABLE temp_orders;", - "outputs": [ - { - "expected": "CREATE TEMPORARY TABLE temp_orders SELECT * FROM orders; SELECT * FROM temp_orders WHERE status = ?; DROP TEMPORARY TABLE temp_orders", - "statement_metadata": { - "size": 33, - "tables": ["temp_orders", "orders"], - "commands": ["CREATE", "SELECT", "DROP"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/virtual-generated-columns.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/virtual-generated-columns.json deleted file mode 100644 index a03d91de..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/select/virtual-generated-columns.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE TABLE orders_with_virtual (id INT, amount DECIMAL(10, 2), total_incl_tax DECIMAL(10, 2) GENERATED ALWAYS AS (amount * 1.1) STORED);", - "outputs": [ - { - "expected": "CREATE TABLE orders_with_virtual ( id INT, amount DECIMAL ( ? ), total_incl_tax DECIMAL ( ? ) GENERATED ALWAYS AS ( amount * ? ) STORED )", - "statement_metadata": { - "size": 25, - "tables": ["orders_with_virtual"], - "commands": ["CREATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/bulk-update-multiple-conditions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/bulk-update-multiple-conditions.json deleted file mode 100644 index 2e236f7a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/bulk-update-multiple-conditions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = IF(amount > 1000, 'High Value', 'Regular'), order_date = IF(status = 'Pending', CURDATE(), order_date);", - "outputs": [ - { - "expected": "UPDATE orders SET status = IF ( amount > ?, ?, ? ), order_date = IF ( status = ?, CURDATE ( ), order_date )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/conditional-update-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/conditional-update-case.json deleted file mode 100644 index 38bfb7a0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/conditional-update-case.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = CASE WHEN amount > 100 THEN 'High Value' ELSE 'Regular' END;", - "outputs": [ - { - "expected": "UPDATE orders SET status = CASE WHEN amount > ? THEN ? ELSE ? END", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-basic.json deleted file mode 100644 index 480f7a79..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-basic.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Completed' WHERE status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-case-aggregate-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-case-aggregate-functions.json deleted file mode 100644 index adf83e96..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-case-aggregate-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders o SET o.status = CASE WHEN avg_amount > 500 THEN 'High' ELSE 'Low' END FROM (SELECT customer_id, AVG(amount) as avg_amount FROM orders GROUP BY customer_id) a WHERE o.customer_id = a.customer_id;", - "outputs": [ - { - "expected": "UPDATE orders o SET o.status = CASE WHEN avg_amount > ? THEN ? ELSE ? END FROM ( SELECT customer_id, AVG ( amount ) FROM orders GROUP BY customer_id ) a WHERE o.customer_id = a.customer_id", - "statement_metadata": { - "size": 18, - "tables": ["orders"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-date-time-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-date-time-functions.json deleted file mode 100644 index 3155a4aa..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-date-time-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET order_date = CURDATE(), order_time = CURTIME() WHERE status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE orders SET order_date = CURDATE ( ), order_time = CURTIME ( ) WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-encryption-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-encryption-functions.json deleted file mode 100644 index 06ebd690..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-encryption-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET encrypted_note = AES_ENCRYPT('Confidential', 'key') WHERE id = 1;", - "outputs": [ - { - "expected": "UPDATE orders SET encrypted_note = AES_ENCRYPT ( ? ) WHERE id = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-enum-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-enum-data.json deleted file mode 100644 index bd645304..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-enum-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET order_type = 'Standard' WHERE order_type = 'Express';", - "outputs": [ - { - "expected": "UPDATE orders SET order_type = ? WHERE order_type = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-functions.json deleted file mode 100644 index d28de61b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET details = JSON_SET(details, '$.shippingMethod', 'Express') WHERE id = 1;", - "outputs": [ - { - "expected": "UPDATE orders SET details = JSON_SET ( details, ?, ? ) WHERE id = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-modify.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-modify.json deleted file mode 100644 index 56cb60e0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-json-modify.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET details = JSON_SET(details, '$.status', 'Updated') WHERE JSON_EXTRACT(details, '$.priority') = 'High';", - "outputs": [ - { - "expected": "UPDATE orders SET details = JSON_SET ( details, ?, ? ) WHERE JSON_EXTRACT ( details, ? ) = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-lock-tables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-lock-tables.json deleted file mode 100644 index 1aa721bc..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-lock-tables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "LOCK TABLES orders WRITE; UPDATE orders SET status = 'Cancelled' WHERE status = 'Pending'; UNLOCK TABLES;", - "outputs": [ - { - "expected": "LOCK TABLES orders WRITE; UPDATE orders SET status = ? WHERE status = ?; UNLOCK TABLES", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-math-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-math-functions.json deleted file mode 100644 index c5fe1b53..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-math-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET amount = amount * 1.1 WHERE status = 'Completed';", - "outputs": [ - { - "expected": "UPDATE orders SET amount = amount * ? WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-optimizing-conditions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-optimizing-conditions.json deleted file mode 100644 index 56f3924b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-optimizing-conditions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Archived' WHERE status = 'Completed' AND order_date < DATE_SUB(NOW(), INTERVAL 1 YEAR);", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE status = ? AND order_date < DATE_SUB ( NOW ( ), INTERVAL ? YEAR )", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-order-by-limit.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-order-by-limit.json deleted file mode 100644 index 28f2fa3a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-order-by-limit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Cancelled' WHERE status = 'Pending' ORDER BY order_date ASC LIMIT 10;", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE status = ? ORDER BY order_date ASC LIMIT ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-regular-expressions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-regular-expressions.json deleted file mode 100644 index 2863fb28..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-regular-expressions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Query' WHERE status REGEXP '^Q.*';", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE status REGEXP ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-spatial-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-spatial-data.json deleted file mode 100644 index e93dd7b3..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-spatial-data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET location = ST_GeomFromText('POINT(1 1)') WHERE id = 1;", - "outputs": [ - { - "expected": "UPDATE orders SET location = ST_GeomFromText ( ? ) WHERE id = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-string-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-string-functions.json deleted file mode 100644 index 6a219694..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-string-functions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = CONCAT(status, ' - Updated') WHERE id = 1;", - "outputs": [ - { - "expected": "UPDATE orders SET status = CONCAT ( status, ? ) WHERE id = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-user-defined-variables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-user-defined-variables.json deleted file mode 100644 index b204f0ca..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-user-defined-variables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SET @new_status = 'Delayed'; UPDATE orders SET status = @new_status WHERE status = 'Pending';", - "outputs": [ - { - "expected": "SET @new_status = ?; UPDATE orders SET status = @new_status WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-using-variables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-using-variables.json deleted file mode 100644 index e79e587f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-using-variables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SET @new_status = 'Shipped'; UPDATE orders SET status = @new_status WHERE status = 'Processing';", - "outputs": [ - { - "expected": "SET @new_status = ?; UPDATE orders SET status = @new_status WHERE status = ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-join.json deleted file mode 100644 index 81da8f15..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-join.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders o JOIN customers c ON o.customer_id = c.id SET o.status = 'Processing' WHERE c.region = 'East';", - "outputs": [ - { - "expected": "UPDATE orders o JOIN customers c ON o.customer_id = c.id SET o.status = ? WHERE c.region = ?", - "statement_metadata": { - "size": 25, - "tables": ["orders", "customers"], - "commands": ["UPDATE", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-subquery.json deleted file mode 100644 index 9cdd8707..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/mysql/update/update-with-subquery.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "UPDATE orders SET status = 'Archived' WHERE id IN (SELECT id FROM orders WHERE order_date < '2020-01-01');", - "outputs": [ - { - "expected": "UPDATE orders SET status = ? WHERE id IN ( SELECT id FROM orders WHERE order_date < ? )", - "statement_metadata": { - "size": 18, - "tables": ["orders"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/bulk-operations.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/bulk-operations.json deleted file mode 100644 index ea1e6291..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/bulk-operations.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "DECLARE TYPE EmpTabTyp IS TABLE OF employees%ROWTYPE INDEX BY PLS_INTEGER; emp_tab EmpTabTyp; BEGIN SELECT * BULK COLLECT INTO emp_tab FROM employees; FORALL i IN emp_tab.FIRST .. emp_tab.LAST SAVE EXCEPTIONS UPDATE employees SET test = test * 1.05 WHERE employee_id = emp_tab(i).employee_id; END;", - "outputs": [ - { - "expected": "DECLARE TYPE EmpTabTyp IS TABLE OF employees % ROWTYPE INDEX BY PLS_INTEGER; emp_tab EmpTabTyp; BEGIN SELECT * BULK COLLECT INTO emp_tab FROM employees; FORALL i IN emp_tab.FIRST . . emp_tab.LAST SAVE EXCEPTIONS UPDATE employees SET test = test * ? WHERE employee_id = emp_tab(i) . employee_id; END;", - "statement_metadata": { - "size": 33, - "tables": ["emp_tab", "employees"], - "commands": ["BEGIN", "SELECT", "UPDATE"], - "comments": [], - "procedures": [] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-multi-table-delete.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-multi-table-delete.json deleted file mode 100644 index 234ce92e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-multi-table-delete.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders o WHERE o.customer_id IN (SELECT c.id FROM customers c WHERE NOT EXISTS (SELECT 1 FROM customer_orders co WHERE co.customer_id = c.id AND co.order_date > SYSDATE - 365)) AND EXISTS (SELECT 1 FROM order_items oi WHERE oi.order_id = o.id AND oi.product_id IN (SELECT p.id FROM products p WHERE p.category = 'Obsolete'));", - "outputs": [ - { - "expected": "DELETE FROM orders o WHERE o.customer_id IN ( SELECT c.id FROM customers c WHERE NOT EXISTS ( SELECT ? FROM customer_orders co WHERE co.customer_id = c.id AND co.order_date > SYSDATE - ? ) ) AND EXISTS ( SELECT ? FROM order_items oi WHERE oi.order_id = o.id AND oi.product_id IN ( SELECT p.id FROM products p WHERE p.category = ? ) )", - "statement_metadata": { - "size": 61, - "tables": ["orders", "customers", "customer_orders", "order_items", "products"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-nested-subqueries.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-nested-subqueries.json deleted file mode 100644 index 8ef8b456..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-nested-subqueries.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT e.employee_id, (SELECT MAX(s.yoe) FROM employees s WHERE s.department_id = e.department_id) AS max_dept_yoe FROM employees e WHERE EXISTS (SELECT 1 FROM departments d WHERE d.id = e.department_id AND d.budget > (SELECT AVG(budget) FROM departments)) ORDER BY e.department_id, e.employee_id;", - "outputs": [ - { - "expected": "SELECT e.employee_id, ( SELECT MAX ( s.yoe ) FROM employees s WHERE s.department_id = e.department_id ) FROM employees e WHERE EXISTS ( SELECT ? FROM departments d WHERE d.id = e.department_id AND d.budget > ( SELECT AVG ( budget ) FROM departments ) ) ORDER BY e.department_id, e.employee_id", - "statement_metadata": { - "size": 26, - "tables": ["employees", "departments"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-select-aggregates-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-select-aggregates-joins.json deleted file mode 100644 index c3375c00..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/complex-select-aggregates-joins.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT u.id, u.name, COUNT(o.id) AS order_count, AVG(o.total) AS average_order FROM users u JOIN orders o ON u.id = o.user_id WHERE u.status = 'active' GROUP BY u.id, u.name HAVING COUNT(o.id) > 5;", - "outputs": [ - { - "expected": "SELECT u.id, u.name, COUNT ( o.id ), AVG ( o.total ) FROM users u JOIN orders o ON u.id = o.user_id WHERE u.status = ? GROUP BY u.id, u.name HAVING COUNT ( o.id ) > ?", - "statement_metadata": { - "size": 21, - "tables": ["users", "orders"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT u.id, u.name, COUNT(o.id), AVG(o.total) FROM users u JOIN orders o ON u.id = o.user_id WHERE u.status = ? GROUP BY u.id, u.name HAVING COUNT(o.id) > ?;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-oracle-query.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-oracle-query.json deleted file mode 100644 index 3c178aa4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-oracle-query.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "WITH RECURSIVE sales_cte (product_id, total_sales, sales_rank) AS (SELECT product_id, SUM(amount), RANK() OVER (ORDER BY SUM(amount) DESC) FROM sales GROUP BY product_id UNION ALL SELECT s.product_id, s.total_sales, s.sales_rank FROM sales s JOIN sales_cte sc ON s.product_id = sc.product_id WHERE s.amount > 1000), complex_view AS (SELECT e.employee_id, e.department_id, e.test_amt, AVG(e.test_amt) OVER (PARTITION BY e.department_id) AS avg_dept_test_amt, d.department_name, d.manager_id, (SELECT MAX(p.price) FROM products p WHERE p.department_id = e.department_id) AS max_product_price FROM employees e JOIN departments d ON e.department_id = d.id WHERE e.hire_date > SYSDATE - INTERVAL '10' YEAR) SELECT cv.*, sc.total_sales, sc.sales_rank FROM complex_view cv LEFT JOIN sales_cte sc ON cv.department_id = sc.product_id WHERE cv.avg_dept_test_amt > (SELECT AVG(total_sal) FROM (SELECT department_id, SUM(test_amt) AS total_sal FROM employees GROUP BY department_id)) AND EXISTS (SELECT 1 FROM customer_orders co WHERE co.employee_id = cv.employee_id AND co.order_status = 'Completed') ORDER BY cv.department_id, cv.test_amt DESC;", - "outputs": [ - { - "expected": "WITH RECURSIVE sales_cte ( product_id, total_sales, sales_rank ) AS ( SELECT product_id, SUM ( amount ), RANK ( ) OVER ( ORDER BY SUM ( amount ) DESC ) FROM sales GROUP BY product_id UNION ALL SELECT s.product_id, s.total_sales, s.sales_rank FROM sales s JOIN sales_cte sc ON s.product_id = sc.product_id WHERE s.amount > ? ), complex_view AS ( SELECT e.employee_id, e.department_id, e.test_amt, AVG ( e.test_amt ) OVER ( PARTITION BY e.department_id ), d.department_name, d.manager_id, ( SELECT MAX ( p.price ) FROM products p WHERE p.department_id = e.department_id ) FROM employees e JOIN departments d ON e.department_id = d.id WHERE e.hire_date > SYSDATE - INTERVAL ? YEAR ) SELECT cv. *, sc.total_sales, sc.sales_rank FROM complex_view cv LEFT JOIN sales_cte sc ON cv.department_id = sc.product_id WHERE cv.avg_dept_test_amt > ( SELECT AVG ( total_sal ) FROM ( SELECT department_id, SUM ( test_amt ) FROM employees GROUP BY department_id ) ) AND EXISTS ( SELECT ? FROM customer_orders co WHERE co.employee_id = cv.employee_id AND co.order_status = ? ) ORDER BY cv.department_id, cv.test_amt DESC", - "statement_metadata": { - "size": 79, - "tables": ["sales", "sales_cte", "products", "employees", "departments", "complex_view", "customer_orders"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-stored-procedure.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-stored-procedure.json deleted file mode 100644 index 7a4f29f4..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/extremely-complex-stored-procedure.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "CREATE OR REPLACE PROCEDURE /* test comments \n\tsecond line \n*/ complex_data_audit AS CURSOR emp_cursor IS SELECT employee_id FROM employees; /* another comment */ v_employee_id employees.employee_id%TYPE; BEGIN FOR emp_record IN emp_cursor LOOP v_employee_id := emp_record.employee_id; INSERT INTO audit_log (message) VALUES ('Auditing employee with ID: ' || v_employee_id); FOR c IN (SELECT * FROM customer_orders WHERE employee_id = v_employee_id) LOOP IF c.order_status = 'Pending' THEN UPDATE customer_orders SET order_status = 'Under Review' WHERE order_id = c.order_id; ELSE INSERT INTO audit_log (message) VALUES ('Order ' || c.order_id || ' already processed'); END IF; END LOOP; END LOOP; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(-20002, 'Error in complex_data_audit'); END complex_data_audit;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PROCEDURE complex_data_audit emp_cursor IS SELECT employee_id FROM employees; v_employee_id employees.employee_id % TYPE; BEGIN FOR emp_record IN emp_cursor LOOP v_employee_id := emp_record.employee_id; INSERT INTO audit_log ( message ) VALUES ( ? || v_employee_id ); FOR c IN ( SELECT * FROM customer_orders WHERE employee_id = v_employee_id ) LOOP IF c.order_status = ? THEN UPDATE customer_orders SET order_status = ? WHERE order_id = c.order_id; ELSE INSERT INTO audit_log ( message ) VALUES ( ? || c.order_id || ? ); END IF; END LOOP; END LOOP; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR ( ? ); END complex_data_audit", - "statement_metadata": { - "size": 135, - "tables": ["employees", "audit_log", "customer_orders"], - "commands": ["CREATE", "SELECT", "BEGIN", "INSERT", "UPDATE"], - "comments": ["/* test comments \n\tsecond line \n*/", "/* another comment */"], - "procedures": ["complex_data_audit"] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/plsql-blocks.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/plsql-blocks.json deleted file mode 100644 index 9e098025..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/plsql-blocks.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DECLARE x NUMBER; BEGIN SELECT COUNT(*) INTO x FROM employees; DBMS_OUTPUT.PUT_LINE('Count: ' || x); END;", - "outputs": [ - { - "expected": "DECLARE x NUMBER; BEGIN SELECT COUNT ( * ) INTO x FROM employees; DBMS_OUTPUT.PUT_LINE ( ? || x ); END", - "statement_metadata": { - "size": 21, - "tables": ["x", "employees"], - "commands": ["BEGIN", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/super-complex-oracle-query.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/super-complex-oracle-query.json deleted file mode 100644 index c1564cce..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/complex/super-complex-oracle-query.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "WITH ranked_sales AS (SELECT product_id, SUM(amount) AS total_sales, RANK() OVER (ORDER BY SUM(amount) DESC) sales_rank FROM sales GROUP BY product_id), dept_costs AS (SELECT department_id, SUM(test_amt) AS total_sal FROM employees GROUP BY department_id), latest_transactions AS (SELECT t.account_id, t.amount, ROW_NUMBER() OVER (PARTITION BY t.account_id ORDER BY t.transaction_date DESC) rn FROM transactions t WHERE t.transaction_date >= ADD_MONTHS(SYSDATE, -6)) SELECT e.employee_id, e.last_name, e.test_amt, d.department_name, d.location_id, rs.total_sales, rs.sales_rank, lt.amount AS latest_transaction_amount FROM employees e INNER JOIN departments d ON e.department_id = d.id LEFT JOIN ranked_sales rs ON e.product_id = rs.product_id LEFT JOIN latest_transactions lt ON e.account_id = lt.account_id AND lt.rn = 1 WHERE e.hire_date > '2010-01-01' AND (d.budget > (SELECT AVG(total_sal) FROM dept_costs) OR e.test_amt > (SELECT AVG(test_amt) FROM employees WHERE department_id = e.department_id)) AND EXISTS (SELECT 1 FROM customer_orders co WHERE co.employee_id = e.employee_id AND co.order_status = 'Completed') ORDER BY e.department_id, e.test_amt DESC;", - "outputs": [ - { - "expected": "WITH ranked_sales AS ( SELECT product_id, SUM ( amount ), RANK ( ) OVER ( ORDER BY SUM ( amount ) DESC ) sales_rank FROM sales GROUP BY product_id ), dept_costs AS ( SELECT department_id, SUM ( test_amt ) FROM employees GROUP BY department_id ), latest_transactions AS ( SELECT t.account_id, t.amount, ROW_NUMBER ( ) OVER ( PARTITION BY t.account_id ORDER BY t.transaction_date DESC ) rn FROM transactions t WHERE t.transaction_date >= ADD_MONTHS ( SYSDATE, ? ) ) SELECT e.employee_id, e.last_name, e.test_amt, d.department_name, d.location_id, rs.total_sales, rs.sales_rank, lt.amount FROM employees e INNER JOIN departments d ON e.department_id = d.id LEFT JOIN ranked_sales rs ON e.product_id = rs.product_id LEFT JOIN latest_transactions lt ON e.account_id = lt.account_id AND lt.rn = ? WHERE e.hire_date > ? AND ( d.budget > ( SELECT AVG ( total_sal ) FROM dept_costs ) OR e.test_amt > ( SELECT AVG ( test_amt ) FROM employees WHERE department_id = e.department_id ) ) AND EXISTS ( SELECT ? FROM customer_orders co WHERE co.employee_id = e.employee_id AND co.order_status = ? ) ORDER BY e.department_id, e.test_amt DESC", - "statement_metadata": { - "size": 103, - "tables": ["sales", "employees", "transactions", "departments", "ranked_sales", "latest_transactions", "dept_costs", "customer_orders"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/conditional-delete-with-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/conditional-delete-with-case.json deleted file mode 100644 index a9f54046..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/conditional-delete-with-case.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM user_notifications WHERE id IN (SELECT id FROM notifications WHERE recipient_id = 123 AND status = CASE WHEN urgency = 'High' THEN 'Unread' ELSE 'Read' END);", - "outputs": [ - { - "expected": "DELETE FROM user_notifications WHERE id IN ( SELECT id FROM notifications WHERE recipient_id = ? AND status = CASE WHEN urgency = ? THEN ? ELSE ? END )", - "statement_metadata": { - "size": 43, - "tables": ["user_notifications", "notifications"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-basic.json deleted file mode 100644 index ab3115cd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM customers WHERE last_purchase_date < ADD_MONTHS(SYSDATE, -12);", - "outputs": [ - { - "expected": "DELETE FROM customers WHERE last_purchase_date < ADD_MONTHS ( SYSDATE, ? )", - "statement_metadata": { - "size": 15, - "tables": ["customers"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-cascade.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-cascade.json deleted file mode 100644 index a0b7a7bd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-cascade.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE customer_id = 456 CASCADE;", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE customer_id = ? CASCADE", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-using-rowid.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-using-rowid.json deleted file mode 100644 index 90ab26d6..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-using-rowid.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM employees WHERE rowid = (SELECT max(rowid) FROM employees WHERE department_id = 20);", - "outputs": [ - { - "expected": "DELETE FROM employees WHERE rowid = ( SELECT max ( rowid ) FROM employees WHERE department_id = ? )", - "statement_metadata": { - "size": 21, - "tables": ["employees"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-where-current-of.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-where-current-of.json deleted file mode 100644 index 4752fe7b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-where-current-of.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM employees WHERE CURRENT OF emp_cursor;", - "outputs": [ - { - "expected": "DELETE FROM employees WHERE CURRENT OF emp_cursor", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-complex-subqueries.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-complex-subqueries.json deleted file mode 100644 index c6fc3ee6..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-complex-subqueries.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM products WHERE id IN (SELECT p.id FROM products p JOIN inventory i ON p.id = i.product_id WHERE i.quantity = 0);", - "outputs": [ - { - "expected": "DELETE FROM products WHERE id IN ( SELECT p.id FROM products p JOIN inventory i ON p.id = i.product_id WHERE i.quantity = ? )", - "statement_metadata": { - "size": 33, - "tables": ["products", "inventory"], - "commands": ["DELETE", "SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-flashback-query.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-flashback-query.json deleted file mode 100644 index 7083c47c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-flashback-query.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders AS OF TIMESTAMP TO_TIMESTAMP('2023-03-15 08:30:00', 'YYYY-MM-DD HH24:MI:SS') WHERE order_date < '2023-01-01';", - "outputs": [ - { - "expected": "DELETE FROM orders AS OF TIMESTAMP TO_TIMESTAMP ( ? ) WHERE order_date < ?", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-join-syntax.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-join-syntax.json deleted file mode 100644 index d3ec876d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-join-syntax.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM orders o WHERE EXISTS (SELECT 1 FROM customers c WHERE o.customer_id = c.id AND c.status = 'Inactive');", - "outputs": [ - { - "expected": "DELETE FROM orders o WHERE EXISTS ( SELECT ? FROM customers c WHERE o.customer_id = c.id AND c.status = ? )", - "statement_metadata": { - "size": 27, - "tables": ["orders", "customers"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-pseudocolumns.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-pseudocolumns.json deleted file mode 100644 index b1ab1b26..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-pseudocolumns.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM session_logs WHERE ROWNUM <= 10;", - "outputs": [ - { - "expected": "DELETE FROM session_logs WHERE ROWNUM <= ?", - "statement_metadata": { - "size": 18, - "tables": ["session_logs"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-returning-clause.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-returning-clause.json deleted file mode 100644 index 95be2ac0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-returning-clause.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "DELETE FROM logs WHERE entry_date < SYSDATE RETURNING id INTO :deleted_ids;", - "outputs": [ - { - "expected": "DELETE FROM logs WHERE entry_date < SYSDATE RETURNING id INTO :deleted_ids", - "statement_metadata": { - "size": 10, - "tables": ["logs"], - "commands": ["DELETE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-subquery.json deleted file mode 100644 index 7018cda6..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/delete/delete-with-subquery.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "DELETE FROM logs WHERE entry_date < (SELECT MIN(order_date) FROM orders);", - "outputs": [ - { - "expected": "DELETE FROM logs WHERE entry_date < ( SELECT MIN ( order_date ) FROM orders )", - "statement_metadata": { - "size": 22, - "tables": ["logs", "orders"], - "commands": ["DELETE", "SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "DELETE FROM logs WHERE entry_date < (SELECT MIN(order_date) FROM orders);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-into-multiple-tables.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-into-multiple-tables.json deleted file mode 100644 index b7c00447..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-into-multiple-tables.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT ALL INTO sales (product_id, amount) VALUES (product_id, amount) INTO audit_log (action_type, message) VALUES ('INSERT', 'Inserted into sales') SELECT product_id, amount FROM temp_sales WHERE amount > 1000;", - "outputs": [ - { - "expected": "INSERT ALL INTO sales ( product_id, amount ) VALUES ( product_id, amount ) INTO audit_log ( action_type, message ) VALUES ( ? ) SELECT product_id, amount FROM temp_sales WHERE amount > ?", - "statement_metadata": { - "size": 36, - "tables": ["sales", "audit_log", "temp_sales"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-multiple-conditions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-multiple-conditions.json deleted file mode 100644 index e16049fd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-all-multiple-conditions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT ALL WHEN amount <= 100 THEN INTO small_orders (order_id, amount) VALUES (order_id, amount) WHEN amount BETWEEN 101 AND 500 THEN INTO medium_orders (order_id, amount) VALUES (order_id, amount) ELSE INTO large_orders (order_id, amount) VALUES (order_id, amount) SELECT order_id, amount FROM orders;", - "outputs": [ - { - "expected": "INSERT ALL WHEN amount <= ? THEN INTO small_orders ( order_id, amount ) VALUES ( order_id, amount ) WHEN amount BETWEEN ? AND ? THEN INTO medium_orders ( order_id, amount ) VALUES ( order_id, amount ) ELSE INTO large_orders ( order_id, amount ) VALUES ( order_id, amount ) SELECT order_id, amount FROM orders", - "statement_metadata": { - "size": 55, - "tables": ["small_orders", "medium_orders", "large_orders", "orders"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-basic.json deleted file mode 100644 index 96a9f576..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-basic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO customers (id, name, address) VALUES (101, 'John Doe', '123 Oracle Ln');", - "outputs": [ - { - "expected": "INSERT INTO customers ( id, name, address ) VALUES ( ? )", - "statement_metadata": { - "size": 15, - "tables": ["customers"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-using-decode.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-using-decode.json deleted file mode 100644 index 21c14044..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-using-decode.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO user_log (user_id, action, log_date) SELECT user_id, DECODE(activity_type, 'LOGIN', 'Logged In', 'LOGOUT', 'Logged Out', 'Unknown'), SYSDATE FROM user_activity;", - "outputs": [ - { - "expected": "INSERT INTO user_log ( user_id, action, log_date ) SELECT user_id, DECODE ( activity_type, ?, ?, ?, ?, ? ), SYSDATE FROM user_activity", - "statement_metadata": { - "size": 33, - "tables": ["user_log", "user_activity"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-column-ordering.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-column-ordering.json deleted file mode 100644 index 6e5baa5d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-column-ordering.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO customer_addresses (address, city, customer_id) VALUES ('123 Main St', 'Anytown', 456);", - "outputs": [ - { - "expected": "INSERT INTO customer_addresses ( address, city, customer_id ) VALUES ( ? )", - "statement_metadata": { - "size": 24, - "tables": ["customer_addresses"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-returning-clause.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-returning-clause.json deleted file mode 100644 index 10f8de21..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-returning-clause.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO transactions (account_id, amount) VALUES (123, 500) RETURNING transaction_id INTO :new_id;", - "outputs": [ - { - "expected": "INSERT INTO transactions ( account_id, amount ) VALUES ( ? ) RETURNING transaction_id INTO :new_id", - "statement_metadata": { - "size": 18, - "tables": ["transactions"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-select-union.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-select-union.json deleted file mode 100644 index 19405ecb..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-select-union.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO log (message) SELECT 'User logged in' FROM dual UNION ALL SELECT 'User performed an action' FROM dual;", - "outputs": [ - { - "expected": "INSERT INTO log ( message ) SELECT ? FROM dual UNION ALL SELECT ? FROM dual", - "statement_metadata": { - "size": 19, - "tables": ["log", "dual"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-sequence.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-sequence.json deleted file mode 100644 index 155a7e93..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-sequence.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT INTO products (id, name, price) VALUES (product_seq.NEXTVAL, 'New Product', 99.99);", - "outputs": [ - { - "expected": "INSERT INTO products ( id, name, price ) VALUES ( product_seq.NEXTVAL, ?, ? )", - "statement_metadata": { - "size": 14, - "tables": ["products"], - "commands": ["INSERT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-subquery.json deleted file mode 100644 index 56068700..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/insert-with-subquery.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "INSERT INTO orders (id, user_id, amount) SELECT order_seq.NEXTVAL, user_id, 100 FROM users WHERE status = 'active';", - "outputs": [ - { - "expected": "INSERT INTO orders ( id, user_id, amount ) SELECT order_seq.NEXTVAL, user_id, ? FROM users WHERE status = ?", - "statement_metadata": { - "size": 23, - "tables": ["orders", "users"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "INSERT INTO orders (id, user_id, amount) SELECT order_seq.NEXTVAL, user_id, ? FROM users WHERE status = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/multitable-insert-conditional.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/multitable-insert-conditional.json deleted file mode 100644 index e901ad84..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/insert/multitable-insert-conditional.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "INSERT FIRST INTO sales_audit (action) VALUES ('Sale occurred') WHEN amount > 1000 THEN INTO high_value_sales (sale_id, amount) VALUES (sale_id, amount) SELECT sale_id, amount FROM sales;", - "outputs": [ - { - "expected": "INSERT FIRST INTO sales_audit ( action ) VALUES ( ? ) WHEN amount > ? THEN INTO high_value_sales ( sale_id, amount ) VALUES ( sale_id, amount ) SELECT sale_id, amount FROM sales", - "statement_metadata": { - "size": 44, - "tables": ["sales_audit", "high_value_sales", "sales"], - "commands": ["INSERT", "SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-in-out-params.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-in-out-params.json deleted file mode 100644 index 989dbefa..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-in-out-params.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE PROCEDURE CalculateDiscount(p_order_id IN NUMBER, p_discount OUT NUMBER) AS total_amount NUMBER; BEGIN SELECT SUM(price * quantity) INTO total_amount FROM order_items WHERE order_id = p_order_id; p_discount := total_amount * 0.1; END CalculateDiscount;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PROCEDURE CalculateDiscount(p_order_id IN NUMBER, p_discount OUT NUMBER) NUMBER; BEGIN SELECT SUM(price * quantity) INTO total_amount FROM order_items WHERE order_id = p_order_id; p_discount := total_amount * ?; END CalculateDiscount;", - "statement_metadata": { - "size": 57, - "tables": ["total_amount", "order_items"], - "commands": ["CREATE", "BEGIN", "SELECT"], - "comments": [], - "procedures": ["CalculateDiscount"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-cursors.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-cursors.json deleted file mode 100644 index 7571ee8c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-cursors.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE PROCEDURE FetchCustomerOrders(p_customer_id IN NUMBER) IS CURSOR order_cursor IS SELECT * FROM orders WHERE customer_id = p_customer_id; order_rec order_cursor%ROWTYPE; BEGIN OPEN order_cursor; LOOP FETCH order_cursor INTO order_rec; EXIT WHEN order_cursor%NOTFOUND; END LOOP; CLOSE order_cursor; END FetchCustomerOrders;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PROCEDURE FetchCustomerOrders(p_customer_id IN NUMBER) IS CURSOR order_cursor IS SELECT * FROM orders WHERE customer_id = p_customer_id; order_rec order_cursor % ROWTYPE; BEGIN OPEN order_cursor; LOOP FETCH order_cursor INTO order_rec; EXIT WHEN order_cursor % NOTFOUND; END LOOP; CLOSE order_cursor; END FetchCustomerOrders;", - "statement_metadata": { - "size": 51, - "tables": ["orders", "order_rec"], - "commands": ["CREATE", "SELECT", "BEGIN"], - "comments": [], - "procedures": ["FetchCustomerOrders"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-exception-handling.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-exception-handling.json deleted file mode 100644 index d7518955..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-procedure-with-exception-handling.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE PROCEDURE DeleteCustomer(p_customer_id IN NUMBER) AS BEGIN DELETE FROM customers WHERE id = p_customer_id; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(-20001, 'Error deleting customer.'); END DeleteCustomer;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PROCEDURE DeleteCustomer(p_customer_id IN NUMBER) AS BEGIN DELETE FROM customers WHERE id = p_customer_id; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(?); END DeleteCustomer;", - "statement_metadata": { - "size": 40, - "tables": ["customers"], - "commands": ["CREATE", "BEGIN", "DELETE"], - "comments": [], - "procedures": ["DeleteCustomer"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-simple-stored-procedure.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-simple-stored-procedure.json deleted file mode 100644 index 3bc5dd56..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/create-simple-stored-procedure.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE PROCEDURE UpdateOrderStatus(p_order_id IN NUMBER, p_status IN VARCHAR2) AS BEGIN UPDATE orders SET status = p_status WHERE order_id = p_order_id; END UpdateOrderStatus;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PROCEDURE UpdateOrderStatus(p_order_id IN NUMBER, p_status IN VARCHAR?) AS BEGIN UPDATE orders SET status = p_status WHERE order_id = p_order_id; END UpdateOrderStatus;", - "statement_metadata": { - "size": 40, - "tables": ["orders"], - "commands": ["CREATE", "BEGIN", "UPDATE"], - "comments": [], - "procedures": ["UpdateOrderStatus"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/error-handling-exception.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/error-handling-exception.json deleted file mode 100644 index d225325d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/error-handling-exception.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE PROCEDURE update_test_amt(p_employee_id NUMBER, p_change NUMBER) AS BEGIN UPDATE employees SET test_amt = test_amt + p_change WHERE employee_id = p_employee_id; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(-20001, 'Invalid test_amt update'); END;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PROCEDURE update_test_amt(p_employee_id NUMBER, p_change NUMBER) AS BEGIN UPDATE employees SET test_amt = test_amt + p_change WHERE employee_id = p_employee_id; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(?); END;", - "statement_metadata": { - "size": 41, - "tables": ["employees"], - "commands": ["CREATE", "BEGIN", "UPDATE"], - "comments": [], - "procedures": ["update_test_amt"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure-with-exec.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure-with-exec.json deleted file mode 100644 index a1abd418..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure-with-exec.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "EXEC UpdateOrderStatus(123, 'Shipped');", - "outputs": [ - { - "expected": "EXEC UpdateOrderStatus(?);", - "statement_metadata": { - "size": 4, - "tables": [], - "commands": ["EXEC"], - "comments": [], - "procedures": [] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure.json deleted file mode 100644 index 91ad0a1a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/invoke-stored-procedure.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "BEGIN UpdateOrderStatus(123, 'Shipped'); END;", - "outputs": [ - { - "expected": "BEGIN UpdateOrderStatus(?); END;", - "statement_metadata": { - "size": 5, - "tables": [], - "commands": ["BEGIN"], - "comments": [], - "procedures": [] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/packages.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/packages.json deleted file mode 100644 index aa27903d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/packages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE PACKAGE mgmt AS PROCEDURE test_proc_1(p_name VARCHAR2); PROCEDURE test_proc_2(p_id NUMBER); END mgmt;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PACKAGE mgmt AS PROCEDURE test_proc_1(p_name VARCHAR?); PROCEDURE test_proc_2(p_id NUMBER); END mgmt;", - "statement_metadata": { - "size": 28, - "tables": [], - "commands": ["CREATE"], - "comments": [], - "procedures": ["test_proc_1", "test_proc_2"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/pipelined-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/pipelined-functions.json deleted file mode 100644 index 5ec81089..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/pipelined-functions.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE FUNCTION get_departments RETURN dept_t PIPELINED AS BEGIN FOR r IN (SELECT * FROM departments) LOOP PIPE ROW(r); END LOOP; RETURN; END;", - "outputs": [ - { - "expected": "CREATE OR REPLACE FUNCTION get_departments RETURN dept_t PIPELINED AS BEGIN FOR r IN (SELECT * FROM departments) LOOP PIPE ROW(r); END LOOP; RETURN; END;", - "statement_metadata": { - "size": 28, - "tables": ["departments"], - "commands": ["CREATE", "BEGIN", "SELECT"], - "comments": [], - "procedures": [] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/stored-procedures-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/stored-procedures-functions.json deleted file mode 100644 index a6ffffbe..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/stored-procedures-functions.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE PROCEDURE get_employee_count(p_dept_id IN NUMBER, p_count OUT NUMBER) AS BEGIN SELECT COUNT(*) INTO p_count FROM employees WHERE department_id = p_dept_id; END; BEGIN get_employee_count(10, :count); END;", - "outputs": [ - { - "expected": "CREATE OR REPLACE PROCEDURE get_employee_count(p_dept_id IN NUMBER, p_count OUT NUMBER) AS BEGIN SELECT COUNT(*) INTO p_count FROM employees WHERE department_id = p_dept_id; END; BEGIN get_employee_count(?, :count); END;", - "statement_metadata": { - "size": 51, - "tables": ["p_count", "employees"], - "commands": ["CREATE", "BEGIN", "SELECT"], - "comments": [], - "procedures": ["get_employee_count"] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/triggers.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/triggers.json deleted file mode 100644 index 8ff82d4d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/procedure/triggers.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "input": "CREATE OR REPLACE TRIGGER audit_table AFTER INSERT ON logs FOR EACH ROW BEGIN INSERT INTO audit_log (action) VALUES ('Inserted new log'); END;", - "outputs": [ - { - "expected": "CREATE OR REPLACE TRIGGER audit_table AFTER INSERT ON logs FOR EACH ROW BEGIN INSERT INTO audit_log (action) VALUES (?); END;", - "statement_metadata": { - "size": 26, - "tables": ["audit_log"], - "commands": ["CREATE", "INSERT", "BEGIN"], - "comments": [], - "procedures": [] - }, - "obfuscator_config": { - "replace_digits": true - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/complex-join-operations.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/complex-join-operations.json deleted file mode 100644 index f801075a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/complex-join-operations.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT e.employee_id, e.last_name, d.department_name FROM employees e JOIN departments d ON e.department_id = d.department_id WHERE e.test_amt > (SELECT AVG(test_amt) FROM employees WHERE department_id = e.department_id);", - "outputs": [ - { - "expected": "SELECT e.employee_id, e.last_name, d.department_name FROM employees e JOIN departments d ON e.department_id = d.department_id WHERE e.test_amt > ( SELECT AVG ( test_amt ) FROM employees WHERE department_id = e.department_id )", - "statement_metadata": { - "size": 30, - "tables": ["employees", "departments"], - "commands": ["SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/full-hint.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/full-hint.json deleted file mode 100644 index 89a6981c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/full-hint.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "SELECT /*+ FULL(e) */ employee_id, first_name, last_name FROM employees e WHERE department_id = 10;", - "outputs": [ - { - "expected": "SELECT employee_id, first_name, last_name FROM employees e WHERE department_id = ?;", - "statement_metadata": { - "size": 29, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": ["/*+ FULL(e) */"], - "procedures": [] - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/hierarchical-queries.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/hierarchical-queries.json deleted file mode 100644 index 3881a255..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/hierarchical-queries.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT employee_id, last_name, manager_id FROM employees START WITH manager_id IS NULL CONNECT BY PRIOR employee_id = manager_id;", - "outputs": [ - { - "expected": "SELECT employee_id, last_name, manager_id FROM employees START WITH manager_id IS ? CONNECT BY PRIOR employee_id = manager_id", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/index-hint.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/index-hint.json deleted file mode 100644 index cd6e00ac..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/index-hint.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "SELECT /*+ INDEX(e employee_index) */ employee_id, first_name, last_name FROM employees e WHERE department_id = 10;", - "outputs": [ - { - "expected": "SELECT employee_id, first_name, last_name FROM employees e WHERE department_id = ?;", - "statement_metadata": { - "size": 45, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": ["/*+ INDEX(e employee_index) */"], - "procedures": [] - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/large-objects-lobs.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/large-objects-lobs.json deleted file mode 100644 index eae0403c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/large-objects-lobs.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, DBMS_LOB.SUBSTR(blob_data, 2000, 1) as blob_content, DBMS_LOB.SUBSTR(clob_data, 2000, 1) as clob_content FROM lob_test WHERE id = 1;", - "outputs": [ - { - "expected": "SELECT id, DBMS_LOB.SUBSTR ( blob_data, ?, ? ), DBMS_LOB.SUBSTR ( clob_data, ?, ? ) FROM lob_test WHERE id = ?", - "statement_metadata": { - "size": 14, - "tables": ["lob_test"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/multiple-hints.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/multiple-hints.json deleted file mode 100644 index deddd94d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/multiple-hints.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "SELECT /*+ LEADING(e) USE_HASH(d) */ e.employee_id, e.first_name, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id;", - "outputs": [ - { - "expected": "SELECT e.employee_id, e.first_name, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id;", - "statement_metadata": { - "size": 44, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": ["/*+ LEADING(e) USE_HASH(d) */"], - "procedures": [] - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/optimizer-mode-hint.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/optimizer-mode-hint.json deleted file mode 100644 index 6a19aca0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/optimizer-mode-hint.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "SELECT /*+ ALL_ROWS */ order_id, description FROM orders WHERE price > 100;", - "outputs": [ - { - "expected": "SELECT order_id, description FROM orders WHERE price > ?;", - "statement_metadata": { - "size": 27, - "tables": ["orders"], - "commands": ["SELECT"], - "comments": ["/*+ ALL_ROWS */"], - "procedures": [] - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/oracle-text.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/oracle-text.json deleted file mode 100644 index 33beecd0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/oracle-text.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT id, title FROM articles WHERE CONTAINS(text, 'Oracle', 1) > 0;", - "outputs": [ - { - "expected": "SELECT id, title FROM articles WHERE CONTAINS ( text, ?, ? ) > ?", - "statement_metadata": { - "size": 14, - "tables": ["articles"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-case-sensitive.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-case-sensitive.json deleted file mode 100644 index bf49d9cd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-case-sensitive.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "SELECT \"OrderId\", \"OrderDate\", \"CustomerName\" FROM \"Sales\".\"Orders\" WHERE \"OrderStatus\" = 'Shipped';", - "outputs": [ - { - "expected": "SELECT OrderId, OrderDate, CustomerName FROM Sales.Orders WHERE OrderStatus = ?", - "statement_metadata": { - "size": 18, - "tables": ["Sales.Orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "normalizer_config": { - "keep_identifier_quotation": true, - "Keep_trailing_semicolon": true - }, - "expected": "SELECT \"OrderId\", \"OrderDate\", \"CustomerName\" FROM \"Sales\".\"Orders\" WHERE \"OrderStatus\" = ?;" - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-special-characters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-special-characters.json deleted file mode 100644 index 89ac3e55..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/quoted-identifiers-special-characters.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "SELECT * FROM \"Sales\".\"Order-Details\" WHERE \"Product#Name\" LIKE '%Gadget%';", - "outputs": [ - { - "expected": "SELECT * FROM Sales.Order-Details WHERE Product#Name LIKE ?", - "statement_metadata": { - "size": 25, - "tables": ["Sales.Order-Details"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "normalizer_config": { - "keep_identifier_quotation": true, - "Keep_trailing_semicolon": true - }, - "expected": "SELECT * FROM \"Sales\".\"Order-Details\" WHERE \"Product#Name\" LIKE ?;" - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/recursive-cte.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/recursive-cte.json deleted file mode 100644 index 8524a7b2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/recursive-cte.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "WITH RECURSIVE subordinates AS (SELECT employee_id, manager_id FROM employees WHERE manager_id IS NULL UNION ALL SELECT e.employee_id, e.manager_id FROM employees e JOIN subordinates s ON e.manager_id = s.employee_id) SELECT * FROM subordinates;", - "outputs": [ - { - "expected": "WITH RECURSIVE subordinates AS ( SELECT employee_id, manager_id FROM employees WHERE manager_id IS ? UNION ALL SELECT e.employee_id, e.manager_id FROM employees e JOIN subordinates s ON e.manager_id = s.employee_id ) SELECT * FROM subordinates", - "statement_metadata": { - "size": 31, - "tables": ["employees", "subordinates"], - "commands": [ "SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-basic-conditions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-basic-conditions.json deleted file mode 100644 index d3b8b73f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-basic-conditions.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "SELECT id, name FROM users WHERE age > 30 AND status = 'active';", - "outputs": [ - { - "expected": "SELECT id, name FROM users WHERE age > ? AND status = ?", - "statement_metadata": { - "size": 11, - "tables": ["users"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT id, name FROM users WHERE age > ? AND status = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-hierarchical-query.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-hierarchical-query.json deleted file mode 100644 index 947494a6..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-hierarchical-query.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT employee_id, last_name, manager_id FROM employees START WITH manager_id IS NULL CONNECT BY PRIOR employee_id = manager_id;", - "outputs": [ - { - "expected": "SELECT employee_id, last_name, manager_id FROM employees START WITH manager_id IS ? CONNECT BY PRIOR employee_id = manager_id", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT employee_id, last_name, manager_id FROM employees START WITH manager_id IS NULL CONNECT BY PRIOR employee_id = manager_id;", - "normalizer_config": { - "keep_trailing_semicolon": true - }, - "obfuscator_config": { - "replace_boolean":false - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-oracle-text.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-oracle-text.json deleted file mode 100644 index 7878c10a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-oracle-text.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT id, title FROM articles WHERE CONTAINS(text, 'Oracle', 1) > 0;", - "outputs": [ - { - "expected": "SELECT id, title FROM articles WHERE CONTAINS ( text, ?, ? ) > ?", - "statement_metadata": { - "size": 14, - "tables": ["articles"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT id, title FROM articles WHERE CONTAINS(text, ?, ?) > ?;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-with-clause.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-with-clause.json deleted file mode 100644 index 6bb2fc58..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-using-with-clause.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "WITH dept_costs AS (SELECT department_id, SUM(test_amt) AS total_sal FROM employees GROUP BY department_id) SELECT * FROM dept_costs WHERE total_sal > (SELECT AVG(total_sal) FROM dept_costs);", - "outputs": [ - { - "expected": "WITH dept_costs AS ( SELECT department_id, SUM ( test_amt ) FROM employees GROUP BY department_id ) SELECT * FROM dept_costs WHERE total_sal > ( SELECT AVG ( total_sal ) FROM dept_costs )", - "statement_metadata": { - "size": 25, - "tables": ["employees", "dept_costs"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "WITH dept_costs AS (SELECT department_id, SUM(test_amt) FROM employees GROUP BY department_id) SELECT * FROM dept_costs WHERE total_sal > (SELECT AVG(total_sal) FROM dept_costs);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-flashback-query.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-flashback-query.json deleted file mode 100644 index 1c6c6d61..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-flashback-query.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT * FROM employees AS OF TIMESTAMP TO_TIMESTAMP('2023-03-15 08:30:00', 'YYYY-MM-DD HH24:MI:SS') WHERE department_id = 10;", - "outputs": [ - { - "expected": "SELECT * FROM employees AS OF TIMESTAMP TO_TIMESTAMP ( ? ) WHERE department_id = ?", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT * FROM employees AS OF TIMESTAMP TO_TIMESTAMP(?) WHERE department_id = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-model-clause.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-model-clause.json deleted file mode 100644 index 17f3fd95..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-model-clause.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT * FROM (SELECT year, product, amount FROM sales) MODEL DIMENSION BY (year) MEASURES (product, amount) RULES (amount['2023'] = amount['2022'] * 1.1);", - "outputs": [ - { - "expected": "SELECT * FROM ( SELECT year, product, amount FROM sales ) MODEL DIMENSION BY ( year ) MEASURES ( product, amount ) RULES ( amount [ ? ] = amount [ ? ] * ? )", - "statement_metadata": { - "size": 11, - "tables": ["sales"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT * FROM (SELECT year, product, amount FROM sales) MODEL DIMENSION BY (year) MEASURES (product, amount) RULES (amount [?] = amount [?] * ?);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-multi-line-comments.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-multi-line-comments.json deleted file mode 100644 index 2a9fd894..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-multi-line-comments.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "SELECT /* Multi-line\n comment */ id, name FROM users WHERE status = 'active';", - "outputs": [ - { - "expected": "SELECT id, name FROM users WHERE status = ?", - "statement_metadata": { - "size": 36, - "tables": ["users"], - "commands": ["SELECT"], - "comments": ["/* Multi-line\n comment */"], - "procedures": [] - } - }, - { - "expected": "SELECT id, name FROM users WHERE status = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-oracle-specific-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-oracle-specific-joins.json deleted file mode 100644 index 06b165af..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-oracle-specific-joins.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT e.employee_id, e.last_name, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id(+);", - "outputs": [ - { - "expected": "SELECT e.employee_id, e.last_name, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id ( + )", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT e.employee_id, e.last_name, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id(+);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-partition-by.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-partition-by.json deleted file mode 100644 index 86253a75..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-partition-by.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT department_id, last_name, test_amt, AVG(test_amt) OVER (PARTITION BY department_id) AS avg_dept_test_amt FROM employees;", - "outputs": [ - { - "expected": "SELECT department_id, last_name, test_amt, AVG ( test_amt ) OVER ( PARTITION BY department_id ) FROM employees", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT department_id, last_name, test_amt, AVG(test_amt) OVER (PARTITION BY department_id) FROM employees;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-pseudocolumns.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-pseudocolumns.json deleted file mode 100644 index a98bd682..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-pseudocolumns.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "SELECT LEVEL, ROWNUM, employee_id, last_name FROM employees WHERE ROWNUM <= 10 CONNECT BY PRIOR employee_id = manager_id;", - "outputs": [ - { - "expected": "SELECT LEVEL, ROWNUM, employee_id, last_name FROM employees WHERE ROWNUM <= ? CONNECT BY PRIOR employee_id = manager_id", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT LEVEL, ROWNUM, employee_id, last_name FROM employees WHERE ROWNUM <= ? CONNECT BY PRIOR employee_id = manager_id;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-rollup-function.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-rollup-function.json deleted file mode 100644 index bc123857..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-rollup-function.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT department_id, job_id, SUM(test_amt) total_test_amt FROM employees GROUP BY ROLLUP (department_id, job_id);", - "outputs": [ - { - "expected": "SELECT department_id, job_id, SUM ( test_amt ) total_test_amt FROM employees GROUP BY ROLLUP ( department_id, job_id )", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT department_id, job_id, SUM(test_amt) total_test_amt FROM employees GROUP BY ROLLUP (department_id, job_id);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-sample-clause.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-sample-clause.json deleted file mode 100644 index 74cc06b7..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-sample-clause.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT * FROM employees SAMPLE (10);", - "outputs": [ - { - "expected": "SELECT * FROM employees SAMPLE ( ? )", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT * FROM employees SAMPLE (?);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-single-line-comments.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-single-line-comments.json deleted file mode 100644 index 7f32afdb..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-single-line-comments.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "SELECT id, name FROM users WHERE status = 'active'; -- Single-line comment explaining the query", - "outputs": [ - { - "expected": "SELECT id, name FROM users WHERE status = ?", - "statement_metadata": { - "size": 54, - "tables": ["users"], - "commands": ["SELECT"], - "comments": ["-- Single-line comment explaining the query"], - "procedures": [] - } - }, - { - "expected": "SELECT id, name FROM users WHERE status = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-skip-locked.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-skip-locked.json deleted file mode 100644 index 72326d19..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/select-with-skip-locked.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "SELECT * FROM orders WHERE order_status = 'PENDING' FOR UPDATE SKIP LOCKED;", - "outputs": [ - { - "expected": "SELECT * FROM orders WHERE order_status = ? FOR UPDATE SKIP LOCKED", - "statement_metadata": { - "size": 18, - "tables": ["orders"], - "commands": ["SELECT", "UPDATE"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT * FROM orders WHERE order_status = ? FOR UPDATE SKIP LOCKED;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/use-nl-hint.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/use-nl-hint.json deleted file mode 100644 index a84e0adc..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/use-nl-hint.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "SELECT /*+ USE_NL(e d) */ e.employee_id, e.first_name, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id;", - "outputs": [ - { - "expected": "SELECT e.employee_id, e.first_name, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id;", - "statement_metadata": { - "size": 33, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": ["/*+ USE_NL(e d) */"], - "procedures": [] - }, - "normalizer_config": { - "collect_tables": true, - "collect_commands": true, - "collect_comments": true, - "collect_procedure": true, - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/window-functions-analytics.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/window-functions-analytics.json deleted file mode 100644 index a0af2d82..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/select/window-functions-analytics.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "SELECT employee_id, test_amt, AVG(yoe) OVER (PARTITION BY department_id) AS avg_department_yoe FROM employees;", - "outputs": [ - { - "expected": "SELECT employee_id, test_amt, AVG ( yoe ) OVER ( PARTITION BY department_id ) FROM employees", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-case.json deleted file mode 100644 index 949243d5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-case.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "UPDATE employees SET test_amt = CASE WHEN job_id = 'XX' THEN test_amt * 1.10 WHEN job_id = 'YY' THEN test_amt * 1.20 ELSE test_amt END;", - "outputs": [ - { - "expected": "UPDATE employees SET test_amt = CASE WHEN job_id = ? THEN test_amt * ? WHEN job_id = ? THEN test_amt * ? ELSE test_amt END", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE employees SET test_amt = CASE WHEN job_id = ? THEN test_amt * ? WHEN job_id = ? THEN test_amt * ? ELSE test_amt END;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-decode.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-decode.json deleted file mode 100644 index 5f9e2398..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/conditional-update-with-decode.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "UPDATE order_items SET discount = DECODE(quantity, 10, 5, 20, 10, 0) WHERE order_id = 456;", - "outputs": [ - { - "expected": "UPDATE order_items SET discount = DECODE ( quantity, ?, ?, ?, ?, ? ) WHERE order_id = ?", - "statement_metadata": { - "size": 17, - "tables": ["order_items"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE order_items SET discount = DECODE(quantity, ?, ?, ?, ?, ?) WHERE order_id = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/dynamic-plsql.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/dynamic-plsql.json deleted file mode 100644 index 91cdcb8c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/dynamic-plsql.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "input": "BEGIN EXECUTE IMMEDIATE 'UPDATE logs SET retention = retention * 1.1'; END;", - "outputs": [ - { - "expected": "BEGIN EXECUTE IMMEDIATE ?; END", - "statement_metadata": { - "size": 12, - "tables": [], - "commands": ["BEGIN", "EXECUTE"], - "comments": [], - "procedures": [] - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-basic.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-basic.json deleted file mode 100644 index d5ee0289..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-basic.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "UPDATE employees SET test_amt = test_amt * 1.05 WHERE department_id = 3;", - "outputs": [ - { - "expected": "UPDATE employees SET test_amt = test_amt * ? WHERE department_id = ?", - "statement_metadata": { - "size": 15, - "tables": ["employees"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE employees SET test_amt = test_amt * ? WHERE department_id = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-oracle-specific-syntax.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-oracle-specific-syntax.json deleted file mode 100644 index a7f6baea..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-oracle-specific-syntax.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "UPDATE (SELECT e.test_amt, d.budget FROM employees e JOIN departments d ON e.department_id = d.id) t SET t.test_amt = t.test_amt * 1.05, t.budget = t.budget - 1000;", - "outputs": [ - { - "expected": "UPDATE ( SELECT e.test_amt, d.budget FROM employees e JOIN departments d ON e.department_id = d.id ) t SET t.test_amt = t.test_amt * ?, t.budget = t.budget - ?", - "statement_metadata": { - "size": 36, - "tables": ["employees", "departments"], - "commands": ["UPDATE", "SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE (SELECT e.test_amt, d.budget FROM employees e JOIN departments d ON e.department_id = d.id) t SET t.test_amt = t.test_amt * ?, t.budget = t.budget - ?;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-correlated-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-correlated-subquery.json deleted file mode 100644 index 3ba8e9d5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-correlated-subquery.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "UPDATE orders o SET o.status = 'DELAYED' WHERE EXISTS (SELECT 1 FROM shipments s WHERE s.order_id = o.id AND s.estimated_arrival < SYSDATE);", - "outputs": [ - { - "expected": "UPDATE orders o SET o.status = ? WHERE EXISTS ( SELECT ? FROM shipments s WHERE s.order_id = o.id AND s.estimated_arrival < SYSDATE )", - "statement_metadata": { - "size": 27, - "tables": ["orders", "shipments"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE orders o SET o.status = ? WHERE EXISTS (SELECT ? FROM shipments s WHERE s.order_id = o.id AND s.estimated_arrival < SYSDATE);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-join-syntax.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-join-syntax.json deleted file mode 100644 index 18d78d25..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-using-join-syntax.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "UPDATE (SELECT a.account_balance, t.transaction_amount FROM accounts a JOIN transactions t ON a.account_id = t.account_id) SET account_balance = account_balance + transaction_amount;", - "outputs": [ - { - "expected": "UPDATE ( SELECT a.account_balance, t.transaction_amount FROM accounts a JOIN transactions t ON a.account_id = t.account_id ) SET account_balance = account_balance + transaction_amount", - "statement_metadata": { - "size": 36, - "tables": ["accounts", "transactions"], - "commands": ["UPDATE", "SELECT", "JOIN"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE (SELECT a.account_balance, t.transaction_amount FROM accounts a JOIN transactions t ON a.account_id = t.account_id) SET account_balance = account_balance + transaction_amount;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-correlated-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-correlated-subquery.json deleted file mode 100644 index 5846dbc7..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-correlated-subquery.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "UPDATE customer_orders co SET total_amount = (SELECT SUM(oi.price * oi.quantity) FROM order_items oi WHERE oi.order_id = co.id) WHERE co.status = 'Pending';", - "outputs": [ - { - "expected": "UPDATE customer_orders co SET total_amount = ( SELECT SUM ( oi.price * oi.quantity ) FROM order_items oi WHERE oi.order_id = co.id ) WHERE co.status = ?", - "statement_metadata": { - "size": 38, - "tables": ["customer_orders", "order_items"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE customer_orders co SET total_amount = (SELECT SUM(oi.price * oi.quantity) FROM order_items oi WHERE oi.order_id = co.id) WHERE co.status = ?;", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-join.json deleted file mode 100644 index 24d901a8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-join.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "UPDATE products p SET p.price = p.price * 1.1 FROM suppliers s WHERE p.supplier_id = s.id AND s.rating > 4;", - "outputs": [ - { - "expected": "UPDATE products p SET p.price = p.price * ? FROM suppliers s WHERE p.supplier_id = s.id AND s.rating > ?", - "statement_metadata": { - "size": 23, - "tables": ["products", "suppliers"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE products p SET p.price = p.price * ? FROM suppliers s WHERE p.supplier_id = s.id AND s.rating > ?;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-returning-clause.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-returning-clause.json deleted file mode 100644 index 8f9c17fa..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-returning-clause.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "UPDATE orders SET order_status = 'Completed' WHERE order_id = 123 RETURNING customer_id, order_total INTO :cust_id, :total;", - "outputs": [ - { - "expected": "UPDATE orders SET order_status = ? WHERE order_id = ? RETURNING customer_id, order_total INTO :cust_id, :total", - "statement_metadata": { - "size": 12, - "tables": ["orders"], - "commands": ["UPDATE"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE orders SET order_status = ? WHERE order_id = ? RETURNING customer_id, order_total INTO :cust_id, :total;", - "normalizer_config": { - "keep_trailing_semicolon": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery-in-set.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery-in-set.json deleted file mode 100644 index d5a81c9e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery-in-set.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "UPDATE products p SET (p.price, p.stock) = (SELECT s.discounted_price, s.quantity FROM sale_items s WHERE s.product_id = p.id) WHERE EXISTS (SELECT 1 FROM sale_items s WHERE s.product_id = p.id);", - "outputs": [ - { - "expected": "UPDATE products p SET ( p.price, p.stock ) = ( SELECT s.discounted_price, s.quantity FROM sale_items s WHERE s.product_id = p.id ) WHERE EXISTS ( SELECT ? FROM sale_items s WHERE s.product_id = p.id )", - "statement_metadata": { - "size": 30, - "tables": ["products", "sale_items"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE products p SET (p.price, p.stock) = (SELECT s.discounted_price, s.quantity FROM sale_items s WHERE s.product_id = p.id) WHERE EXISTS (SELECT ? FROM sale_items s WHERE s.product_id = p.id);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery.json deleted file mode 100644 index 740712c5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/oracle/update/update-with-subquery.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "UPDATE products SET price = price * 0.9 WHERE id IN (SELECT product_id FROM inventory WHERE quantity > 100);", - "outputs": [ - { - "expected": "UPDATE products SET price = price * ? WHERE id IN ( SELECT product_id FROM inventory WHERE quantity > ? )", - "statement_metadata": { - "size": 29, - "tables": ["products", "inventory"], - "commands": ["UPDATE", "SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE products SET price = price * ? WHERE id IN (SELECT product_id FROM inventory WHERE quantity > ?);", - "normalizer_config": { - "keep_trailing_semicolon": true, - "remove_space_between_parentheses": true - } - } - ] - } - \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/delete-complex-subqueries-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/delete-complex-subqueries-joins.json deleted file mode 100644 index ef558339..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/delete-complex-subqueries-joins.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "DELETE FROM \n users u\nUSING \n orders o,\n order_items oi,\n products p\nWHERE \n u.id = o.user_id\nAND o.id = oi.order_id\nAND oi.product_id = p.id\nAND p.category = 'obsolete'\nAND o.order_date < NOW() - INTERVAL '5 years';", - "outputs": [ - { - "expected": "DELETE FROM users u USING orders o, order_items oi, products p WHERE u.id = o.user_id AND o.id = oi.order_id AND oi.product_id = p.id AND p.category = ? AND o.order_date < NOW ( ) - INTERVAL ?", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "DELETE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/insert-complex-select-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/insert-complex-select-joins.json deleted file mode 100644 index 841ce4b9..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/insert-complex-select-joins.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "input": "INSERT INTO order_summaries (order_id, product_count, total_amount, average_product_price)\nSELECT \n o.id,\n COUNT(p.id),\n SUM(oi.amount),\n AVG(p.price)\nFROM \n orders o\nJOIN order_items oi ON o.id = oi.order_id\nJOIN products p ON oi.product_id = p.id\nGROUP BY \n o.id\nHAVING \n SUM(oi.amount) > 1000;", - "outputs": [ - { - "expected": "INSERT INTO order_summaries ( order_id, product_count, total_amount, average_product_price ) SELECT o.id, COUNT ( p.id ), SUM ( oi.amount ), AVG ( p.price ) FROM orders o JOIN order_items oi ON o.id = oi.order_id JOIN products p ON oi.product_id = p.id GROUP BY o.id HAVING SUM ( oi.amount ) > ?", - "statement_metadata": { - "size": 56, - "tables": [ - "order_summaries", - "orders", - "order_items", - "products" - ], - "commands": [ - "INSERT", - "SELECT", - "JOIN" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-aggregates-subqueries.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-aggregates-subqueries.json deleted file mode 100644 index 1b2126a2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-aggregates-subqueries.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "input": "SELECT \n u.id,\n u.name,\n (SELECT COUNT(*) FROM orders o WHERE o.user_id = u.id) AS order_count,\n (SELECT SUM(amount) FROM payments p WHERE p.user_id = u.id) AS total_payments,\n (SELECT AVG(rating) FROM reviews r WHERE r.user_id = u.id) AS average_rating\nFROM \n users u\nWHERE \n EXISTS (\n SELECT 1 FROM logins l WHERE l.user_id = u.id AND l.time > NOW() - INTERVAL '1 month'\n )\nAND u.status = 'active'\nORDER BY \n total_payments DESC, average_rating DESC, order_count DESC\nLIMIT 10;", - "outputs": [ - { - "expected": "SELECT u.id, u.name, ( SELECT COUNT ( * ) FROM orders o WHERE o.user_id = u.id ), ( SELECT SUM ( amount ) FROM payments p WHERE p.user_id = u.id ), ( SELECT AVG ( rating ) FROM reviews r WHERE r.user_id = u.id ) FROM users u WHERE EXISTS ( SELECT ? FROM logins l WHERE l.user_id = u.id AND l.time > NOW ( ) - INTERVAL ? ) AND u.status = ? ORDER BY total_payments DESC, average_rating DESC, order_count DESC LIMIT ?", - "statement_metadata": { - "size": 38, - "tables": [ - "orders", - "payments", - "reviews", - "users", - "logins" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-joins-window-functions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-joins-window-functions.json deleted file mode 100644 index 71029e52..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-complex-joins-window-functions.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "SELECT \n e1.name AS employee_name,\n e1.test_amt,\n e2.name AS manager_name,\n AVG(e2.test_amt) OVER (PARTITION BY e1.manager_id) AS avg_manager_test_amt,\n RANK() OVER (ORDER BY e1.test_amt DESC) AS test_amt_rank\nFROM \n employees e1\nLEFT JOIN employees e2 ON e1.manager_id = e2.id\nWHERE \n e1.department_id IN (SELECT id FROM departments WHERE name LIKE 'IT%')\nAND \n e1.hire_date > '2020-01-01'\nORDER BY \n test_amt_rank, avg_manager_test_amt DESC;", - "outputs": [ - { - "expected": "SELECT e?.name, e?.test_amt, e?.name, AVG ( e?.test_amt ) OVER ( PARTITION BY e?.manager_id ), RANK ( ) OVER ( ORDER BY e?.test_amt DESC ) FROM employees e? LEFT JOIN employees e? ON e?.manager_id = e?.id WHERE e?.department_id IN ( SELECT id FROM departments WHERE name LIKE ? ) AND e?.hire_date > ? ORDER BY test_amt_rank, avg_manager_test_amt DESC", - "statement_metadata": { - "size": 30, - "tables": [ - "employees", - "departments" - ], - "commands": [ - "SELECT", - "JOIN" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-nested-subqueries-aggregates-limits.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-nested-subqueries-aggregates-limits.json deleted file mode 100644 index d8642455..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/select-nested-subqueries-aggregates-limits.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT \n user_id,\n order_id,\n order_total,\n user_total\nFROM (\n SELECT \n o.user_id,\n o.id AS order_id,\n o.total AS order_total,\n (SELECT SUM(total) FROM orders WHERE user_id = o.user_id) AS user_total,\n RANK() OVER (PARTITION BY o.user_id ORDER BY o.total DESC) AS rnk\n FROM \n orders o\n) sub\nWHERE \n sub.rnk = 1\nAND user_total > (\n SELECT \n AVG(total) * 2 \n FROM orders\n);", - "outputs": [ - { - "expected": "SELECT user_id, order_id, order_total, user_total FROM ( SELECT o.user_id, o.id, o.total, ( SELECT SUM ( total ) FROM orders WHERE user_id = o.user_id ), RANK ( ) OVER ( PARTITION BY o.user_id ORDER BY o.total DESC ) FROM orders o ) sub WHERE sub.rnk = ? AND user_total > ( SELECT AVG ( total ) * ? FROM orders )", - "statement_metadata": { - "size": 12, - "tables": [ - "orders" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/update-complex-subquery-conditional.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/update-complex-subquery-conditional.json deleted file mode 100644 index 15d51e02..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/complex/update-complex-subquery-conditional.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "UPDATE \n products p\nSET \n price = CASE \n WHEN p.stock < 10 THEN p.price * 1.10\n WHEN p.stock BETWEEN 10 AND 50 THEN p.price\n ELSE p.price * 0.90\n END,\n last_updated = NOW()\nFROM (\n SELECT \n product_id, \n SUM(quantity) AS stock\n FROM \n inventory\n GROUP BY \n product_id\n) AS sub\nWHERE \n sub.product_id = p.id;", - "outputs": [ - { - "expected": "UPDATE products p SET price = CASE WHEN p.stock < ? THEN p.price * ? WHEN p.stock BETWEEN ? AND ? THEN p.price ELSE p.price * ? END, last_updated = NOW ( ) FROM ( SELECT product_id, SUM ( quantity ) FROM inventory GROUP BY product_id ) WHERE sub.product_id = p.id", - "statement_metadata": { - "size": 29, - "tables": [ - "products", - "inventory" - ], - "commands": [ - "UPDATE", - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-all-rows.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-all-rows.json deleted file mode 100644 index 96eb980f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-all-rows.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "DELETE FROM temp_table;", - "outputs": [ - { - "expected": "DELETE FROM temp_table", - "statement_metadata": { - "size": 16, - "tables": [ - "temp_table" - ], - "commands": [ - "DELETE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-returning.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-returning.json deleted file mode 100644 index 772ac106..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-returning.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "DELETE FROM orders WHERE id = 8 RETURNING *;", - "outputs": [ - { - "expected": "DELETE FROM orders WHERE id = ? RETURNING *", - "statement_metadata": { - "size": 12, - "tables": [ - "orders" - ], - "commands": [ - "DELETE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-simple.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-simple.json deleted file mode 100644 index 0ddcff7a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-simple.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "DELETE FROM users WHERE id = 7;", - "outputs": [ - { - "expected": "DELETE FROM users WHERE id = ?", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "DELETE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-using-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-using-join.json deleted file mode 100644 index 60d22f4a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-using-join.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "DELETE FROM user_logins USING users WHERE user_logins.user_id = users.id AND users.status = 'inactive';", - "outputs": [ - { - "expected": "DELETE FROM user_logins USING users WHERE user_logins.user_id = users.id AND users.status = ?", - "statement_metadata": { - "size": 17, - "tables": [ - "user_logins" - ], - "commands": [ - "DELETE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-cte.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-cte.json deleted file mode 100644 index e721079c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-cte.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "WITH deleted AS (\n DELETE FROM users WHERE last_login < NOW() - INTERVAL '2 years' RETURNING *\n)\nSELECT * FROM deleted;", - "outputs": [ - { - "expected": "WITH deleted AS ( DELETE FROM users WHERE last_login < NOW ( ) - INTERVAL ? RETURNING * ) SELECT * FROM deleted", - "statement_metadata": { - "size": 24, - "tables": [ - "users", - "deleted" - ], - "commands": [ - "DELETE", - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-subquery.json deleted file mode 100644 index 8857f3aa..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/delete/delete-with-subquery.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "DELETE FROM comments WHERE user_id IN (SELECT id FROM users WHERE status = 'banned');", - "outputs": [ - { - "expected": "DELETE FROM comments WHERE user_id IN ( SELECT id FROM users WHERE status = ? )", - "statement_metadata": { - "size": 25, - "tables": [ - "comments", - "users" - ], - "commands": [ - "DELETE", - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-that-raises-notice.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-that-raises-notice.json deleted file mode 100644 index 3bb0c7cd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-that-raises-notice.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "CREATE OR REPLACE FUNCTION log_activity(activity text) RETURNS void AS $func$\nBEGIN\n RAISE NOTICE 'Activity: %', activity;\nEND;\n$func$ LANGUAGE plpgsql;", - "outputs": [ - { - "expected": "CREATE OR REPLACE FUNCTION log_activity ( activity text ) RETURNS void AS $func$BEGIN RAISE NOTICE ?, activity; END$func$ LANGUAGE plpgsql" - }, - { - "obfuscator_config": { - "dollar_quoted_func": false - }, - "expected": "CREATE OR REPLACE FUNCTION log_activity ( activity text ) RETURNS void AS ? LANGUAGE plpgsql" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-dynamic-query.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-dynamic-query.json deleted file mode 100644 index 8804741e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-dynamic-query.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "CREATE OR REPLACE FUNCTION dynamic_query(sql_query text) RETURNS SETOF RECORD AS $func$\nBEGIN\n RETURN QUERY EXECUTE sql_query;\nEND;\n$func$ LANGUAGE plpgsql;", - "outputs": [ - { - "expected": "CREATE OR REPLACE FUNCTION dynamic_query ( sql_query text ) RETURNS SETOF RECORD AS $func$BEGIN RETURN QUERY EXECUTE sql_query; END$func$ LANGUAGE plpgsql" - }, - { - "obfuscator_config": { - "dollar_quoted_func": false - }, - "expected": "CREATE OR REPLACE FUNCTION dynamic_query ( sql_query text ) RETURNS SETOF RECORD AS ? LANGUAGE plpgsql" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-parameters.json deleted file mode 100644 index 18f8e7f1..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "CREATE OR REPLACE FUNCTION get_user_email(user_id integer) RETURNS text AS $func$\nBEGIN\n RETURN (SELECT email FROM users WHERE id = user_id);\nEND;\n$func$ LANGUAGE plpgsql;", - "outputs": [ - { - "expected": "CREATE OR REPLACE FUNCTION get_user_email ( user_id integer ) RETURNS text AS $func$BEGIN RETURN ( SELECT email FROM users WHERE id = user_id ); END$func$ LANGUAGE plpgsql" - }, - { - "obfuscator_config": { - "dollar_quoted_func": false - }, - "expected": "CREATE OR REPLACE FUNCTION get_user_email ( user_id integer ) RETURNS text AS ? LANGUAGE plpgsql" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-table-return.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-table-return.json deleted file mode 100644 index dd9092d1..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-function-with-table-return.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "CREATE OR REPLACE FUNCTION get_users() RETURNS TABLE(user_id integer, user_name text) AS $func$\nBEGIN\n RETURN QUERY SELECT id, name FROM users;\nEND;\n$func$ LANGUAGE plpgsql;", - "outputs": [ - { - "expected": "CREATE OR REPLACE FUNCTION get_users ( ) RETURNS TABLE ( user_id integer, user_name text ) AS $func$BEGIN RETURN QUERY SELECT id, name FROM users; END$func$ LANGUAGE plpgsql" - }, - { - "obfuscator_config": { - "dollar_quoted_func": false - }, - "expected": "CREATE OR REPLACE FUNCTION get_users ( ) RETURNS TABLE ( user_id integer, user_name text ) AS ? LANGUAGE plpgsql" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-simple-plpgsql-function.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-simple-plpgsql-function.json deleted file mode 100644 index 0147b7d2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/create-simple-plpgsql-function.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "CREATE OR REPLACE FUNCTION get_user_count() RETURNS integer AS $func$\nBEGIN\n RETURN (SELECT COUNT(*) FROM users);\nEND;\n$func$ LANGUAGE plpgsql;", - "outputs": [ - { - "expected": "CREATE OR REPLACE FUNCTION get_user_count ( ) RETURNS integer AS $func$BEGIN RETURN ( SELECT COUNT ( * ) FROM users ); END$func$ LANGUAGE plpgsql" - }, - { - "obfuscator_config": { - "dollar_quoted_func": false - }, - "expected": "CREATE OR REPLACE FUNCTION get_user_count ( ) RETURNS integer AS ? LANGUAGE plpgsql" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-positional-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-positional-parameters.json deleted file mode 100644 index fe57a79b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-positional-parameters.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "input": "SELECT calculate_discount($1, $2);", - "outputs": [ - { - "expected": "SELECT calculate_discount ( ? )" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false - }, - "normalizer_config": { - "remove_space_between_parentheses": true - }, - "expected": "SELECT calculate_discount($1, $2)" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-returning-table.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-returning-table.json deleted file mode 100644 index 2b80ec4b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-returning-table.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "input": "SELECT * FROM get_users();", - "outputs": [ - { - "expected": "SELECT * FROM get_users ( )" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-that-raises-notice.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-that-raises-notice.json deleted file mode 100644 index 7e627ece..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-that-raises-notice.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "input": "SELECT log_activity('User logged in');", - "outputs": [ - { - "expected": "SELECT log_activity ( ? )" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-dynamic-query.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-dynamic-query.json deleted file mode 100644 index 492c03bc..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-dynamic-query.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "input": "SELECT * FROM dynamic_query('SELECT * FROM users WHERE id = 1') AS t(id integer, name text, email text);", - "outputs": [ - { - "expected": "SELECT * FROM dynamic_query ( ? ) AS t ( id integer, name text, email text )" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-parameter.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-parameter.json deleted file mode 100644 index 0c4d1d5d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-function-with-parameter.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "input": "SELECT get_user_email(1);", - "outputs": [ - { - "expected": "SELECT get_user_email ( ? )" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-simple-function.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-simple-function.json deleted file mode 100644 index 3af547cc..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/function/invoke-simple-function.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "input": "SELECT get_user_count();", - "outputs": [ - { - "expected": "SELECT get_user_count ( )" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-array-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-array-data.json deleted file mode 100644 index 0887b145..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-array-data.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "INSERT INTO users (name, favorite_numbers) VALUES ('Array User', ARRAY[3, 6, 9]);", - "outputs": [ - { - "expected": "INSERT INTO users ( name, favorite_numbers ) VALUES ( ?, ARRAY [ ? ] )", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "INSERT INTO users (name, favorite_numbers) VALUES (?, ARRAY [?])", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-json-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-json-data.json deleted file mode 100644 index 7a9c6559..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-json-data.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO events (data) VALUES ('{\"type\": \"user_signup\", \"user_id\": 1}');", - "outputs": [ - { - "expected": "INSERT INTO events ( data ) VALUES ( ? )", - "statement_metadata": { - "size": 12, - "tables": [ - "events" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-multiple-rows.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-multiple-rows.json deleted file mode 100644 index 7101dc7f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-multiple-rows.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO users (name, email) VALUES ('Jane Doe', 'jane@example.com'), ('Bob Smith', 'bob@example.com');", - "outputs": [ - { - "expected": "INSERT INTO users ( name, email ) VALUES ( ? ), ( ? )", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-positional-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-positional-parameters.json deleted file mode 100644 index b85086c5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-positional-parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "INSERT INTO users (name, email, age) VALUES ($1, $2, $3);", - "outputs": [ - { - "expected": "INSERT INTO users ( name, email, age ) VALUES ( ? )" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false - }, - "expected": "INSERT INTO users ( name, email, age ) VALUES ( $1, $2, $3 )" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-returning-positional-parameter.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-returning-positional-parameter.json deleted file mode 100644 index d9f4e220..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-returning-positional-parameter.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "INSERT INTO orders (product_id, quantity, total) VALUES ($1, $2, $3) RETURNING id;", - "outputs": [ - { - "expected": "INSERT INTO orders ( product_id, quantity, total ) VALUES ( ? ) RETURNING id" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false - }, - "expected": "INSERT INTO orders ( product_id, quantity, total ) VALUES ( $1, $2, $3 ) RETURNING id" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-simple-row.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-simple-row.json deleted file mode 100644 index 88bbe702..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-simple-row.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO users (name, email) VALUES ('John Doe', 'john@example.com');", - "outputs": [ - { - "expected": "INSERT INTO users ( name, email ) VALUES ( ? )", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-do-nothing.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-do-nothing.json deleted file mode 100644 index 0372dab6..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-do-nothing.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO users (id, name, email) VALUES (1, 'Duplicate', 'duplicate@example.com') ON CONFLICT (id) DO NOTHING;", - "outputs": [ - { - "expected": "INSERT INTO users ( id, name, email ) VALUES ( ? ) ON CONFLICT ( id ) DO NOTHING", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-update.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-update.json deleted file mode 100644 index 428cebb5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-conflict-update.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "input": "INSERT INTO users (id, name, email) VALUES (1, 'Duplicate', 'duplicate@example.com') ON CONFLICT (id) DO UPDATE SET email = EXCLUDED.email;", - "outputs": [ - { - "expected": "INSERT INTO users ( id, name, email ) VALUES ( ? ) ON CONFLICT ( id ) DO UPDATE SET email = EXCLUDED.email", - "statement_metadata": { - "size": 17, - "tables": [ - "users" - ], - "commands": [ - "INSERT", - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-default.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-default.json deleted file mode 100644 index 1f3a69f0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-default.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO products (name, price, description) VALUES ('New Product', 123, DEFAULT);", - "outputs": [ - { - "expected": "INSERT INTO products ( name, price, description ) VALUES ( ?, DEFAULT )", - "statement_metadata": { - "size": 14, - "tables": [ - "products" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-enum-type.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-enum-type.json deleted file mode 100644 index 0bb98b29..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-enum-type.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO shipments (status) VALUES ('delivered'::shipment_status);", - "outputs": [ - { - "expected": "INSERT INTO shipments ( status ) VALUES ( ? :: shipment_status )", - "statement_metadata": { - "size": 15, - "tables": [ - "shipments" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-geometric-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-geometric-data.json deleted file mode 100644 index bbae656c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-geometric-data.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO places (name, location) VALUES ('Point Place', point '(10, 20)');", - "outputs": [ - { - "expected": "INSERT INTO places ( name, location ) VALUES ( ?, point ? )", - "statement_metadata": { - "size": 12, - "tables": [ - "places" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-hstore-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-hstore-data.json deleted file mode 100644 index a71f5fba..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-hstore-data.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO user_profiles (profile) VALUES ('\"height\"=>\"2m\", \"weight\"=>\"70kg\"');", - "outputs": [ - { - "expected": "INSERT INTO user_profiles ( profile ) VALUES ( ? )", - "statement_metadata": { - "size": 19, - "tables": [ - "user_profiles" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-range-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-range-data.json deleted file mode 100644 index c17593e5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-range-data.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO reservations (during) VALUES ('[2023-01-01 14:00, 2023-01-01 15:00)');", - "outputs": [ - { - "expected": "INSERT INTO reservations ( during ) VALUES ( ? )", - "statement_metadata": { - "size": 18, - "tables": [ - "reservations" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-returning.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-returning.json deleted file mode 100644 index b75c50fd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-returning.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "INSERT INTO users (name, email) VALUES ('Alice Jones', 'alice@example.com') RETURNING id;", - "outputs": [ - { - "expected": "INSERT INTO users ( name, email ) VALUES ( ? ) RETURNING id", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "INSERT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-select.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-select.json deleted file mode 100644 index 5325d6b5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-select.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "INSERT INTO user_logins (user_id, login_time) SELECT id, NOW() FROM users WHERE active;", - "outputs": [ - { - "expected": "INSERT INTO user_logins ( user_id, login_time ) SELECT id, NOW ( ) FROM users WHERE active", - "statement_metadata": { - "size": 28, - "tables": [ - "user_logins", - "users" - ], - "commands": [ - "INSERT", - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-subquery-and-alias.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-subquery-and-alias.json deleted file mode 100644 index dfdbfe79..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/insert/insert-with-subquery-and-alias.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "INSERT INTO user_logins (user_id, login_time) SELECT u.id, NOW() FROM users u WHERE u.active;", - "outputs": [ - { - "expected": "INSERT INTO user_logins ( user_id, login_time ) SELECT u.id, NOW ( ) FROM users u WHERE u.active", - "statement_metadata": { - "size": 28, - "tables": [ - "user_logins", - "users" - ], - "commands": [ - "INSERT", - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/aggregate-functions-count.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/aggregate-functions-count.json deleted file mode 100644 index 3119a2c0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/aggregate-functions-count.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT COUNT(*) AS total_users FROM users;", - "outputs": [ - { - "expected": "SELECT COUNT ( * ) FROM users", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT COUNT(*) FROM users", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/basic_select_with_alias.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/basic_select_with_alias.json deleted file mode 100644 index 5fd8a336..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/basic_select_with_alias.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "input": "SELECT u.id AS user_id, u.name AS username FROM users u;", - "outputs": [ - { - "expected": "SELECT u.id, u.name FROM users u", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "normalizer_config": { - "keep_sql_alias": true - }, - "expected": "SELECT u.id AS user_id, u.name AS username FROM users u" - }, - { - "normalizer_config": { - "keep_trailing_semicolon": true - }, - "expected": "SELECT u.id, u.name FROM users u;" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/case-statements.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/case-statements.json deleted file mode 100644 index 6beb2c0a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/case-statements.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT name, CASE WHEN age < 18 THEN 'minor' ELSE 'adult' END FROM users;", - "outputs": [ - { - "expected": "SELECT name, CASE WHEN age < ? THEN ? ELSE ? END FROM users", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/common-table-expressions-cte.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/common-table-expressions-cte.json deleted file mode 100644 index 34a1eb9e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/common-table-expressions-cte.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "WITH recursive_subordinates AS (\n SELECT id, manager_id FROM employees WHERE id = 1\n UNION ALL\n SELECT e.id, e.manager_id FROM employees e INNER JOIN recursive_subordinates rs ON rs.id = e.manager_id\n)\nSELECT * FROM recursive_subordinates;", - "outputs": [ - { - "expected": "WITH recursive_subordinates AS ( SELECT id, manager_id FROM employees WHERE id = ? UNION ALL SELECT e.id, e.manager_id FROM employees e INNER JOIN recursive_subordinates rs ON rs.id = e.manager_id ) SELECT * FROM recursive_subordinates", - "statement_metadata": { - "size": 41, - "tables": [ - "employees", - "recursive_subordinates" - ], - "commands": [ - "SELECT", - "JOIN" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/cross-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/cross-joins.json deleted file mode 100644 index aeaa4a1f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/cross-joins.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "SELECT * FROM users CROSS JOIN cities;", - "outputs": [ - { - "expected": "SELECT * FROM users CROSS JOIN cities", - "statement_metadata": { - "size": 21, - "tables": [ - "users", - "cities" - ], - "commands": [ - "SELECT", - "JOIN" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/distinct-on-expressions.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/distinct-on-expressions.json deleted file mode 100644 index 25d8e90d..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/distinct-on-expressions.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT DISTINCT ON (location) location, time FROM events ORDER BY location, time DESC;", - "outputs": [ - { - "expected": "SELECT DISTINCT ON ( location ) location, time FROM events ORDER BY location, time DESC", - "statement_metadata": { - "size": 12, - "tables": [ - "events" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/fetch-first-clause.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/fetch-first-clause.json deleted file mode 100644 index a6b7f906..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/fetch-first-clause.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT * FROM users ORDER BY created_at DESC FETCH FIRST 10 ROWS ONLY;", - "outputs": [ - { - "expected": "SELECT * FROM users ORDER BY created_at DESC FETCH FIRST ? ROWS ONLY", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/for-update-of.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/for-update-of.json deleted file mode 100644 index b8299044..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/for-update-of.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "input": "SELECT * FROM users WHERE last_login < NOW() - INTERVAL '1 year' FOR UPDATE OF users;", - "outputs": [ - { - "expected": "SELECT * FROM users WHERE last_login < NOW ( ) - INTERVAL ? FOR UPDATE OF users", - "statement_metadata": { - "size": 17, - "tables": [ - "users" - ], - "commands": [ - "SELECT", - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/full-outer-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/full-outer-joins.json deleted file mode 100644 index f3329ff7..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/full-outer-joins.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "SELECT * FROM customers FULL OUTER JOIN orders ON customers.id = orders.customer_id;", - "outputs": [ - { - "expected": "SELECT * FROM customers FULL OUTER JOIN orders ON customers.id = orders.customer_id", - "statement_metadata": { - "size": 25, - "tables": [ - "customers", - "orders" - ], - "commands": [ - "SELECT", - "JOIN" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/group-by-having.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/group-by-having.json deleted file mode 100644 index 58b73c1b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/group-by-having.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT status, COUNT(*) FROM orders GROUP BY status HAVING COUNT(*) > 1;", - "outputs": [ - { - "expected": "SELECT status, COUNT ( * ) FROM orders GROUP BY status HAVING COUNT ( * ) > ?", - "statement_metadata": { - "size": 12, - "tables": [ - "orders" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT status, COUNT(*) FROM orders GROUP BY status HAVING COUNT(*) > ?", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/json-field-access.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/json-field-access.json deleted file mode 100644 index c4cdfdce..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/json-field-access.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT data->'customer'->>'name' AS customer_name FROM orders;", - "outputs": [ - { - "expected": "SELECT data -> ? ->> ? FROM orders", - "statement_metadata": { - "size": 12, - "tables": [ - "orders" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-elements-text.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-elements-text.json deleted file mode 100644 index 9cce21b8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-elements-text.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT jsonb_array_elements_text(data->'tags') AS tag FROM products;", - "outputs": [ - { - "expected": "SELECT jsonb_array_elements_text ( data -> ? ) FROM products", - "statement_metadata": { - "size": 14, - "tables": [ - "products" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT jsonb_array_elements_text(data -> ?) FROM products", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-length.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-length.json deleted file mode 100644 index f0113eea..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-array-length.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT jsonb_array_length(data->'tags') AS num_tags FROM products;", - "outputs": [ - { - "expected": "SELECT jsonb_array_length ( data -> ? ) FROM products", - "statement_metadata": { - "size": 14, - "tables": [ - "products" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT jsonb_array_length(data -> ?) FROM products", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contained-in-path.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contained-in-path.json deleted file mode 100644 index 27ecb7d9..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contained-in-path.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT * FROM events WHERE payload <@ '{\"events\": {\"type\": \"user_event\"}}';", - "outputs": [ - { - "expected": "SELECT * FROM events WHERE payload <@ ?", - "statement_metadata": { - "size": 12, - "tables": [ - "events" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-key.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-key.json deleted file mode 100644 index 1485e099..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-key.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT * FROM events WHERE payload ? 'user_id';", - "outputs": [ - { - "expected": "SELECT * FROM events WHERE payload ? ?", - "statement_metadata": { - "size": 12, - "tables": [ - "events" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-object-at-top-level.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-object-at-top-level.json deleted file mode 100644 index 9fae952b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-contains-object-at-top-level.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT * FROM events WHERE payload @> '{\"type\": \"user_event\"}';", - "outputs": [ - { - "expected": "SELECT * FROM events WHERE payload @> ?", - "statement_metadata": { - "size": 12, - "tables": [ - "events" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-array-element.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-array-element.json deleted file mode 100644 index c224a8b5..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-array-element.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT data #- '{tags,0}' AS tags_without_first FROM products;", - "outputs": [ - { - "expected": "SELECT data #- ? FROM products", - "statement_metadata": { - "size": 14, - "tables": [ - "products" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-key.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-key.json deleted file mode 100644 index ce40e284..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-key.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT data - 'temporary_field' AS cleaned_data FROM user_profiles;", - "outputs": [ - { - "expected": "SELECT data - ? FROM user_profiles", - "statement_metadata": { - "size": 19, - "tables": [ - "user_profiles" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-path.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-path.json deleted file mode 100644 index f452fd1c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-delete-path.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "input": "SELECT jsonb_set(data, '{info,address}', NULL) AS removed_address FROM users;", - "outputs": [ - { - "expected": "SELECT jsonb_set ( data, ?, ? ) FROM users", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT jsonb_set(data, ?, NULL) FROM users", - "obfuscator_config": { - "replace_null": false - }, - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path-text.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path-text.json deleted file mode 100644 index 9f7b5297..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path-text.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT jsonb_extract_path_text(data, 'user', 'name') AS user_name FROM user_profiles;", - "outputs": [ - { - "expected": "SELECT jsonb_extract_path_text ( data, ?, ? ) FROM user_profiles", - "statement_metadata": { - "size": 19, - "tables": [ - "user_profiles" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT jsonb_extract_path_text(data, ?, ?) FROM user_profiles", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path.json deleted file mode 100644 index 79e00e1b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-extract-path.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT jsonb_extract_path(data, 'user', 'name') AS user_name FROM user_profiles;", - "outputs": [ - { - "expected": "SELECT jsonb_extract_path ( data, ?, ? ) FROM user_profiles", - "statement_metadata": { - "size": 19, - "tables": [ - "user_profiles" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT jsonb_extract_path(data, ?, ?) FROM user_profiles", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-pretty-print.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-pretty-print.json deleted file mode 100644 index 6b373c2e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-pretty-print.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT jsonb_pretty(data) AS pretty_data FROM logs;", - "outputs": [ - { - "expected": "SELECT jsonb_pretty ( data ) FROM logs", - "statement_metadata": { - "size": 10, - "tables": [ - "logs" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT jsonb_pretty(data) FROM logs", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-set-new-value.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-set-new-value.json deleted file mode 100644 index 433bac49..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/jsonb-set-new-value.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT jsonb_set(data, '{user,name}', '\"John Doe\"') AS updated_data FROM user_profiles;", - "outputs": [ - { - "expected": "SELECT jsonb_set ( data, ?, ? ) FROM user_profiles", - "statement_metadata": { - "size": 19, - "tables": [ - "user_profiles" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT jsonb_set(data, ?, ?) FROM user_profiles", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/lateral-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/lateral-joins.json deleted file mode 100644 index feb22135..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/lateral-joins.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "input": "SELECT u.name, json_agg(l) FROM users u, LATERAL (SELECT id, text FROM logs WHERE logs.user_id = u.id) AS l GROUP BY u.name;", - "outputs": [ - { - "expected": "SELECT u.name, json_agg ( l ) FROM users u, LATERAL ( SELECT id, text FROM logs WHERE logs.user_id = u.id ) GROUP BY u.name", - "statement_metadata": { - "size": 15, - "tables": [ - "users", - "logs" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT u.name, json_agg(l) FROM users u, LATERAL (SELECT id, text FROM logs WHERE logs.user_id = u.id) GROUP BY u.name", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/limit-and-offset.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/limit-and-offset.json deleted file mode 100644 index 6bdafb4c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/limit-and-offset.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT * FROM users ORDER BY created_at DESC LIMIT 10 OFFSET 20;", - "outputs": [ - { - "expected": "SELECT * FROM users ORDER BY created_at DESC LIMIT ? OFFSET ?", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/natural-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/natural-joins.json deleted file mode 100644 index 437be5db..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/natural-joins.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "SELECT * FROM users NATURAL JOIN user_profiles;", - "outputs": [ - { - "expected": "SELECT * FROM users NATURAL JOIN user_profiles", - "statement_metadata": { - "size": 28, - "tables": [ - "users", - "user_profiles" - ], - "commands": [ - "SELECT", - "JOIN" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-case-sensitive.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-case-sensitive.json deleted file mode 100644 index d9896d15..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-case-sensitive.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "SELECT \"OrderId\", \"OrderDate\", \"CustomerName\" FROM \"Sales\".\"Orders\" WHERE \"OrderStatus\" = 'Shipped'", - "outputs": [ - { - "expected": "SELECT OrderId, OrderDate, CustomerName FROM Sales.Orders WHERE OrderStatus = ?", - "statement_metadata": { - "size": 18, - "tables": ["Sales.Orders"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "normalizer_config": { - "keep_identifier_quotation": true - }, - "expected": "SELECT \"OrderId\", \"OrderDate\", \"CustomerName\" FROM \"Sales\".\"Orders\" WHERE \"OrderStatus\" = ?" - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-special-characters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-special-characters.json deleted file mode 100644 index e7203e6f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/quoted-identifiers-special-characters.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "SELECT * FROM \"Sales\".\"Order-Details\" WHERE \"Product#Name\" LIKE '%Gadget%'", - "outputs": [ - { - "expected": "SELECT * FROM Sales.Order-Details WHERE Product#Name LIKE ?", - "statement_metadata": { - "size": 25, - "tables": ["Sales.Order-Details"], - "commands": ["SELECT"], - "comments": [], - "procedures": [] - } - }, - { - "normalizer_config": { - "keep_identifier_quotation": true - }, - "expected": "SELECT * FROM \"Sales\".\"Order-Details\" WHERE \"Product#Name\" LIKE ?" - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-in-clause-positional-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-in-clause-positional-parameters.json deleted file mode 100644 index 3c02bbca..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-in-clause-positional-parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "SELECT * FROM orders WHERE status IN ($1, $2, $3);", - "outputs": [ - { - "expected": "SELECT * FROM orders WHERE status IN ( ? )" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false - }, - "expected": "SELECT * FROM orders WHERE status IN ( $1, $2, $3 )" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-multiple-conditions-positional-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-multiple-conditions-positional-parameters.json deleted file mode 100644 index 08e468bb..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-multiple-conditions-positional-parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "SELECT * FROM products WHERE category = $1 AND price < $2;", - "outputs": [ - { - "expected": "SELECT * FROM products WHERE category = ? AND price < ?" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false - }, - "expected": "SELECT * FROM products WHERE category = $1 AND price < $2" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-with-positional-parameter.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-with-positional-parameter.json deleted file mode 100644 index 18007873..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/select-with-positional-parameter.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "SELECT * FROM users WHERE id = $1;", - "outputs": [ - { - "expected": "SELECT * FROM users WHERE id = ?" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false - }, - "expected": "SELECT * FROM users WHERE id = $1" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/self-joins.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/self-joins.json deleted file mode 100644 index 9a34cbd9..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/self-joins.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT a.name, b.name FROM employees a, employees b WHERE a.manager_id = b.id;", - "outputs": [ - { - "expected": "SELECT a.name, b.name FROM employees a, employees b WHERE a.manager_id = b.id", - "statement_metadata": { - "size": 15, - "tables": [ - "employees" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-from.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-from.json deleted file mode 100644 index af14f66e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-from.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "SELECT user_data.name FROM (SELECT name FROM users WHERE active = true) AS user_data;", - "outputs": [ - { - "expected": "SELECT user_data.name FROM ( SELECT name FROM users WHERE active = ? )", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "SELECT user_data.name FROM ( SELECT name FROM users WHERE active = true )", - "obfuscator_config": { - "replace_boolean": false - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-select.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-select.json deleted file mode 100644 index a8f2cea3..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-select.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "input": "SELECT name, (SELECT COUNT(*) FROM orders WHERE orders.user_id = users.id) AS order_count FROM users;", - "outputs": [ - { - "expected": "SELECT name, ( SELECT COUNT ( * ) FROM orders WHERE orders.user_id = users.id ) FROM users", - "statement_metadata": { - "size": 17, - "tables": [ - "orders", - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-where.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-where.json deleted file mode 100644 index a8516ffd..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/subquery-in-where.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "input": "SELECT name FROM users WHERE id IN (SELECT user_id FROM orders WHERE total > 100);", - "outputs": [ - { - "expected": "SELECT name FROM users WHERE id IN ( SELECT user_id FROM orders WHERE total > ? )", - "statement_metadata": { - "size": 17, - "tables": [ - "users", - "orders" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/tablesample-bernoulli.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/tablesample-bernoulli.json deleted file mode 100644 index c7a9c533..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/select/tablesample-bernoulli.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT * FROM users TABLESAMPLE BERNOULLI (10);", - "outputs": [ - { - "expected": "SELECT * FROM users TABLESAMPLE BERNOULLI ( ? )", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-array-append.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-array-append.json deleted file mode 100644 index 907d8621..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-array-append.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "UPDATE users SET favorite_numbers = array_append(favorite_numbers, 42) WHERE id = 5;", - "outputs": [ - { - "expected": "UPDATE users SET favorite_numbers = array_append ( favorite_numbers, ? ) WHERE id = ?", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-increment-numeric.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-increment-numeric.json deleted file mode 100644 index 7feabe9b..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-increment-numeric.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "UPDATE accounts SET balance = balance + 100.0 WHERE user_id = 4;", - "outputs": [ - { - "expected": "UPDATE accounts SET balance = balance + ? WHERE user_id = ?", - "statement_metadata": { - "size": 14, - "tables": [ - "accounts" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-json-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-json-data.json deleted file mode 100644 index 95ba8927..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-json-data.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "UPDATE events SET data = jsonb_set(data, '{location}', '\"New Location\"') WHERE data->>'event_id' = '123';", - "outputs": [ - { - "expected": "UPDATE events SET data = jsonb_set ( data, ?, ? ) WHERE data ->> ? = ?", - "statement_metadata": { - "size": 12, - "tables": [ - "events" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE events SET data = jsonb_set(data, ?, ?) WHERE data ->> ? = ?", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-multiple-fields-positional-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-multiple-fields-positional-parameters.json deleted file mode 100644 index 04a7d986..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-multiple-fields-positional-parameters.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "input": "DELETE FROM sessions WHERE user_id = $1 AND expired = true;", - "outputs": [ - { - "expected": "DELETE FROM sessions WHERE user_id = ? AND expired = ?" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false, - "replace_boolean": false - }, - "expected": "DELETE FROM sessions WHERE user_id = $1 AND expired = true" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-positional-parameters.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-positional-parameters.json deleted file mode 100644 index 631b13c2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-positional-parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "input": "UPDATE users SET email = $1 WHERE id = $2;", - "outputs": [ - { - "expected": "UPDATE users SET email = ? WHERE id = ?" - }, - { - "obfuscator_config": { - "replace_positional_parameter": false - }, - "expected": "UPDATE users SET email = $1 WHERE id = $2" - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-returning.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-returning.json deleted file mode 100644 index e65fc2ee..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-returning.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "input": "UPDATE users SET last_login = NOW() WHERE id = 3 RETURNING last_login;", - "outputs": [ - { - "expected": "UPDATE users SET last_login = NOW ( ) WHERE id = ? RETURNING last_login", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE users SET last_login = NOW() WHERE id = ? RETURNING last_login", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-multiple-columns.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-multiple-columns.json deleted file mode 100644 index 62d037b2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-multiple-columns.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "UPDATE users SET name = 'Jane Updated', email = 'jane.updated@example.com' WHERE id = 2;", - "outputs": [ - { - "expected": "UPDATE users SET name = ?, email = ? WHERE id = ?", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-single-column.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-single-column.json deleted file mode 100644 index 85972d0c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-set-single-column.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "UPDATE users SET name = 'John Updated' WHERE id = 1;", - "outputs": [ - { - "expected": "UPDATE users SET name = ? WHERE id = ?", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-using-join.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-using-join.json deleted file mode 100644 index 219899f2..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-using-join.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "input": "UPDATE orders SET total = total * 0.9 FROM users WHERE users.id = orders.user_id AND users.status = 'VIP';", - "outputs": [ - { - "expected": "UPDATE orders SET total = total * ? FROM users WHERE users.id = orders.user_id AND users.status = ?", - "statement_metadata": { - "size": 17, - "tables": [ - "orders", - "users" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-case.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-case.json deleted file mode 100644 index 82cdf51a..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-case.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "UPDATE users SET status = CASE WHEN last_login < NOW() - INTERVAL '1 year' THEN 'inactive' ELSE status END;", - "outputs": [ - { - "expected": "UPDATE users SET status = CASE WHEN last_login < NOW ( ) - INTERVAL ? THEN ? ELSE status END", - "statement_metadata": { - "size": 11, - "tables": [ - "users" - ], - "commands": [ - "UPDATE" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-cte.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-cte.json deleted file mode 100644 index 60fd0c4f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-cte.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "WITH updated AS (\n UPDATE users SET name = 'CTE Updated' WHERE id = 6 RETURNING *\n)\nSELECT * FROM updated;", - "outputs": [ - { - "expected": "WITH updated AS ( UPDATE users SET name = ? WHERE id = ? RETURNING * ) SELECT * FROM updated", - "statement_metadata": { - "size": 24, - "tables": [ - "users", - "updated" - ], - "commands": [ - "UPDATE", - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-subquery.json b/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-subquery.json deleted file mode 100644 index a49aec33..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/postgresql/update/update-with-subquery.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "input": "UPDATE products SET price = (SELECT MAX(price) FROM products) * 0.9 WHERE name = 'Old Product';", - "outputs": [ - { - "expected": "UPDATE products SET price = ( SELECT MAX ( price ) FROM products ) * ? WHERE name = ?", - "statement_metadata": { - "size": 20, - "tables": [ - "products" - ], - "commands": [ - "UPDATE", - "SELECT" - ], - "comments": [], - "procedures": [] - } - }, - { - "expected": "UPDATE products SET price = (SELECT MAX(price) FROM products) * ? WHERE name = ?", - "normalizer_config": { - "remove_space_between_parentheses": true - } - } - ] -} \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/data-clone.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/data-clone.json deleted file mode 100644 index fa93a67e..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/data-clone.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "input": "CREATE TABLE new_table CLONE existing_table;", - "outputs": [ - { - "expected": "CREATE TABLE new_table CLONE existing_table", - "statement_metadata": { - "size": 34, - "tables": [ - "new_table", - "existing_table" - ], - "commands": [ - "CREATE", - "CLONE" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/external-data.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/external-data.json deleted file mode 100644 index 931a73d8..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/external-data.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "CREATE EXTERNAL TABLE ext_sales_data (sale_date DATE, product_id STRING, quantity_sold NUMBER) WITH LOCATION = @my_external_stage/sales_data/ FILE_FORMAT = (TYPE = 'CSV' FIELD_OPTIONALLY_ENCLOSED_BY = '\"');", - "outputs": [ - { - "expected": "CREATE EXTERNAL TABLE ext_sales_data ( sale_date DATE, product_id STRING, quantity_sold NUMBER ) WITH LOCATION = @my_external_stage/sales_data/ FILE_FORMAT = ( TYPE = ? FIELD_OPTIONALLY_ENCLOSED_BY = ? )", - "statement_metadata": { - "size": 20, - "tables": [ - "ext_sales_data" - ], - "commands": [ - "CREATE" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/listagg.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/listagg.json deleted file mode 100644 index 0c106807..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/listagg.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT LISTAGG(product_name, ', ') WITHIN GROUP (ORDER BY product_name) AS product_list FROM products WHERE category_id = 1;", - "outputs": [ - { - "expected": "SELECT LISTAGG ( product_name, ? ) WITHIN GROUP ( ORDER BY product_name ) FROM products WHERE category_id = ?", - "statement_metadata": { - "size": 14, - "tables": [ - "products" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/materialized-view.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/materialized-view.json deleted file mode 100644 index 3dbbfe4f..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/materialized-view.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "input": "CREATE MATERIALIZED VIEW mv_product_sales AS SELECT product_id, SUM(sales_amount) AS total_sales FROM sales GROUP BY product_id;", - "outputs": [ - { - "expected": "CREATE MATERIALIZED VIEW mv_product_sales AS SELECT product_id, SUM ( sales_amount ) FROM sales GROUP BY product_id", - "statement_metadata": { - "size": 17, - "tables": [ - "sales" - ], - "commands": [ - "CREATE", - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/semi-structured-data-types.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/semi-structured-data-types.json deleted file mode 100644 index 3153b66c..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/semi-structured-data-types.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT metadata:customerID::string AS customer_id FROM orders WHERE metadata:orderDate::date = '2023-01-01';", - "outputs": [ - { - "expected": "SELECT metadata : customerID :: string FROM orders WHERE metadata : orderDate :: date = ?", - "statement_metadata": { - "size": 12, - "tables": [ - "orders" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/stream.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/stream.json deleted file mode 100644 index 6b9aa761..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/stream.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "CREATE STREAM my_stream ON TABLE my_table;", - "outputs": [ - { - "expected": "CREATE STREAM my_stream ON TABLE my_table", - "statement_metadata": { - "size": 14, - "tables": [ - "my_table" - ], - "commands": [ - "CREATE" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/task.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/task.json deleted file mode 100644 index 3f2b13a0..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/task.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "input": "CREATE TASK /* my comment */ my_task WAREHOUSE = my_warehouse SCHEDULE = '15 MINUTE' AS INSERT INTO summary_table SELECT * FROM new_data_view;", - "outputs": [ - { - "expected": "CREATE TASK my_task WAREHOUSE = my_warehouse SCHEDULE = ? AS INSERT INTO summary_table SELECT * FROM new_data_view", - "statement_metadata": { - "size": 60, - "tables": [ - "summary_table", - "new_data_view" - ], - "commands": [ - "CREATE", - "INSERT", - "SELECT" - ], - "comments": ["/* my comment */"], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/time-travel.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/time-travel.json deleted file mode 100644 index 45415f39..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/time-travel.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "input": "SELECT * FROM my_table AT (TIMESTAMP => '2023-03-15 14:30:00');", - "outputs": [ - { - "expected": "SELECT * FROM my_table AT ( TIMESTAMP => ? )", - "statement_metadata": { - "size": 14, - "tables": [ - "my_table" - ], - "commands": [ - "SELECT" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/warehouse-controls.json b/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/warehouse-controls.json deleted file mode 100644 index 300cd2fe..00000000 --- a/vendor/github.com/DataDog/go-sqllexer/testdata/snowflake/test-cases/warehouse-controls.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "input": "ALTER WAREHOUSE my_warehouse SET WAREHOUSE_SIZE = 'X-LARGE';", - "outputs": [ - { - "expected": "ALTER WAREHOUSE my_warehouse SET WAREHOUSE_SIZE = ?", - "statement_metadata": { - "size": 5, - "tables": [ - ], - "commands": [ - "ALTER" - ], - "comments": [], - "procedures": [] - } - } - ] - } \ No newline at end of file diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_intermediate_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_intermediate_cert.der deleted file mode 100644 index 958f3cfaddf3645fa6c0578b5b6955d65ac4c172..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 998 zcmXqLVt!=M#B^!_GZP~dlZfxTkgMw#Mx5CteAhsdS=K*t&xAY!UN%mxHjlRNyo`+8 ztPBQ??S|Y2oNUaYENsF|p}{Z?2M?38qoI(207!`V#>K<# zoS$2em{(~iXuuB=;pX9R$t=q(&dkp<6f+P32{H5V78@nTm!uY##3!c~l^9AHNWiV< zWEA7BsH}1TV!h=2Tmw0AULzv|Gec7&Lt`^z^C)p%6J+ina%mHz5^^vyvNA9?G4eAQ zG%<29H8CnfQWlH+MyjTjz z2Bjk+Ub9TzT(Z$!`+w1f9a{SYn?h^$U$mDJKK^KOurlxGlhf8coXvjW^}bgt-rFjD znHJ|Xo9Wew;}%JlW_Kjsthc+chb^XXpU3LOdy_KCS4OTntgUFd?YsGkV{8gPCrIUU z7xZ1<|6Oe5g44&3J$ODp>G5YKW=00a#V!U;2J*mEAgjzGVIbBZvce&_^W7!+r|T*d zavIkkZ(n>dQ`LY6q(GR3)qt6i@xOr}h$qOxWx&zImXe>Fn2DZTf#J-^uui3sYst!# z{ImS~I{#0uS#WDz%!i-3yIxOGkACKhN$DyM2L{LbrkL@xJCpY3crHP)J~LHEx;nsZlX$z1Na++S~*x&F8L zSHsIX`Pf;-7fz4f$yxWfRV}c$Te2$X#22gkrUlwjtNp9{IiD}~zjo}z)1J=iJoj~z zPFk$n)~eK8B%5+0@w1g$N8H(l+-H4!LOMmyS_+%b`$^TD`}g=z?!9=Gts-l=GE2@y HTP6bly#{pd diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_leaf_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_leaf_cert.der deleted file mode 100644 index d2817641bafb022339926786ab85b545f40ac665..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1147 zcmXqLVktLhVvb+H%*4pVB*OPMYW498DSV5WgVNVW|Jr8oCgimNFB_*;n@8JsUPeZ4 zRtAH{c0+ChPB!LH7B*p~&|nycgNMo4(NM@h03^fC!x>zfmseSqn3HNKV890w6yxnyM_06xZQcZ?W@M4y!->Y40>Qzg1y0 z&gNQpqF{|c>D+ZZ(rFIKEL_n{%!~|-iyLnkG+s4m+z3nvvdS!tD-9Z#Eo|&v(%3b4 zVzNoZ_g%=<^$R1;>=M3fAjvH2AGv2jo&gWY$-*qG2F#3%{|y8|JV6#N1CA!Pl>FSp z%sk}C2j(GQ()!XwH^ngbB~t_{rh@w&h5|n>_#Tt3odjy zuPCdY_u)fF^#8=jc^^+Q{aqN5`$@Gm({I-q6VU_LtQOD6naL>j(`V|D&;QI6%^$Dc z@$uH$=blqSKTV1FFaEpmVP=>@vvi*Y`l|mqO|ORNA0oIS8nOI z?NiA8%5=ljL@D29-OKpueEYz|zv5rHb554&taa#n7142tpUKWU?R-O_r^0)6j>G3Y aOB;Xxy<$H9NT-Uzt(mu6i*GEf3IzZ)c%0q< diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_root_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/client_root_cert.der deleted file mode 100644 index d8c3710c85f9ff41ddfc709924c866350a727a4f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmXqLV*Y5*#B_53GZP~dlZa+?pWMd9xVH0Kw4Tf@Xyh=ks1AdSQHxGwPW?5!&W`3Tbn1KjLh?$4C*eEf+B(=CCJ~_3h#8ApW0&YDg zqZoHZWt9UE>m}#s8pw(B8W|aw8XFoJ7#JIxMv3#90J%nHQ0^ddX%nLoaxgNoGB7tW z@-rATF>*0AF)}hdZr#y6M}F(|x(>G^%gcAlKWcTb*S((Se#vIyuMojqJ6T@W9G$-N zZ|C3aC}V-ru$PA$a>||`V5!;WvLO9;#Z4xLTYkS~Q%%)mH+DGbsA<2rr@8F$Psyk! zC02_czBy5RY)XCG=Yl1DX=(>VSrdJ-C#|hK7^zn?b35awX)f$Ntvf$$ zcUg9sL1fPSDbXqWt6$VVZu~MYZrj`2y}fI?80UuXsujC8ao09pzReSEFH3&Hjk;!&j?yPw^7|NHlfMLseyY=TyHB}&&4U!T;kt&%Ic z-@@f=`1w!pGyVU%zJI$PWGYXZ;?Bg($iTQb*dWkA7MKcT`B=nQL{>NicfPwM|8!l2 zLQdoQtUFt($qvv(cdI=i6tz3tUW`|a0C z&5N-8^H(H$?psgMz!}^;s& z=?+d?)Hkg%emvc~QLj+DwRvTMu)Tl4_m}{_7kTC1{xNsF-p9krsM-B)Ge_#Kiu#~{ zd67^5U(N6lVcaug+5}Tw2V+f_-BCNQyG;7WAZ_<^`6QjCrOhu7&ztq4tdo7t^%&>) zTR0VF*I2Sr HHQW{e5x{wf diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_intermediate_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_intermediate_cert.der deleted file mode 100644 index dae619c097512f20d09d2054c63fc0f715d7be24..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 998 zcmXqLVt!=M#B^!_GZP~dlZZk6mxvepr#-!NVoqOL*`yn*LOZ7#@Un4gwRyCC=VfH% zW@RvFY&YaK;ACSCWnmL$3Jr#FICz+x9SwyH1VA$EJeHTH8JZfJT11KSnjmurkxQExm5_sxk(GhDiIJbd zpox)-sfm%1VO{t`EzVyWX$3+}`kJnrGQY>^=jnZyz4d%;|IQeuB_Gcfo1a{_>B5Fg zXYbI=4K*7QZdjc*51-)~EjRzyir2SPA5Z@zcTLeXV*g^*2f0P(7p>c z?c<>#uh>H(ryKBq6bQ4h8Za|5{x=W=@dR183^XGxLzc8JJvw;mpWjp+5Pu z!*lq#5Sb^i@`a>klJNjzx%iu)2*?h3yy-gEL(;p^g~mZo#n!wzh9Qua5C+wfRd ztarh_l9E{Oro7&WNVTl@3-~vy&EDU;)-f|r-8<&mQ>C=;``&D2+5V0(pW(g3o1}Sj z^gY793Mi&+ntK1`1tm%ENt=U{rb%k1PtbRHEhYTylqR?8HqOeuvA1fBY>pc~NUFTR KZE!sDzAgX``fm0B diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_leaf_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_leaf_cert.der deleted file mode 100644 index ce7f8d31d6802c7e68c188af8797c3a063894857..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1147 zcmXqLVktLhVvb+H%*4pVB%&$)xidhT`$ARBi)~L`p2_`@+!*`b5acj4ER7|Ts-W~ z`MCv&d6kBO2K*oqZXOPo%(Bel%=|nTUzhK>3dC_Z(le%bCn$9moio9jI@8{ zd;5%c{XT!(ig$;5K+$bpwI6ChVmse+UV1r`!RY5*U#A%ppFJxS>PX#w$sz7*X_R~A zg!|$g&z66XI$)aW-TrxDio@fp!U^sS#+*GdHMB|H?BTf!^g~J_=D$Y-Ot{~xpTg~G+{k6 Zdr{DieczoQDL-a%Ib3(Tsv+bGCjf+Ap-TV& diff --git a/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_root_cert.der b/vendor/github.com/google/s2a-go/internal/v2/certverifier/testdata/server_root_cert.der deleted file mode 100644 index 04b0d73600b72f80a03943d41973b279db9e8b32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmXqLV*Y5*#B_53GZP~dlZb{E^N!s~snriRh?%)HJiGKl>CAisUN%mxHjlRNyo`+8 ztPBQ??S|Y2oNUaYENsF|p}{Z?2M?38qoI(207!`V#>K<# zoS$2em{(~iXuuB=;pX9R$t=q(&dkp<6f+P32{H5V78@nTm!uY##3!c~l^9AHNWiV< zWEA7BsH}1TV!h=2Tmw0AULzv|Q)5FT0|N^q(aL-(RkWjuO*nCZC(^b4{cp%V+e53*PfoZW)2DU5BJN^Jypf0+ z%dyqB7eAAEDfH_&Z*6C3aP8^9M)sYbgC^`~v;4F5#oepTLYl5+2bdY(i!-?My>4G) z&8u+L`?_9LxQB1$HP?fpd*5i(-|SJJ!`sZHa8UZu(QeP3Dc(Yr8?G#iY20z>);Fh$ zMQ>DZHkC%KUBdEb&cYv;1sHCx@Vv~#%*epFIM^W2Ko*z^WcgUcSVVXxICA%7?w=9J zwOIRjXviz}kjUu<@*rtt76}8f2J8wz2}@R(k?}tZs{u2RLJoFd>IDWnBZI}4y?mP{ zW+WALO{`uTY0T-O8uy=9`&z_;*e^$wYu3!Wz-Re-&a7vV%g_8h++q8CMf&zxTFdl~ zp5i+{-R9L&+mdUFEBoKr@u=5M->UQ>MNWJ7BRi)4^M4~B*uKhe`J%yAbG&-Thr?bk zCap+`USuL4V}qf=6kBV_EFAN zmIn*31Qb`P{oxd|=2o5l$|&AdTJ_-*k&5oDQvTTOiN8OjczyHyta?pWMd9xVH0Kw4Tf@Xyh=ks1AdSQHxGwPW?5!&W`3Tbn1KjLh?$4C*eEf+B(=CCJ~_3h#8ApW0&YDg zqZoHZWt9UE>m}#s8pw(B8W|aw8XFoJ7#JIxMv3#90J%nHQ0^ddX%nLoaxgNoGB7tW z@-rATF>*0AF)}hdZr#y6M}F(|x(>G^%gcAlKWcTb*S((Se#vIyuMojqJ6T@W9G$-N zZ|C3aC}V-ru$PA$a>||`V5!;WvLO9;#Z4xLTYkS~Q%%)mH+DGbsA<2rr@8F$Psyk! zC02_czBy5RY)XCG=Yl1DX=(>VSrdJ-C#|hK7^zn?b35awX)f$Ntvf$$ zcUg9sL1fPSDbXqWt6$VVZu~MYZrj`2y}fI?80UuXsujC8ao09pzReSEFH3&Hjk;!&j?yPw^7|NHlfMLseyY=TyHB}&&4U!T;kt&%Ic z-@@f=`1w!pGyVU%zJI$PWGYXZ;?Bg($iTQb*dWkA7MKcT`B=nQL{>NicfPwM|8!l2 zLQdoQtUFt($qvv(cdI=i6tz3tUW`|a0C z&5N-8^H(H$?psgMz!}^;s& z=?+d?)Hkg%emvc~QLj+DwRvTMu)Tl4_m}{_7kTC1{xNsF-p9krsM-B)Ge_#Kiu#~{ zd67^5U(N6lVcaug+5}Tw2V+f_-BCNQyG;7WAZ_<^`6QjCrOhu7&ztq4tdo7t^%&>) zTR0VF*I2Sr HHQW{e5x{wf diff --git a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem b/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem deleted file mode 100644 index 493a5a26..00000000 --- a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_cert.pem +++ /dev/null @@ -1,24 +0,0 @@ ------BEGIN CERTIFICATE----- -MIID8TCCAtmgAwIBAgIUKXNlBRVe6UepjQUijIFPZBd/4qYwDQYJKoZIhvcNAQEL -BQAwgYcxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTESMBAGA1UEBwwJU3Vubnl2 -YWxlMRAwDgYDVQQKDAdDb21wYW55MREwDwYDVQQLDAhEaXZpc2lvbjEWMBQGA1UE -AwwNczJhX3Rlc3RfY2VydDEaMBgGCSqGSIb3DQEJARYLeHl6QHh5ei5jb20wHhcN -MjIwNTMxMjAwMzE1WhcNNDIwNTI2MjAwMzE1WjCBhzELMAkGA1UEBhMCVVMxCzAJ -BgNVBAgMAkNBMRIwEAYDVQQHDAlTdW5ueXZhbGUxEDAOBgNVBAoMB0NvbXBhbnkx -ETAPBgNVBAsMCERpdmlzaW9uMRYwFAYDVQQDDA1zMmFfdGVzdF9jZXJ0MRowGAYJ -KoZIhvcNAQkBFgt4eXpAeHl6LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC -AQoCggEBAOOFuIucH7XXfohGxKd3uR/ihUA/LdduR9I8kfpUEbq5BOt8xZe5/Yn9 -a1ozEHVW6cOAbHbnwAR8tkSgZ/t42QIA2k77HWU1Jh2xiEIsJivo3imm4/kZWuR0 -OqPh7MhzxpR/hvNwpI5mJsAVBWFMa5KtecFZLnyZtwHylrRN1QXzuLrOxuKFufK3 -RKbTABScn5RbZL976H/jgfSeXrbt242NrIoBnVe6fRbekbq2DQ6zFArbQMUgHjHK -P0UqBgdr1QmHfi9KytFyx9BTP3gXWnWIu+bY7/v7qKJMHFwGETo+dCLWYevJL316 -HnLfhApDMfP8U+Yv/y1N/YvgaSOSlEcCAwEAAaNTMFEwHQYDVR0OBBYEFKhAU4nu -0h/lrnggbIGvx4ej0WklMB8GA1UdIwQYMBaAFKhAU4nu0h/lrnggbIGvx4ej0Wkl -MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAE/6NghzQ5fu6yR6 -EHKbj/YMrFdT7aGn5n2sAf7wJ33LIhiFHkpWBsVlm7rDtZtwhe891ZK/P60anlg9 -/P0Ua53tSRVRmCvTnEbXWOVMN4is6MsR7BlmzUxl4AtIn7jbeifEwRL7B4xDYmdA -QrQnsqoz45dLgS5xK4WDqXATP09Q91xQDuhud/b+A4jrvgwFASmL7rMIZbp4f1JQ -nlnl/9VoTBQBvJiWkDUtQDMpRLtauddEkv4AGz75p5IspXWD6cOemuh2iQec11xD -X20rs2WZbAcAiUa3nmy8OKYw435vmpj8gp39WYbX/Yx9TymrFFbVY92wYn+quTco -pKklVz0= ------END CERTIFICATE----- diff --git a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem b/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem deleted file mode 100644 index 55a7f10c..00000000 --- a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/client_key.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEogIBAAKCAQEA44W4i5wftdd+iEbEp3e5H+KFQD8t125H0jyR+lQRurkE63zF -l7n9if1rWjMQdVbpw4BsdufABHy2RKBn+3jZAgDaTvsdZTUmHbGIQiwmK+jeKabj -+Rla5HQ6o+HsyHPGlH+G83CkjmYmwBUFYUxrkq15wVkufJm3AfKWtE3VBfO4us7G -4oW58rdEptMAFJyflFtkv3vof+OB9J5etu3bjY2sigGdV7p9Ft6RurYNDrMUCttA -xSAeMco/RSoGB2vVCYd+L0rK0XLH0FM/eBdadYi75tjv+/uookwcXAYROj50ItZh -68kvfXoect+ECkMx8/xT5i//LU39i+BpI5KURwIDAQABAoIBABgyjo/6iLzUMFbZ -/+w3pW6orrdIgN2akvTfED9pVYFgUA+jc3hRhY95bkNnjuaL2cy7Cc4Tk65mfRQL -Y0OxdJLr+EvSFSxAXM9npDA1ddHRsF8JqtFBSxNk8R+g1Yf0GDiO35Fgd3/ViWWA -VtQkRoSRApP3oiQKTRZd8H04keFR+PvmDk/Lq11l3Kc24A1PevKIPX1oI990ggw9 -9i4uSV+cnuMxmcI9xxJtgwdDFdjr39l2arLOHr4s6LGoV2IOdXHNlv5xRqWUZ0FH -MDHowkLgwDrdSTnNeaVNkce14Gqx+bd4hNaLCdKXMpedBTEmrut3f3hdV1kKjaKt -aqRYr8ECgYEA/YDGZY2jvFoHHBywlqmEMFrrCvQGH51m5R1Ntpkzr+Rh3YCmrpvq -xgwJXING0PUw3dz+xrH5lJICrfNE5Kt3fPu1rAEy+13mYsNowghtUq2Rtu0Hsjjx -2E3Bf8vEB6RNBMmGkUpTTIAroGF5tpJoRvfnWax+k4pFdrKYFtyZdNcCgYEA5cNv -EPltvOobjTXlUmtVP3n27KZN2aXexTcagLzRxE9CV4cYySENl3KuOMmccaZpIl6z -aHk6BT4X+M0LqElNUczrInfVqI+SGAFLGy7W6CJaqSr6cpyFUP/fosKpm6wKGgLq -udHfpvz5rckhKd8kJxFLvhGOK9yN5qpzih0gfhECgYAJfwRvk3G5wYmYpP58dlcs -VIuPenqsPoI3PPTHTU/hW+XKnWIhElgmGRdUrto9Q6IT/Y5RtSMLTLjq+Tzwb/fm -56rziYv2XJsfwgAvnI8z1Kqrto9ePsHYf3krJ1/thVsZPc9bq/QY3ohD1sLvcuaT -GgBBnLOVJU3a12/ZE2RwOwKBgF0csWMAoj8/5IB6if+3ral2xOGsl7oPZVMo/J2V -Z7EVqb4M6rd/pKFugTpUQgkwtkSOekhpcGD1hAN5HTNK2YG/+L5UMAsKe9sskwJm -HgOfAHy0BSDzW3ey6i9skg2bT9Cww+0gJ3Hl7U1HSCBO5LjMYpSZSrNtwzfqdb5Q -BX3xAoGARZdR28Ej3+/+0+fz47Yu2h4z0EI/EbrudLOWY936jIeAVwHckI3+BuqH -qR4poj1gfbnMxNuI9UzIXzjEmGewx9kDZ7IYnvloZKqoVQODO5GlKF2ja6IcMNlh -GCNdD6PSAS6HcmalmWo9sj+1YMkrl+GJikKZqVBHrHNwMGAG67w= ------END RSA PRIVATE KEY----- diff --git a/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.der b/vendor/github.com/google/s2a-go/internal/v2/remotesigner/testdata/server_cert.der deleted file mode 100644 index 04b0d73600b72f80a03943d41973b279db9e8b32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmXqLV*Y5*#B_53GZP~dlZb{E^N!s~snriRh?%)HJiGKl>CAisUN%mxHjlRNyo`+8 ztPBQ??S|Y2oNUaYENsF|p}{Z?2M?38qoI(207!`V#>K<# zoS$2em{(~iXuuB=;pX9R$t=q(&dkp<6f+P32{H5V78@nTm!uY##3!c~l^9AHNWiV< zWEA7BsH}1TV!h=2Tmw0AULzv|Q)5FT0|N^q(aL-(RkWjuO*nCZC(^b4{cp%V+e53*PfoZW)2DU5BJN^Jypf0+ z%dyqB7eAAEDfH_&Z*6C3aP8^9M)sYbgC^`~v;4F5#oepTLYl5+2bdY(i!-?My>4G) z&8u+L`?_9LxQB1$HP?fpd*5i(-|SJJ!`sZHa8UZu(QeP3Dc(Yr8?G#iY20z>);Fh$ zMQ>DZHkC%KUBdEb&cYv;1sHCx@Vv~#%*epFIM^W2Ko*z^WcgUcSVVXxICA%7?w=9J zwOIRjXviz}kjUu<@*rtt76}8f2J8wz2}@R(k?}tZs{u2RLJoFd>IDWnBZI}4y?mP{ zW+WALO{`uTY0T-O8uy=9`&z_;*e^$wYu3!Wz-Re-&a7vV%g_8h++q8CMf&zxTFdl~ zp5i+{-R9L&+mdUFEBoKr@u=5M->UQ>MNWJ7BRi)4^M4~B*uKhe`J%yAbG&-Thr?bk zCap+`USuL4V}qf=6kBV_EFAN zmIn*31Qb`P{oxd|=2o5l$|&AdTJ_-*k&5oDQvTTOiN8OjczyHyta