MCPcopy Index your code
hub / github.com/rilldata/rill / FindOrganizations

Method FindOrganizations

admin/database/postgres/postgres.go:59–66  ·  view source on GitHub ↗
(ctx context.Context, afterName string, limit int)

Source from the content-addressed store, hash-verified

57}
58
59func (c *connection) FindOrganizations(ctx context.Context, afterName string, limit int) ([]*database.Organization, error) {
60 var res []*database.Organization
61 err := c.getDB(ctx).SelectContext(ctx, &res, "SELECT * FROM orgs WHERE lower(name) > lower($1) ORDER BY lower(name) LIMIT $2", afterName, limit)
62 if err != nil {
63 return nil, parseErr("orgs", err)
64 }
65 return res, nil
66}
67
68func (c *connection) FindOrganizationsForUser(ctx context.Context, userID, afterName string, limit int) ([]*database.Organization, error) {
69 var res []*database.Organization

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
parseErrFunction · 0.85
SelectContextMethod · 0.80

Tested by

no test coverage detected