MCPcopy Index your code
hub / github.com/apache/devlake / Cursor

Method Cursor

backend/impls/dalgorm/dalgorm.go:187–190  ·  view source on GitHub ↗

Cursor returns a database cursor, cursor is especially useful when handling big amount of rows of data

(clauses ...dal.Clause)

Source from the content-addressed store, hash-verified

185
186// Cursor returns a database cursor, cursor is especially useful when handling big amount of rows of data
187func (d *Dalgorm) Cursor(clauses ...dal.Clause) (dal.Rows, errors.Error) {
188 rows, err := buildTx(d.db, clauses).Rows()
189 return rows, d.convertGormError(err)
190}
191
192// CursorTx FIXME ...
193func (d *Dalgorm) CursorTx(clauses ...dal.Clause) *gorm.DB {

Callers

nothing calls this directly

Calls 2

convertGormErrorMethod · 0.95
buildTxFunction · 0.85

Tested by

no test coverage detected