-
Notifications
You must be signed in to change notification settings - Fork 0
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
QueryResultRow conversion for Product types #13
Labels
enhancement
New feature or request
Comments
I didn't try it, but I like the proposal! |
benedeki
added a commit
that referenced
this issue
Sep 25, 2024
* implicit class that adds the ability to convert `QueryResultRow` to a product type * implicit classes that add `getOrThrow` methods to `Option` and `Map` * copied `NamingConvention` classes from Fa-DB * added `sbt testAll` alias * enhanced the README.md to include some basic classes of the library used for DB testing
benedeki
added a commit
that referenced
this issue
Oct 4, 2024
* implicit class that adds the ability to convert `QueryResultRow` to a product type * implicit classes that add `getOrThrow` methods to `Option` and `Map` * copied `NamingConvention` classes from Fa-DB * added `sbt testAll` alias * enhanced the README.md to include some basic classes of the library used for DB testing --------- Co-authored-by: miroslavpojer <[email protected]> Co-authored-by: Ladislav Sulak <[email protected]>
github-project-automation
bot
moved this from 🆕 To groom
to ✅ Done
in CPS small repos project
Oct 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
At the moment it's difficult to create test assertions of the db results given the fact that one needs to extract fields from the QueryResultRow object. I propose to enhance capabilities of the library to allow for automatic instance creation for product types.
Feature
Balta will be able to create instances of product types from QueryResultRow
Example
Proposed Solution for Discussion
An example of possible solution (needs to be tested for various scenarios, only tested on the test example above)
The text was updated successfully, but these errors were encountered: