Skip to content

Commit

Permalink
Merge pull request #56 from hasura/djh/stream-results-out
Browse files Browse the repository at this point in the history
Stream large results out
  • Loading branch information
danieljharvey authored Nov 2, 2023
2 parents 72e1efd + 5dd1eb5 commit 1fefa63
Show file tree
Hide file tree
Showing 6 changed files with 1,444 additions and 11 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions crates/ndc-sqlserver/tests/goldenfiles/select_many.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"collection": "Album",
"query": {
"fields": {
"ArtistId": { "type": "column", "column": "ArtistId" },
"Title": {
"type": "column",
"column": "Title"
}
}
},
"arguments": {},
"collection_relationships": {}
}
6 changes: 6 additions & 0 deletions crates/ndc-sqlserver/tests/query_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ mod basic {
let result = run_query("select_int_and_string").await;
insta::assert_json_snapshot!(result);
}

#[tokio::test]
async fn select_many() {
let result = run_query("select_many").await;
insta::assert_json_snapshot!(result);
}
}

mod predicates {
Expand Down
Loading

0 comments on commit 1fefa63

Please sign in to comment.