25 lines
487 B
Go
25 lines
487 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.28.0
|
|
// source: queries.sql
|
|
|
|
package sqlc
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
const getStationByID = `-- name: GetStationByID :one
|
|
select id, slug, status
|
|
from stations
|
|
where id = $1
|
|
`
|
|
|
|
func (q *Queries) GetStationByID(ctx context.Context, id pgtype.UUID) (Station, error) {
|
|
row := q.db.QueryRow(ctx, getStationByID, id)
|
|
var i Station
|
|
err := row.Scan(&i.ID, &i.Slug, &i.Status)
|
|
return i, err
|
|
}
|