Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnvironmentLookup ¶
type ExecutionResult ¶
type Executor ¶
type Executor interface {
Execute(context.Context, string) (ExecutionResult, error)
Close() error
Summary() string
}
func OpenExecutor ¶
func OpenExecutor(ctx context.Context, cfg ResolvedConfig) (Executor, error)
type ResolvedConfig ¶
type ResolvedConfig struct {
Driver string
DSN string
Host string
Port int
Name string
User string
Password string
SSLMode string
}
func ResolveConfig ¶
func ResolveConfig(opts Options, configPath, envPath string, envLookup EnvironmentLookup) (ResolvedConfig, error)
func (ResolvedConfig) IsSQLite ¶
func (c ResolvedConfig) IsSQLite() bool
func (ResolvedConfig) SQLDriverName ¶
func (c ResolvedConfig) SQLDriverName() string
func (ResolvedConfig) SafeSummary ¶
func (c ResolvedConfig) SafeSummary() string
Click to show internal directories.
Click to hide internal directories.