-
Notifications
You must be signed in to change notification settings - Fork 69
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
Thank you for this library #12
Comments
To add to this.. does it support struct tags in any way? |
@georgysavva Excellent. I tried that out and it works great. Very cool. |
You mean when we have a struct filled with data and we want to save this data to the database? I thought about implementing this actually. The only thing that stopped me is that different databases have a different symbol for query arguments: |
BTW I added the list of all features to the readme file. |
Yah.. and that's a good point. Oddly I thought this was a library for pgx which was postgresql. I came to it from pgx.. but I see you support others as well. Until we have generics you would be stuck implementing db specific implementations. I am good with that :D. The name though.. scany.. may contradict the opposite direction, pushy or story... :D |
I don't like the idea of db specific implementations. Alternatively, we could use this approach:
For MySQL:
For SQL server:
So the query will contain named argument with the special symbol specific for the database of the user and scany library will detect this symbol and resolve it to the proper query, valid for this database. This way scany doesn't need any configuration from the user, because it gets the special symbol in every query. |
Hello. Greetings and thanks for a great piece of code. Do you have any kind of answer how Some of my projects are build with Thanks in advance! |
@pashagolub Thanks for reaching out!
Those are the main points. UPD: added section to readme with the comparison with sqlx |
@georgysavva are these named query parameters already implemented into scany? i could perhaps integrate that feature set from my library (https://github.com/anton7r/pgxe) into scany. |
Hey @anton7r. No, I actually haven't started working on this yet. So feel free to shoot a PR with your integration! |
@georgysavva yeah, opened it #71 |
Thank you so much for building this library, it saved me a lot of time. You rock!
Does it support omitting certain properties from a struct?
The text was updated successfully, but these errors were encountered: