-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable createMany-related capabilities and tests for SQLite (#4779
) Co-authored-by: Flavian Desverne <[email protected]>
- Loading branch information
Showing
26 changed files
with
369 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ prisma-gpg-private.asc | |
.test_config | ||
*.pending-snap | ||
.pending.md | ||
dev.db | ||
|
||
*.class | ||
*.log | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ paste = "1.0.14" | |
|
||
[dev-dependencies] | ||
insta = "1.7.1" | ||
itertools.workspace = true |
23 changes: 23 additions & 0 deletions
23
query-engine/connector-test-kit-rs/query-engine-tests/src/utils/metrics.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use serde_json::Value; | ||
|
||
pub fn get_counter(json: &Value, name: &str) -> u64 { | ||
let metric_value = get_metric_value(json, "counters", name); | ||
metric_value.as_u64().unwrap() | ||
} | ||
|
||
pub fn get_gauge(json: &Value, name: &str) -> f64 { | ||
let metric_value = get_metric_value(json, "gauges", name); | ||
metric_value.as_f64().unwrap() | ||
} | ||
|
||
pub fn get_metric_value(json: &Value, metric_type: &str, name: &str) -> serde_json::Value { | ||
let metrics = json.get(metric_type).unwrap().as_array().unwrap(); | ||
let metric = metrics | ||
.iter() | ||
.find(|metric| metric.get("key").unwrap().as_str() == Some(name)) | ||
.unwrap() | ||
.as_object() | ||
.unwrap(); | ||
|
||
metric.get("value").unwrap().clone() | ||
} |
1 change: 1 addition & 0 deletions
1
query-engine/connector-test-kit-rs/query-engine-tests/src/utils/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
mod batch; | ||
mod bytes; | ||
mod json; | ||
pub mod metrics; | ||
mod querying; | ||
mod raw; | ||
mod string; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
query-engine/connector-test-kit-rs/query-engine-tests/tests/new/regressions/prisma_14001.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.