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

Method FindOrganization

admin/database/postgres/postgres.go:81–88  ·  view source on GitHub ↗
(ctx context.Context, orgID string)

Source from the content-addressed store, hash-verified

79}
80
81func (c *connection) FindOrganization(ctx context.Context, orgID string) (*database.Organization, error) {
82 res := &database.Organization{}
83 err := c.getDB(ctx).QueryRowxContext(ctx, "SELECT * FROM orgs WHERE id = $1", orgID).StructScan(res)
84 if err != nil {
85 return nil, parseErr("org", err)
86 }
87 return res, nil
88}
89
90func (c *connection) FindOrganizationByName(ctx context.Context, name string) (*database.Organization, error) {
91 res := &database.Organization{}

Callers

nothing calls this directly

Calls 2

getDBMethod · 0.95
parseErrFunction · 0.85

Tested by

no test coverage detected