MCPcopy Create free account
hub / github.com/an0nfunc/ALHP / IDs

Method IDs

ent/dbpackage_query.go:182–191  ·  view source on GitHub ↗

IDs executes the query and returns a list of DBPackage IDs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

180
181// IDs executes the query and returns a list of DBPackage IDs.
182func (_q *DBPackageQuery) IDs(ctx context.Context) (ids []int, err error) {
183 if _q.ctx.Unique == nil && _q.path != nil {
184 _q.Unique(true)
185 }
186 ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs)
187 if err = _q.Select(dbpackage.FieldID).Scan(ctx, &ids); err != nil {
188 return nil, err
189 }
190 return ids, nil
191}
192
193// IDsX is like IDs, but panics if an error occurs.
194func (_q *DBPackageQuery) IDsX(ctx context.Context) []int {

Callers 3

IDsXMethod · 0.95
FirstIDMethod · 0.45
OnlyIDMethod · 0.45

Calls 4

UniqueMethod · 0.95
SelectMethod · 0.95
setContextOpFunction · 0.85
ScanMethod · 0.45

Tested by

no test coverage detected