UNPKG

sql-code-generator

Version:

Generate code from your SQL schema and queries for type safety and development speed.

18 lines (17 loc) 668 B
import { DomainObject } from 'domain-objects'; import Joi from 'joi'; import { DatabaseLanguage, GeneratedOutputPaths } from '../constants'; import { QueryDeclaration } from './QueryDeclaration'; import { ResourceDeclaration } from './ResourceDeclaration'; type DeclarationObject = QueryDeclaration | ResourceDeclaration; export interface GeneratorConfig { rootDir: string; generates: GeneratedOutputPaths; language: DatabaseLanguage; dialect: string; declarations: DeclarationObject[]; } export declare class GeneratorConfig extends DomainObject<GeneratorConfig> implements GeneratorConfig { static schema: Joi.ObjectSchema<any>; } export {};