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

Method DeleteUser

admin/database/postgres/postgres.go:927–930  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

925}
926
927func (c *connection) DeleteUser(ctx context.Context, id string) error {
928 res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM users WHERE id=$1", id)
929 return checkDeleteRow("user", res, err)
930}
931
932func (c *connection) UpdateUser(ctx context.Context, id string, opts *database.UpdateUserOptions) (*database.User, error) {
933 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