Documentation
¶
Index ¶
- Variables
- func All() []config.Database
- func DetectDialect(ctx context.Context, client kubernetes.KubeClient) (config.Database, []v1.Pod, error)
- 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)
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 DetectDialect ¶
func DetectDialect(ctx context.Context, client kubernetes.KubeClient) (config.Database, []v1.Pod, error)
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.