MCPcopy Create free account
hub / github.com/apecloud/myduckserver / PipeDataLoader

Struct PipeDataLoader

pgserver/dataloader.go:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49var ErrCopyAborted = fmt.Errorf("COPY operation aborted")
50
51type PipeDataLoader struct {
52 ctx *sql.Context
53 cancel context.CancelFunc
54 schema string
55 table sql.InsertableTable
56 columns tree.NameList
57 pipePath string
58 read func()
59 pipe atomic.Pointer[os.File] // for writing
60 blocked atomic.Bool // for writing
61 errPipe atomic.Pointer[os.File] // for error handling
62 rowCount chan int64
63 err atomic.Pointer[error]
64 logger *logrus.Entry
65}
66
67func (loader *PipeDataLoader) Start() <-chan error {
68 loader.blocked.Store(true)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected