sq/libsq/driver/scratch.go

12 lines
319 B
Go
Raw Normal View History

2020-08-06 20:58:47 +03:00
package driver
import (
"golang.org/x/exp/slog"
2020-08-06 20:58:47 +03:00
"github.com/neilotoole/sq/libsq/source"
)
// ScratchSrcFunc is a function that returns a scratch source.
// The caller is responsible for invoking cleanFn.
type ScratchSrcFunc func(log *slog.Logger, name string) (src *source.Source, cleanFn func() error, err error)