Replies: 1 comment
-
I found instead of declaring the db schema's Participants column as type |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am working the GORM and postgresql database. What I want is to scan
[]int64
from the database into a variable, I tried to usedb.Model().Scan()
but it didnt worked so I came acrossdb.Model().Pluck()
method and after reading the related docs I saw it is used to scan[]int64
values, I thought I got my solution but it didnt worked either, I enabled log mode and here's what I found:My db schema struct:
Entering a new value in db (without participants as it defaults to empty array):
Scanning for the participants array:
What can I do to solve these errors?
Beta Was this translation helpful? Give feedback.
All reactions