Skip to content

Commit bfba27a

Browse files
author
Snowflake107
committed
rename Util to util
1 parent c6217f9 commit bfba27a

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

src/Util/create.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
*
3-
* @param {*} ast
4-
* @param {import("../jsql/Database")} db
5-
*/
61
module.exports = (ast, db) => {
72
if (ast.type.toLowerCase() !== 'create') throw new TypeError('invalid query type');
83
if (ast.keyword !== 'table') throw new Error(`Unsupported ${ast.keyword}`);

src/Util/insert.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
*
3-
* @param {*} ast
4-
* @param {import("../jsql/Database")} db
5-
*/
61
module.exports = (ast, db) => {
72
if (ast.type.toLowerCase() !== 'insert') throw new TypeError('invalid query type');
83
const table = ast.table[0].table;

src/Util/select.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
*
3-
* @param {*} ast
4-
* @param {import("../jsql/Database")} db
5-
*/
61
module.exports = (ast, db) => {
72
if (ast.type.toLowerCase() !== 'select') throw new TypeError('invalid query type');
83
const table = ast.from[0].table;

src/jsql/Database.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const sql = require('../sql/parser');
22
const fs = require('fs');
33
const handlers = {
4-
create: require('../Util/create'),
5-
select: require('../Util/select'),
6-
insert: require('../Util/insert'),
7-
drop: require('../Util/drop'),
4+
create: require('../util/create'),
5+
select: require('../util/select'),
6+
insert: require('../util/insert'),
7+
drop: require('../util/drop'),
88
};
99

1010
class Database {

0 commit comments

Comments
 (0)