@segment/mysql-query-validator
Version:
This is just a simple wrapper over [this Golang executable](https://github.com/xwb1989/sqlparser) to validate SQL queries.
8 lines (7 loc) • 300 B
TypeScript
export interface Tree {
[name: string]: any;
}
export declare function validate(query: string): void;
export declare function parse(query: string): Tree | null;
export declare function getTables(query: string): string[] | null;
export declare function getColumns(query: string): string[] | null;