nyanimedb/sql/queries.sql.go
nihonium db53ae04e3
Some checks failed
Build and Deploy Go App / build (push) Failing after 4m35s
Build and Deploy Go App / deploy (push) Has been skipped
refact!: project structure
2025-10-25 21:05:16 +03:00

23 lines
481 B
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
// source: queries.sql
package sqlc
import (
"context"
)
const getImageByID = `-- name: GetImageByID :one
SELECT image_id, storage_type, image_path
FROM images
WHERE image_id = $1
`
func (q *Queries) GetImageByID(ctx context.Context, imageID int32) (Image, error) {
row := q.db.QueryRow(ctx, getImageByID, imageID)
var i Image
err := row.Scan(&i.ImageID, &i.StorageType, &i.ImagePath)
return i, err
}