sql

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*SqlOpts)

func WithDatabase

func WithDatabase(d string) Option

func WithPasswordEnv

func WithPasswordEnv(p string) Option

func WithSqlFile

func WithSqlFile(f string) Option

func WithUserEnv

func WithUserEnv(u string) Option

type SqlCommand

type SqlCommand struct {
	*SqlOpts
}

func New

func New(userOpts ...Option) (*SqlCommand, error)

func (*SqlCommand) ExecCommand

func (s *SqlCommand) ExecCommand(mariadb *mariadbv1alpha1.MariaDB) *command.Command

type SqlOpts

type SqlOpts struct {
	command.CommandOpts
	SqlFile string
}

Jump to

Keyboard shortcuts

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