feat: init
This commit is contained in:
parent
7688020b52
commit
6302dd62d6
33 changed files with 6027 additions and 0 deletions
25
internal/repository/sqlc/queries.sql.go
Normal file
25
internal/repository/sqlc/queries.sql.go
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue