How to use the generator-jhipster/generators/generator-constants.SQL_DB_OPTIONS function in generator-jhipster

To help you get started, we’ve selected a few generator-jhipster examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jhipster / generator-jhipster-micronaut / generators / server / prompts.js View on Github external
// if (!reactive) {
                //     opts.push({
                //         value: 'no',
                //         name: 'No database'
                //     });
                // }
                return opts;
            },
            default: 0
        },
        {
            when: response => response.databaseType === 'sql',
            type: 'list',
            name: 'prodDatabaseType',
            message: `Which ${chalk.yellow('*production*')} database would you like to use?`,
            choices: constants.SQL_DB_OPTIONS,
            default: 0
        },
        {
            when: response => response.databaseType === 'sql',
            type: 'list',
            name: 'devDatabaseType',
            message: `Which ${chalk.yellow('*development*')} database would you like to use?`,
            choices: response =>
                [
                    {
                        value: 'h2Disk',
                        name: 'H2 with disk-based persistence'
                    },
                    {
                        value: 'h2Memory',
                        name: 'H2 with in-memory persistence'
github jhipster / generator-jhipster-micronaut / generators / server / prompts.js View on Github external
choices: response =>
                [
                    {
                        value: 'h2Disk',
                        name: 'H2 with disk-based persistence'
                    },
                    {
                        value: 'h2Memory',
                        name: 'H2 with in-memory persistence'
                    }
                ].concat(constants.SQL_DB_OPTIONS.find(it => it.value === response.prodDatabaseType)),
            default: 0

generator-jhipster

Spring Boot + Angular/React/Vue in one handy generator

Apache-2.0
Latest version published 20 days ago

Package Health Score

89 / 100
Full package analysis