database

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: May 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 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

type DetectResult added in v1.13.0

type DetectResult map[config.Database][]v1.Pod

func DetectDialect

func DetectDialect(ctx context.Context, client kubernetes.KubeClient) (DetectResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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