lava-oushudb-dt-sql-parser/test/parser/postgresql/syntax/deleteStatement.test.ts

17 lines
416 B
TypeScript
Raw Normal View History

import { PostgreSQL } from 'src/parser/postgresql';
import { readSQL } from 'test/helper';
const postgresql = new PostgreSQL();
const features = {
deletes: readSQL(__dirname, 'delete.sql'),
};
describe('PgSQL Delete Syntax Tests', () => {
features.deletes.forEach((deleteItem) => {
it(deleteItem, () => {
expect(postgresql.validate(deleteItem).length).toBe(0);
});
});
});