MCPcopy Create free account
hub / github.com/dolthub/doltgresql / rowValsToSQLRows

Function rowValsToSQLRows

core/dataloader/csvreader.go:118–129  ·  view source on GitHub ↗
(rowVals []*string)

Source from the content-addressed store, hash-verified

116}
117
118func rowValsToSQLRows(rowVals []*string) sql.Row {
119 var sqlRow sql.Row
120 for _, rowVal := range rowVals {
121 if rowVal == nil {
122 sqlRow = append(sqlRow, nil)
123 } else {
124 sqlRow = append(sqlRow, *rowVal)
125 }
126 }
127
128 return sqlRow
129}
130
131// Close should release resources being held
132func (csvr *csvReader) Close(ctx context.Context) error {

Callers 1

ReadSqlRowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected