MCPcopy Create free account
hub / github.com/corestoreio/pkg / LoadDataInfile

Method LoadDataInfile

sql/ddl/table.go:467–576  ·  view source on GitHub ↗

LoadDataInfile loads a local CSV file into a MySQL table. For more details please read https://dev.mysql.com/doc/refman/5.7/en/load-data.html Files must be allowlisted by registering them with mysql.RegisterLocalFile(filepath) (recommended) or the allow list check must be deactivated by using the DS

(ctx context.Context, filePath string, o InfileOptions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestTable_LoadDataInfileFunction · 0.80

Calls 8

IsViewMethod · 0.95
runExecMethod · 0.95
WriteStringMethod · 0.80
WriteRuneMethod · 0.80
WriteQualifierNameMethod · 0.80
FieldNamesMethod · 0.80
StringMethod · 0.65
DebugMethod · 0.45

Tested by 1

TestTable_LoadDataInfileFunction · 0.64