MCPcopy Create free account
hub / github.com/OpenCSGs/csghub-server / ByRepoIDs

Method ByRepoIDs

builder/store/database/code.go:28–35  ·  view source on GitHub ↗
(ctx context.Context, repoIDs []int64)

Source from the content-addressed store, hash-verified

26}
27
28func (s *CodeStore) ByRepoIDs(ctx context.Context, repoIDs []int64) (codes []Code, err error) {
29 err = s.db.Operator.Core.NewSelect().
30 Model(&codes).
31 Where("repository_id in (?)", bun.In(repoIDs)).
32 Scan(ctx)
33
34 return
35}
36
37func (s *CodeStore) ByRepoID(ctx context.Context, repoID int64) (*Code, error) {
38 var code Code

Callers 4

IndexMethod · 0.45
IndexMethod · 0.45
IndexMethod · 0.45
IndexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected