sql-ddl-to-json-schema
Version:
Parse and convert SQL DDL statements to a JSON Schema.
25 lines (24 loc) • 804 B
TypeScript
import { P_COLUMN_REFERENCE_ON, ColumnReferenceOnInterface } from '../../../../typings';
import { ColumnReferenceOnModelInterface } from './typings';
/**
* Column reference's 'on' triggers of column actions.
*/
export declare class ColumnReferenceOn implements ColumnReferenceOnModelInterface {
trigger: string;
action: string;
/**
* Creates column reference "on" trigger from object.
* Object must contain properties 'trigger' and 'action'.
*
* @param json JSON format parsed from SQL.
*/
static fromObject(json: P_COLUMN_REFERENCE_ON): ColumnReferenceOn;
/**
* JSON casting of this object calls this method.
*/
toJSON(): ColumnReferenceOnInterface;
/**
* Create a deep clone of this model.
*/
clone(): ColumnReferenceOn;
}