hiling_go/db/sqlc/users.sql.go

24 lines
380 B
Go
Raw Normal View History

2023-09-08 22:24:58 +07:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.20.0
// source: users.sql
package db
import (
"context"
)
const createUser = `-- name: CreateUser :exec
INSERT INTO users (
ipv4_address
) VALUES (
$1
)
`
func (q *Queries) CreateUser(ctx context.Context, ipv4Address string) error {
_, err := q.db.ExecContext(ctx, createUser, ipv4Address)
return err
}