-
Notifications
You must be signed in to change notification settings - Fork 48
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
How to use sqlx.types in modl models for json postgres type? #32
Comments
jmoiron/sqlx#117 PR were helpful. The code, may be helpful for someone:
|
Ok, saving to db working good, selecting one field working good too.
|
It may be because your |
I want to use postgresql json type for keep golang maps.
I know that i need to implement some
sql.Scanner
anddriver.Valuer
interfaces, but they already implemented for typeJsonText
in sqlx.types package. TheJsonText
type looks like what i need.So, give me a right way please.
The text was updated successfully, but these errors were encountered: