22 lines
374 B
Go
22 lines
374 B
Go
|
// Code generated by sqlc. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// sqlc v1.25.0
|
||
|
// source: zone.sql
|
||
|
|
||
|
package model
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
const countZones = `-- name: CountZones :one
|
||
|
SELECT COUNT(*) FROM zones
|
||
|
`
|
||
|
|
||
|
func (q *Queries) CountZones(ctx context.Context) (int64, error) {
|
||
|
row := q.db.QueryRow(ctx, countZones)
|
||
|
var count int64
|
||
|
err := row.Scan(&count)
|
||
|
return count, err
|
||
|
}
|