You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present either a string or time.Time is returned for the driver.Value within RowsFromCSVString. It would be nice to add support returning a sql.NullString.
It could look something like:
typetestDriverstruct {
// as isenableNullParsingbool
}
// Within RowsFromCSVString...ifd.enableTimeParsing {
// as is
} elseifd.enableNullParsing&&v=="" {
row[i] = sql.NullString{}
} else {
row[i] =v
}
Happy to knock this up into a PR if it's something you'd like to see added.
The text was updated successfully, but these errors were encountered:
At present either a
string
ortime.Time
is returned for thedriver.Value
withinRowsFromCSVString
. It would be nice to add support returning asql.NullString
.It could look something like:
Happy to knock this up into a PR if it's something you'd like to see added.
The text was updated successfully, but these errors were encountered: