-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(driver-adapters): add "version()" support to QuaintQueryable #5103
Conversation
CodSpeed Performance ReportMerging #5103 will not alter performanceComparing Summary
|
WASM Query Engine file Size
|
@@ -130,9 +130,25 @@ impl QuaintQueryable for JsBaseQueryable { | |||
.await | |||
} | |||
|
|||
// Note: Needed by the Wasm Schema Engine only. | |||
async fn version(&self) -> quaint::Result<Option<String>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this call might be covered in some existing schema engine test, but I think it might be worth writing a basic explicit test case to ensure it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't any infra to run Driver Adapters in Schema Engine tests right now, so this cannot be achieved currently. But in principle, I'd agree with you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 minor comment but lgtm otherwise
This PR adds a
version()
implementation toQuaintQueryable
inquery-engine/driver-adapters/src/queryable.rs
.This is needed for
schema-engine-wasm
.