MCPcopy
hub / github.com/daptin/daptin / ReadAll

Method ReadAll

server/csvmap/csvmap.go:47–56  ·  view source on GitHub ↗

ReadAll reads all the remaining records from r. Each record is a map of column name to field value.

()

Source from the content-addressed store, hash-verified

45
46// ReadAll reads all the remaining records from r. Each record is a map of column name to field value.
47func (r *Reader) ReadAll() (records []map[string]string, err error) {
48 var record map[string]string
49 for record, err = r.Read(); err == nil; record, err = r.Read() {
50 records = append(records, record)
51 }
52 if err != nil && err != io.EOF {
53 return nil, err
54 }
55 return records, nil
56}
57
58func min(x, y int) int {
59 if x <= y {

Callers 15

InitializeMethod · 0.95
DoActionMethod · 0.95
ImportDataFilesFunction · 0.95
transportE2EDoJSONFunction · 0.80
runTestsFunction · 0.80
runOAuthProviderE2ETestsFunction · 0.80
DaptinSmtpDbResourceFunction · 0.80
CreateEventStartHandlerFunction · 0.80
SetupNoRouteRouterFunction · 0.80
readFileWithLimitFunction · 0.80
externalIPFunction · 0.80

Calls 1

ReadMethod · 0.95

Tested by 5

transportE2EDoJSONFunction · 0.64
runTestsFunction · 0.64
runOAuthProviderE2ETestsFunction · 0.64