rigged shuffle
This commit is contained in:
@@ -10,6 +10,19 @@ import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
const addSVGIcon = `-- name: AddSVGIcon :one
|
||||
INSERT INTO svg_icon (svg)
|
||||
VALUES (?)
|
||||
RETURNING id
|
||||
`
|
||||
|
||||
func (q *Queries) AddSVGIcon(ctx context.Context, svg string) (int64, error) {
|
||||
row := q.db.QueryRowContext(ctx, addSVGIcon, svg)
|
||||
var id int64
|
||||
err := row.Scan(&id)
|
||||
return id, err
|
||||
}
|
||||
|
||||
const createCustomer = `-- name: CreateCustomer :exec
|
||||
INSERT INTO customer (
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user