39 lines
871 B
Go
39 lines
871 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.29.0
|
|
// source: queries-file_properties.sql
|
|
|
|
package sqlc
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
const insertFileProperties = `-- name: InsertFileProperties :exec
|
|
INSERT INTO file_properties (
|
|
id, sha256, md5, libmagic_mime, libmagic_extension, libmagic_apple
|
|
) VALUES ($1, $2, $3, $4, $5, $6)
|
|
`
|
|
|
|
type InsertFilePropertiesParams struct {
|
|
ID pgtype.UUID
|
|
Sha256 []byte
|
|
Md5 []byte
|
|
LibmagicMime pgtype.Text
|
|
LibmagicExtension pgtype.Text
|
|
LibmagicApple pgtype.Text
|
|
}
|
|
|
|
func (q *Queries) InsertFileProperties(ctx context.Context, arg InsertFilePropertiesParams) error {
|
|
_, err := q.db.Exec(ctx, insertFileProperties,
|
|
arg.ID,
|
|
arg.Sha256,
|
|
arg.Md5,
|
|
arg.LibmagicMime,
|
|
arg.LibmagicExtension,
|
|
arg.LibmagicApple,
|
|
)
|
|
return err
|
|
}
|