Skip to content
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

Show method for render statements #988

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GrigoriiBerezin
Copy link

  • add show method for statements
  • add tests on show for all sql dialects
  • add show info in README

@GrigoriiBerezin
Copy link
Author

@jczuchnowski review plz when you will have free time.
Have some thoughts about inheritance Read, Update, Insert and Delete from one trait to have one type class with pattern matching for all statements
P.S. don't understand why website job is failing also

- add tests on `show` for all sql dialects
- add `show` info in README
@GrigoriiBerezin GrigoriiBerezin force-pushed the add_show_and_tests branch 2 times, most recently from 6a54403 to b3c8ae8 Compare April 29, 2024 13:14
- add tests on `show` for all sql dialects
- add `show` info in README
@@ -54,6 +54,22 @@ trait Sql {

def renderInsert[A: Schema](insert: Insert[_, A]): SqlStatement

implicit class readOps(read: Read[_]) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems that this implicit class should extend AnyVal

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, thx, will fix it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, can't do it due to show method dependency on realization of trait, which is prohibited for value class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants