SELECT * FROM items WHERE account_id = $1 AND lower(name) LIKE '%$2%'
like '\'%foo%\''
Hi, I'm having problems with the primarykey
tag in gorp. It seems to be ignored resep. used as column name !?
type Meta struct {
Periodic
Id string `db:"uuid, primarykey"`
CreatedAt time.Time `db:"createdAt"`
}
That ends up in the database as:
\d gtin
Table "public.gtin"
Column | Type | Collation | Nullable | Default
------------------+--------------------------+-----------+----------+---------
uuid, primarykey | text | | |