database

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDatabaseNotFound = errors.New("could not detect a database")
View Source
var ErrUnsupportedDatabase = errors.New("unsupported database")

Functions

func All added in v1.8.0

func All() []config.Database

func DetectDialect

func DetectDialect(ctx context.Context, client kubernetes.KubeClient) (config.Database, []v1.Pod, error)

func DetectDialectFromPod added in v1.7.0

func DetectDialectFromPod(pod v1.Pod) (config.Database, error)

func DetectFormat added in v1.12.0

func DetectFormat(db config.DatabaseFile, path string) sqlformat.Format

func GetExtension added in v1.12.0

func GetExtension(db config.DatabaseFile, format sqlformat.Format) string

func Names added in v1.12.0

func Names() []string

func NamesForInterface added in v1.12.0

func NamesForInterface[T any]() []string

func New

func New(name string) (config.Database, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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