24 lines
380 B
Go
24 lines
380 B
Go
|
// 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
|
||
|
}
|