"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.databaseQuestions = void 0;
const filename = () => ({
    type: 'input',
    name: 'filename',
    message: 'Database File Path:',
    default: './data.db',
});
const host = () => ({
    type: 'input',
    name: 'host',
    message: 'Database Host:',
    default: '127.0.0.1',
});
const port = ({ client }) => ({
    type: 'input',
    name: 'port',
    message: 'Port:',
    default() {
        const ports = {
            pg: 5432,
            mysql: 3306,
            oracledb: 1521,
            mssql: 1433,
        };
        return ports[client];
    },
});
const database = () => ({
    type: 'input',
    name: 'database',
    message: 'Database Name:',
    default: 'directus',
});
const username = () => ({
    type: 'input',
    name: 'username',
    message: 'Database Username:',
});
const password = () => ({
    type: 'password',
    name: 'password',
    message: 'Database Password:',
    mask: '*',
});
exports.databaseQuestions = {
    sqlite3: [filename],
    mysql: [host, port, database, username, password],
    pg: [host, port, database, username, password],
    oracledb: [host, port, database, username, password],
    mssql: [host, port, database, username, password],
};
