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

Method Finish

core/dataloader/tabdataloader.go:152–159  ·  view source on GitHub ↗

Finish completes the current load data operation and finalizes the data that has been inserted.

(ctx *sql.Context)

Source from the content-addressed store, hash-verified

150
151// Finish completes the current load data operation and finalizes the data that has been inserted.
152func (tdl *TabularDataLoader) Finish(ctx *sql.Context) (*LoadDataResults, error) {
153 // If there is partial data from the last chunk that hasn't been inserted, return an error.
154 if tdl.partialLine.Len() > 0 {
155 return nil, errors.Errorf("partial line found at end of data load")
156 }
157
158 return &tdl.results, nil
159}
160
161func (tdl *TabularDataLoader) Resolved() bool {
162 return true

Callers 1

TestTabDataLoaderFunction · 0.95

Calls 2

LenMethod · 0.65
ErrorfMethod · 0.65

Tested by 1

TestTabDataLoaderFunction · 0.76