MCPcopy Index your code
hub / github.com/coder/coder / ListAIBridgeClients

Method ListAIBridgeClients

coderd/database/queries.sql.go:1578–1599  ·  view source on GitHub ↗
(ctx context.Context, arg ListAIBridgeClientsParams)

Source from the content-addressed store, hash-verified

1576}
1577
1578func (q *sqlQuerier) ListAIBridgeClients(ctx context.Context, arg ListAIBridgeClientsParams) ([]string, error) {
1579 rows, err := q.db.QueryContext(ctx, listAIBridgeClients, arg.Client, arg.Offset, arg.Limit)
1580 if err != nil {
1581 return nil, err
1582 }
1583 defer rows.Close()
1584 var items []string
1585 for rows.Next() {
1586 var client string
1587 if err := rows.Scan(&client); err != nil {
1588 return nil, err
1589 }
1590 items = append(items, client)
1591 }
1592 if err := rows.Close(); err != nil {
1593 return nil, err
1594 }
1595 if err := rows.Err(); err != nil {
1596 return nil, err
1597 }
1598 return items, nil
1599}
1600
1601const listAIBridgeInterceptions = `-- name: ListAIBridgeInterceptions :many
1602SELECT

Callers

nothing calls this directly

Calls 5

QueryContextMethod · 0.80
ErrMethod · 0.80
CloseMethod · 0.65
NextMethod · 0.65
ScanMethod · 0.45

Tested by

no test coverage detected