-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
Do you had any plans to support Postgres JSON/JSONB data types? One example would be a "containment" query against JSONB structures.
Currently I use a work around like this:
type Tag struct {
Key string
Value string
....
}
raw, _ := json.Marshal(Tag{Key: "some-key", "Value": "some-value"})
lk.Select().From("table").Where(lk.Raw(fmt.Sprintf(`tags @> '%s'`, string(raw))))
Thank you for your work on this wonderful library!
Reactions are currently unavailable