26 lines
432 B
Go
26 lines
432 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.27.0
|
|
// source: queries.sql
|
|
|
|
package pgstore
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
const getRoom = `-- name: GetRoom :one
|
|
SELECT
|
|
"id", "theme"
|
|
FROM rooms
|
|
WHERE id = $1
|
|
`
|
|
|
|
func (q *Queries) GetRoom(ctx context.Context, id uuid.UUID) (Room, error) {
|
|
row := q.db.QueryRow(ctx, getRoom, id)
|
|
var i Room
|
|
err := row.Scan(&i.ID, &i.Theme)
|
|
return i, err
|
|
}
|