bluebell/database/sites.sql.go

25 lines
472 B
Go
Raw Permalink Normal View History

2024-08-10 13:28:30 +01:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.25.0
// source: sites.sql
package database
import (
"context"
)
const getSiteByDomain = `-- name: GetSiteByDomain :one
SELECT id, domain, token
FROM sites
WHERE domain = ?
LIMIT 1
`
func (q *Queries) GetSiteByDomain(ctx context.Context, domain string) (Site, error) {
row := q.db.QueryRowContext(ctx, getSiteByDomain, domain)
var i Site
err := row.Scan(&i.ID, &i.Domain, &i.Token)
return i, err
}