2e6d18e7dc
* feat(pgsql: upgrade keywords and refresh them to parser file): pgsql * feat(pgsql: check create table's syntax): pgsql * feat(pgsql: check and update drop syntax): pgsql: check and update drop syntax * feat: pgsql: check create's sql syntax and update g4 file * feat: pgsql:complete other's sql and syntax except select, insert, drop * feat: pgsql: update create, delete, insert, select, update and others' syntax * test: pgsql: update alter's sql * feat: pgsql: update syntax g4 file * feat: pgsql: upgrade keywords to without '_P' in lexer and parser file * docs: pgsql: update copyright and Reference of parser and lexer --------- Co-authored-by: zhaoge <>
17 lines
405 B
TypeScript
17 lines
405 B
TypeScript
import PgSQL from '../../../../src/parser/pgsql';
|
|
import { readSQL } from '../../../helper';
|
|
|
|
const parser = new PgSQL();
|
|
|
|
const features = {
|
|
inserts: readSQL(__dirname, 'insert.sql'),
|
|
};
|
|
|
|
describe('PgSQL Insert Syntax Tests', () => {
|
|
features.inserts.forEach((insertItem) => {
|
|
it(insertItem, () => {
|
|
expect(parser.validate(insertItem).length).toBe(0);
|
|
});
|
|
});
|
|
});
|