KBWZKMGVPYDGPSKFWRXPXCFYAAUHQXKE5Y54U5LWYAWXPQQGJR5QC
J62FGJ3BGFTUWEOUON4ATYNDFBEUIR6FCIOZSHOVHAA7KGFYHW6AC
// Verify dataset exists and get name var datasetName string
// Verify dataset exists and get name
var datasetName string
// Verify dataset exists and get name/type var datasetName, datasetType string
// Verify dataset exists and get name/type
var datasetName, datasetType string
"SELECT name FROM dataset WHERE id = ? AND active = true",
"SELECT name, type FROM dataset WHERE id = ? AND active = true",
).Scan(&datasetName)
).Scan(&datasetName, &datasetType)
// Only structured datasets can be exported if datasetType != "structured" { sourceDB.Close() return output, fmt.Errorf("cannot export dataset of type '%s': only structured datasets are supported", datasetType) }
// Only structured datasets can be exported
if datasetType != "structured" {
sourceDB.Close()
return output, fmt.Errorf("cannot export dataset of type '%s': only structured datasets are supported", datasetType)
}