sqlines-studio/mainwindow.cpp
// Get command line database type from name
Get command line database type from name
Get command line database type from name
QString MainWindow::getCmdType(QString type)
{
    QString cmd;
    if(type == "Oracle")
        cmd = "oracle";
    else
    if(type == "Microsoft SQL Server")
        cmd = "sql";
    else
    if(type == "IBM DB2")
        cmd = "db2";
    else
    if(type == "Sybase ASE")
        cmd = "sybase";
    else
    if(type == "Sybase SQL Anywhere")
        cmd = "asa";
    else
    if(type == "Sybase Advantage")
        cmd = "ads";
    else
    if(type == "Informix")
        cmd = "informix";
    else
    if(type == "MariaDB")
        cmd = "mariadb";
    if(type == "MySQL")
        cmd = "mysql";
    else
    if(type == "PostgreSQL")
        cmd = "postgresql";
    else
    if(type == "Teradata")
        cmd = "teradata";
    else
    if(type == "Greenplum")
        cmd = "greenplum";
    else
    if(type == "Netezza")
        cmd = "netezza";
    else
    if(type == "Hive")
        cmd = "hive";
    else
    if(type == "EsgynDB")
        cmd = "esgyndb";
    return cmd;
}
QString MainWindow :: getCmdType ( QString type ) { QString cmd ; if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; else if ( type == " " ) cmd = " " ; return cmd ; }
Get command line database type from name
Get command line database type from name