Documentation ¶
Index ¶
- Variables
- func All() []config.Database
- func DetectDialectFromPod(pod v1.Pod) (config.Database, error)
- func DetectFormat(db config.DatabaseFile, path string) sqlformat.Format
- func GetExtension(db config.DatabaseFile, format sqlformat.Format) string
- func Names() []string
- func NamesForInterface[T any]() []string
- func New(name string) (config.Database, error)
- type DetectResult
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 DetectDialectFromPod ¶ added in v1.7.0
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 NamesForInterface ¶ added in v1.12.0
Types ¶
type DetectResult ¶ added in v1.13.0
func DetectDialect ¶
func DetectDialect(ctx context.Context, client kubernetes.KubeClient) (DetectResult, error)
Click to show internal directories.
Click to hide internal directories.