Skip to content

Commit

Permalink
update go.mod [no test]
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Aug 18, 2023
1 parent bb9dc98 commit cb24394
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion core/sling/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ func (cfg *Config) SetDefault() {
cfg.Source.Options.NullIf = sourceOptions.NullIf
}
if cfg.Source.Options.JmesPath == nil {
cfg.Source.Options.NullIf = sourceOptions.JmesPath
cfg.Source.Options.JmesPath = sourceOptions.JmesPath
}
if cfg.Source.Options.Sheet == nil {
cfg.Source.Options.Sheet = sourceOptions.Sheet
}
if cfg.Source.Options.Range == nil {
cfg.Source.Options.Range = sourceOptions.Range
}
if cfg.Source.Options.DatetimeFormat == "" {
cfg.Source.Options.DatetimeFormat = sourceOptions.DatetimeFormat
Expand Down Expand Up @@ -676,6 +682,8 @@ type SourceOptions struct {
Delimiter string `json:"delimiter,omitempty" yaml:"delimiter,omitempty"`
MaxDecimals *int `json:"max_decimals,omitempty" yaml:"max_decimals,omitempty"`
JmesPath *string `json:"jmespath,omitempty" yaml:"jmespath,omitempty"`
Sheet *string `json:"sheet,omitempty" yaml:"sheet,omitempty"`
Range *string `json:"range,omitempty" yaml:"range,omitempty"`
}

// TargetOptions are target connection and stream processing options
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ require (
github.com/c-bata/go-prompt v0.2.6
github.com/denisbrodbeck/machineid v1.0.1
github.com/dustin/go-humanize v1.0.0
github.com/flarco/dbio v0.3.245
github.com/flarco/g v0.1.60
github.com/flarco/dbio v0.3.247
github.com/flarco/g v0.1.61
github.com/getsentry/sentry-go v0.11.0
github.com/integrii/flaggy v1.5.2
github.com/json-iterator/go v1.1.12
Expand Down

0 comments on commit cb24394

Please sign in to comment.