Add MariaDB as separate selectable database type in interactive mode

This commit is contained in:
2025-11-07 13:03:15 +00:00
parent 3cedac371c
commit ebb77fb960
4 changed files with 48 additions and 10 deletions

View File

@ -69,12 +69,15 @@ func NewMenuModel(cfg *config.Config, log logger.Logger) MenuModel {
dbTypes := []dbTypeOption{
{label: "PostgreSQL", value: "postgres"},
{label: "MySQL / MariaDB", value: "mysql"},
{label: "MySQL", value: "mysql"},
{label: "MariaDB", value: "mariadb"},
}
dbCursor := 0
if cfg.IsMySQL() {
if cfg.DatabaseType == "mysql" {
dbCursor = 1
} else if cfg.DatabaseType == "mariadb" {
dbCursor = 2
}
model := MenuModel{