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

Method FindMagicAuthToken

admin/database/postgres/postgres.go:1620–1627  ·  view source on GitHub ↗
(ctx context.Context, id string, withSecret bool)

Source from the content-addressed store, hash-verified

1618}
1619
1620func (c *connection) FindMagicAuthToken(ctx context.Context, id string, withSecret bool) (*database.MagicAuthToken, error) {
1621 res := &magicAuthTokenDTO{}
1622 err := c.getDB(ctx).QueryRowxContext(ctx, "SELECT t.* FROM magic_auth_tokens t WHERE t.id=$1", id).StructScan(res)
1623 if err != nil {
1624 return nil, parseErr("magic auth token", err)
1625 }
1626 return c.magicAuthTokenFromDTO(res, withSecret)
1627}
1628
1629func (c *connection) FindMagicAuthTokenWithUser(ctx context.Context, id string) (*database.MagicAuthTokenWithUser, error) {
1630 res := &magicAuthTokenWithUserDTO{}

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
magicAuthTokenFromDTOMethod · 0.95
parseErrFunction · 0.85

Tested by

no test coverage detected