blob: 7afe159e89c5a0703216b473628acdb07feb0d39 (
plain) (
tree)
|
|
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.26.0
// source: query.sql
package db
import (
"context"
"github.com/jackc/pgx/v5/pgtype"
)
const enterUsage = `-- name: EnterUsage :exec
INSERT INTO Usage (
HardwareAddr, StartTime, StopTime, Egress, Ingress
) VALUES (
$1, $2, $3, $4, $5
)
`
type EnterUsageParams struct {
Hardwareaddr int64
Starttime pgtype.Timestamp
Stoptime pgtype.Timestamp
Egress int64
Ingress int64
}
func (q *Queries) EnterUsage(ctx context.Context, arg EnterUsageParams) error {
_, err := q.db.Exec(ctx, enterUsage,
arg.Hardwareaddr,
arg.Starttime,
arg.Stoptime,
arg.Egress,
arg.Ingress,
)
return err
}
|