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
393 B
TypeScript
17 lines
393 B
TypeScript
import PgSQL from '../../../../src/parser/pgsql';
|
|
import { readSQL } from '../../../helper';
|
|
|
|
const parser = new PgSQL();
|
|
|
|
const features = {
|
|
selects: readSQL(__dirname, 'select.sql'),
|
|
};
|
|
|
|
describe('PgSQL Select Syntax Tests', () => {
|
|
features.selects.forEach((select) => {
|
|
it(select, () => {
|
|
expect(parser.validate(select).length).toBe(0);
|
|
});
|
|
});
|
|
});
|