func (fc *FileConfig) populateLoadConfig(conf *bq.JobConfigurationLoad) { conf.SkipLeadingRows = fc.SkipLeadingRows conf.SourceFormat = string(fc.SourceFormat) conf.AllowJaggedRows = fc.AllowJaggedRows conf.AllowQuotedNewlines = fc.AllowQuotedNewlines conf.Encoding = string(fc.Encoding) conf.FieldDelimiter = fc.FieldDelimiter conf.IgnoreUnknownValues = fc.IgnoreUnknownValues conf.MaxBadRecords = fc.MaxBadRecords if fc.Schema != nil { conf.Schema = fc.Schema.asTableSchema() } conf.Quote = fc.quote() }
func (gcs *GCSReference) customizeLoadSrc(conf *bq.JobConfigurationLoad) { conf.SourceUris = gcs.uris conf.SkipLeadingRows = gcs.SkipLeadingRows conf.SourceFormat = string(gcs.SourceFormat) conf.AllowJaggedRows = gcs.AllowJaggedRows conf.AllowQuotedNewlines = gcs.AllowQuotedNewlines conf.Encoding = string(gcs.Encoding) conf.FieldDelimiter = gcs.FieldDelimiter conf.IgnoreUnknownValues = gcs.IgnoreUnknownValues conf.MaxBadRecords = gcs.MaxBadRecords if gcs.Schema != nil { conf.Schema = gcs.Schema.asTableSchema() } if gcs.ForceZeroQuote { quote := "" conf.Quote = "e } else if gcs.Quote != "" { conf.Quote = &gcs.Quote } }
func (opt allowQuotedNewlines) customizeLoad(conf *bq.JobConfigurationLoad, projectID string) { conf.AllowQuotedNewlines = true }
func (opt allowQuotedNewlines) customizeLoad(conf *bq.JobConfigurationLoad) { conf.AllowQuotedNewlines = true }