options.go 526 B

12345678910111213141516171819202122232425262728
  1. package exchange
  2. type ImporterExecOption interface {
  3. iePrivate()
  4. }
  5. type ExporterExecOption interface {
  6. eePrivate()
  7. }
  8. type ExecOption interface {
  9. ImporterExecOption
  10. ExporterExecOption
  11. }
  12. func MaxParamsPerSQL(v int) ExecOption {
  13. return &maxParamsPerSQLOption{v}
  14. }
  15. type maxParamsPerSQLOption struct {
  16. v int
  17. }
  18. var _ ImporterExecOption = (*maxParamsPerSQLOption)(nil)
  19. var _ ExporterExecOption = (*maxParamsPerSQLOption)(nil)
  20. func (o *maxParamsPerSQLOption) iePrivate() {}
  21. func (o *maxParamsPerSQLOption) eePrivate() {}