Documentation
¶
Index ¶
- Constants
- type DBTX
- type Queries
- func (q *Queries) RecordsetCountByZone(ctx context.Context) ([]RecordsetCountByZoneRow, error)
- func (q *Queries) RecordsetGetAllWithStatus(ctx context.Context) ([]RecordsetGetAllWithStatusRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- func (q *Queries) ZoneGetAll(ctx context.Context) ([]ZoneGetAllRow, error)
- type Record
- type Recordset
- type RecordsetCountByZoneRow
- type RecordsetGetAllWithStatusRow
- type Zone
- type ZoneGetAllRow
Constants ¶
const RecordsetCountByZone = `` /* 257-byte string literal not displayed */
const RecordsetGetAllWithStatus = `` /* 699-byte string literal not displayed */
const ZoneGetAll = `-- name: zoneGetAll :many
SELECT id, name, tenant_id, status, type
FROM zones
WHERE deleted = '0'
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) RecordsetCountByZone ¶
func (q *Queries) RecordsetCountByZone(ctx context.Context) ([]RecordsetCountByZoneRow, error)
RecordsetCountByZone returns counts for non-deleted zones, including empty zones.
func (*Queries) RecordsetGetAllWithStatus ¶
func (q *Queries) RecordsetGetAllWithStatus(ctx context.Context) ([]RecordsetGetAllWithStatusRow, error)
RecordsetGetAllWithStatus returns recordsets in non-deleted zones. Status follows Designate's child record precedence and defaults to ACTIVE.
func (*Queries) ZoneGetAll ¶
func (q *Queries) ZoneGetAll(ctx context.Context) ([]ZoneGetAllRow, error)
ZoneGetAll returns non-deleted zones with API-format UUIDs.
type RecordsetCountByZoneRow ¶
type RecordsetCountByZoneRow = recordsetCountByZoneRow
type RecordsetGetAllWithStatusRow ¶
type RecordsetGetAllWithStatusRow = recordsetGetAllWithStatusRow
type ZoneGetAllRow ¶
type ZoneGetAllRow = zoneGetAllRow