utils

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBConnection

func GetDBConnection(v *viper.Viper, dbName string, tracing bool) (*sql.DB, error)

func RegisterDBArgs

func RegisterDBArgs(v *viper.Viper, flags *pflag.FlagSet)

RegisterDBArgs registers the arguments for the database connection.

func WithStorageOptions added in v0.0.6

func WithStorageOptions(v *viper.Viper) []driver.Options

WithStorageOptions returns the storage options for the driver.

Types

This section is empty.

Jump to

Keyboard shortcuts

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