initialise

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(db *sql.DB, steps ...func(*sql.DB) error) error

func InitAll

func InitAll(config *Config)

func New

func New() *cobra.Command

func ReadStmts

func ReadStmts(typ string) (err error)

func VerifyDatabase

func VerifyDatabase(databaseName string) func(*sql.DB) error

func VerifyGrant

func VerifyGrant(databaseName, username string) func(*sql.DB) error

func VerifyUser

func VerifyUser(username, password string) func(*sql.DB) error

func VerifyZitadel

func VerifyZitadel(db *sql.DB, config database.Config) error

Types

type Config

type Config struct {
	Database database.Config
	Machine  *id.Config
	Log      *logging.Config
}

func MustNewConfig

func MustNewConfig(v *viper.Viper) *Config

Jump to

Keyboard shortcuts

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