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

Method FindService

admin/database/postgres/postgres.go:1344–1351  ·  view source on GitHub ↗

FindService returns a service.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

1342
1343// FindService returns a service.
1344func (c *connection) FindService(ctx context.Context, id string) (*database.Service, error) {
1345 res := &serviceDTO{}
1346 err := c.getDB(ctx).QueryRowxContext(ctx, "SELECT * FROM service WHERE id=$1", id).StructScan(res)
1347 if err != nil {
1348 return nil, parseErr("service", err)
1349 }
1350 return res.serviceFromDTO()
1351}
1352
1353// FindServiceByName returns a service.
1354func (c *connection) FindServiceByName(ctx context.Context, orgID, name string) (*database.Service, error) {

Callers

nothing calls this directly

Calls 3

getDBMethod · 0.95
serviceFromDTOMethod · 0.95
parseErrFunction · 0.85

Tested by

no test coverage detected