implement cli
This commit is contained in:
@@ -10,6 +10,15 @@ import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
const addSvg = `-- name: AddSvg :exec
|
||||
INSERT INTO svg_icon (svg) VALUES (?)
|
||||
`
|
||||
|
||||
func (q *Queries) AddSvg(ctx context.Context, svg string) error {
|
||||
_, err := q.db.ExecContext(ctx, addSvg, svg)
|
||||
return err
|
||||
}
|
||||
|
||||
const createCustomer = `-- name: CreateCustomer :exec
|
||||
INSERT INTO customer (
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user