refactor: standard naming (#278)
* refactor: rename flinksql to flink * refactor: rename pgsql to postgresql * refactor: rename trinosql to trino * refactor: replace all default exports with named export * refactor: rename basicParser to basicSQL * refactor: rename basic-parser-types to types * refactor: replace arrow func with plain func
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { MySQL } from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
const mysql = new MySQL();
|
||||
|
||||
const features = {
|
||||
alterUser: readSQL(__dirname, 'alterUser.sql'),
|
||||
@ -40,7 +40,7 @@ describe('MySQL Database Administration Syntax Tests', () => {
|
||||
Object.keys(features).forEach((key) => {
|
||||
features[key].forEach((sql) => {
|
||||
it(sql, () => {
|
||||
const result = parser.validate(sql);
|
||||
const result = mysql.validate(sql);
|
||||
if (result.length) {
|
||||
console.error(result, `\nPlease check sql: ${sql}`);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { MySQL } from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
const mysql = new MySQL();
|
||||
|
||||
const features = {
|
||||
alterDatabase: readSQL(__dirname, 'alterDatabase.sql'),
|
||||
@ -47,7 +47,7 @@ describe('MySQL DDL Syntax Tests', () => {
|
||||
Object.keys(features).forEach((key) => {
|
||||
features[key].forEach((sql) => {
|
||||
it(sql, () => {
|
||||
const result = parser.validate(sql);
|
||||
const result = mysql.validate(sql);
|
||||
if (result.length) {
|
||||
console.error(result, `\nPlease check sql: ${sql}`);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { MySQL } from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
const mysql = new MySQL();
|
||||
|
||||
const features = {
|
||||
call: readSQL(__dirname, 'call.sql'),
|
||||
@ -31,7 +31,7 @@ describe('MySQL DML Syntax Tests', () => {
|
||||
Object.keys(features).forEach((key) => {
|
||||
features[key].forEach((sql) => {
|
||||
it(sql, () => {
|
||||
const result = parser.validate(sql);
|
||||
const result = mysql.validate(sql);
|
||||
if (result.length) {
|
||||
console.error(result, `\nPlease check sql: ${sql}`);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import MySQL from 'src/parser/mysql';
|
||||
import { MySQL } from 'src/parser/mysql';
|
||||
import { readSQL } from 'test/helper';
|
||||
|
||||
const parser = new MySQL();
|
||||
const mysql = new MySQL();
|
||||
|
||||
const features = {
|
||||
commit: readSQL(__dirname, 'commit.sql'),
|
||||
@ -25,7 +25,7 @@ describe('MySQL Transactional and Locking, Replication, Prepared Compound and Ut
|
||||
Object.keys(features).forEach((key) => {
|
||||
features[key].forEach((sql) => {
|
||||
it(sql, () => {
|
||||
const result = parser.validate(sql);
|
||||
const result = mysql.validate(sql);
|
||||
if (result.length) {
|
||||
console.error(result, `\nPlease check sql: ${sql}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user