UNPKG

sql-code-generator

Version:

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

22 lines (21 loc) 749 B
import { DomainObject } from 'domain-objects'; import Joi from 'joi'; import { DataType } from '../constants'; import { TypeDefinitionReference } from './TypeDefinitionReference'; export interface TypeDefinitionOfQueryInputVariable { /** * e.g., ":externalId" => "externalId" */ name: string; /** * e.g., either an explicit type or a reference to the type on a sql resource */ type: TypeDefinitionReference | DataType[]; /** * whether its a plural of this type or not */ plural: boolean; } export declare class TypeDefinitionOfQueryInputVariable extends DomainObject<TypeDefinitionOfQueryInputVariable> implements TypeDefinitionOfQueryInputVariable { static schema: Joi.ObjectSchema<any>; }