Skip to content

Commit

Permalink
Postgres works
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljharvey committed Oct 25, 2024
1 parent bf6f502 commit 8829dd6
Show file tree
Hide file tree
Showing 17 changed files with 2,681 additions and 2,680 deletions.
12 changes: 6 additions & 6 deletions crates/tests/databases-tests/src/postgres/explain_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ mod mutation {
&["Insert", "Aggregate"],
result
.details
.get("0 v2_insert_custom_dog Execution Plan")
.get("0 insert_custom_dog Execution Plan")
.unwrap(),
);
insta::assert_snapshot!(result
.details
.get("0 v2_insert_custom_dog SQL Mutation")
.get("0 insert_custom_dog SQL Mutation")
.unwrap());
}

Expand All @@ -185,12 +185,12 @@ mod mutation {
],
result
.details
.get("0 v2_delete_InvoiceLine_by_InvoiceLineId Execution Plan")
.get("0 delete_InvoiceLine_by_InvoiceLineId Execution Plan")
.unwrap(),
);
insta::assert_snapshot!(result
.details
.get("0 v2_delete_InvoiceLine_by_InvoiceLineId SQL Mutation")
.get("0 delete_InvoiceLine_by_InvoiceLineId SQL Mutation")
.unwrap());
}

Expand All @@ -202,12 +202,12 @@ mod mutation {
&["Update", "Aggregate"],
result
.details
.get("1 v2_update_custom_dog_by_id Execution Plan")
.get("1 update_custom_dog_by_id Execution Plan")
.unwrap(),
);
insta::assert_snapshot!(result
.details
.get("1 v2_update_custom_dog_by_id SQL Mutation")
.get("1 update_custom_dog_by_id SQL Mutation")
.unwrap());
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: crates/tests/databases-tests/src/postgres/explain_tests.rs
expression: "result.details.get(\"0 v2_delete_InvoiceLine_by_InvoiceLineId SQL Mutation\").unwrap()"
expression: "result.details.get(\"0 delete_InvoiceLine_by_InvoiceLineId SQL Mutation\").unwrap()"
---
EXPLAIN WITH "%0_generated_mutation" AS (
DELETE FROM
Expand Down Expand Up @@ -71,10 +71,10 @@ SELECT
SELECT
coalesce(
bool_and(
"%10_v2_delete_InvoiceLine_by_InvoiceLineId"."%check__constraint"
"%10_delete_InvoiceLine_by_InvoiceLineId"."%check__constraint"
),
true
) AS "%check__constraint"
FROM
"%0_generated_mutation" AS "%10_v2_delete_InvoiceLine_by_InvoiceLineId"
"%0_generated_mutation" AS "%10_delete_InvoiceLine_by_InvoiceLineId"
) AS "%check__constraint"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: crates/tests/databases-tests/src/postgres/explain_tests.rs
expression: "result.details.get(\"0 v2_insert_custom_dog SQL Mutation\").unwrap()"
expression: "result.details.get(\"0 insert_custom_dog SQL Mutation\").unwrap()"
---
EXPLAIN WITH "%0_generated_mutation" AS (
INSERT INTO
Expand Down Expand Up @@ -63,9 +63,9 @@ SELECT
(
SELECT
coalesce(
bool_and("%7_v2_insert_custom_dog"."%check__constraint"),
bool_and("%7_insert_custom_dog"."%check__constraint"),
true
) AS "%check__constraint"
FROM
"%0_generated_mutation" AS "%7_v2_insert_custom_dog"
"%0_generated_mutation" AS "%7_insert_custom_dog"
) AS "%check__constraint"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: crates/tests/databases-tests/src/postgres/explain_tests.rs
expression: "result.details.get(\"1 v2_update_custom_dog_by_id SQL Mutation\").unwrap()"
expression: "result.details.get(\"1 update_custom_dog_by_id SQL Mutation\").unwrap()"
---
EXPLAIN WITH "%0_generated_mutation" AS (
UPDATE
Expand Down Expand Up @@ -61,10 +61,10 @@ SELECT
SELECT
coalesce(
bool_and(
"%7_v2_update_custom_dog_by_id"."%check__constraint"
"%7_update_custom_dog_by_id"."%check__constraint"
),
true
) AS "%check__constraint"
FROM
"%0_generated_mutation" AS "%7_v2_update_custom_dog_by_id"
"%0_generated_mutation" AS "%7_update_custom_dog_by_id"
) AS "%check__constraint"
Loading

0 comments on commit 8829dd6

Please sign in to comment.