sqlhelpers

package
v1.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsThelmaCommand

func AsThelmaCommand(c Command, opts ...CommandOption) cli.ThelmaCommand

AsThelmaCommand convert a sql.Command into a cli.ThelmaCommand

Types

type Command

type Command interface {
	ConfigureCobra(cobraCommand *cobra.Command)
	Run(conn api.Connection, app app.ThelmaApp, rc cli.RunContext) error
}

Command an interface for `thelma sql ...` commands.

type CommandOption

type CommandOption func(options *CommandOptions)

type CommandOptions

type CommandOptions struct {
	// if true, do not include connection config flags like --database or --privilege-level on the Cobra command
	ExcludeConnectFlags bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL