UNPKG

sql-ddl-to-json-schema

Version:

Parse and convert SQL DDL statements to a JSON Schema.

28 lines (27 loc) 771 B
import { O_INDEX_OPTION, IndexOptionsInterface } from '../../../../typings'; import { IndexOptionsModelInterface } from './typings'; /** * Table index options. */ export declare class IndexOptions implements IndexOptionsModelInterface { keyBlockSize?: number; indexType?: string; parser?: string; comment?: string; algorithm?: string; lock?: string; /** * Creates index options instance from an array of options. * * @param options JSON format parsed from SQL. */ static fromArray(options: O_INDEX_OPTION[]): IndexOptions; /** * JSON casting of this object calls this method. */ toJSON(): IndexOptionsInterface; /** * Create a deep clone of this model. */ clone(): IndexOptions; }