kysely-codegen
Version:
`kysely-codegen` generates Kysely type definitions from your database. That's it.
71 lines • 2.28 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.FLAGS = void 0;
const constants_1 = require("./constants");
exports.FLAGS = [
{
description: 'Use the Kysely CamelCasePlugin.',
longName: 'camel-case',
},
{
description: `Set the SQL dialect. (values: [${constants_1.VALID_DIALECTS.join(', ')}])`,
longName: 'dialect',
},
{
description: 'Specify the path to an environment file to use.',
longName: 'env-file',
},
{
description: 'Exclude tables matching the specified glob pattern. ' +
'(examples: users, *.table, secrets.*, *._*)',
longName: 'exclude-pattern',
},
{
description: 'Print this message.',
longName: 'help',
shortName: 'h',
},
{
description: 'Only include tables matching the specified glob pattern. ' +
'(examples: users, *.table, secrets.*, *._*)',
longName: 'include-pattern',
},
{
description: 'Set the terminal log level. (values: [debug, info, warn, error, silent], default: warn)',
longName: 'log-level',
},
{
description: 'Skip generating types for PostgreSQL domains. (default: false)',
longName: 'no-domains',
},
{
description: `Set the file build path. (default: ${constants_1.DEFAULT_OUT_FILE})`,
longName: 'out-file',
},
{
description: 'Print the generated output to the terminal.',
longName: 'print',
},
{
description: 'Generate runtime enums instead of string unions.',
longName: 'runtime-enums',
},
{
description: 'Generate TypeScript 3.8+ `import type` syntax (default: true).',
longName: 'type-only-imports',
},
{
description: 'Set the database connection string URL. ' +
`This may point to an environment variable. (default: ${constants_1.DEFAULT_URL})`,
longName: 'url',
},
{
description: 'Set the default schema of the database connection.',
longName: 'schema',
},
{
description: 'Verify that the generated types are up-to-date. (default: false)',
longName: 'verify',
},
];
//# sourceMappingURL=flags.js.map
;