MCPcopy Create free account
hub / github.com/rilldata/rill / DeleteOrganization

Method DeleteOrganization

admin/database/postgres/postgres.go:142–145  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

140}
141
142func (c *connection) DeleteOrganization(ctx context.Context, name string) error {
143 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM orgs WHERE lower(name)=lower($1)", name)
144 return checkDeleteRow("org", res, err)
145}
146
147func (c *connection) UpdateOrganization(ctx context.Context, id string, opts *database.UpdateOrganizationOptions) (*database.Organization, error) {
148 if err := database.Validate(opts); err != nil {

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
checkDeleteRowFunction · 0.85
ExecContextMethod · 0.45

Tested by

no test coverage detected