MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / GetCFDomainByID

Method GetCFDomainByID

internal/store/postgres/sqlcgen/cfdomain.sql.go:35–46  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

33}
34
35func (q *Queries) GetCFDomainByID(ctx context.Context, id string) (GetCFDomainByIDRow, error) {
36 row := q.db.QueryRow(ctx, getCFDomainByID, id)
37 var i GetCFDomainByIDRow
38 err := row.Scan(
39 &i.ID,
40 &i.CfToken,
41 &i.ZoneID,
42 &i.ZoneName,
43 &i.Remark,
44 )
45 return i, err
46}
47
48const listCFDomains = `-- name: ListCFDomains :many
49SELECT id, cf_token, zone_id, zone_name, COALESCE(remark, '') AS remark

Callers

nothing calls this directly

Calls 1

QueryRowMethod · 0.80

Tested by

no test coverage detected