@secam/pgsql-ast-parser
Version:
Fork of pgsql-ast-parser Simple Postgres SQL parser/modifier for pg-mem
20 lines (17 loc) • 388 B
text/typescript
import 'mocha';
import 'chai';
import { checkStatement } from './spec-utils';
describe('Create types', () => {
checkStatement(['DEALLOCATE identifier', 'DEALLOCATE PREPARE identifier'], {
target: {
name: 'identifier',
},
type: 'deallocate',
});
checkStatement(['DEALLOCATE ALL', 'DEALLOCATE PREPARE ALL'], {
target: {
option: 'all',
},
type: 'deallocate',
});
});