After installed the lib and running it I've got this error
import Parser from "../src/index.js";
import SQL from "../src/database/sql/SQLDriver.js";
const dbDriver = SQL.connect("mysql2", {
host: "localhost",
user: "root",
password: "adfgwgQsdLfs5AjH",
database: "db1",
});
// console.log(
// Parser.parse("SELECT fname FROM table1", {}, { dbDriver, explain: false })
// );
dbDriver.query("SELECT fname FROM table1").then((result) => {
console.log(result);
});
Error
node_modules/@webqit/subscript/src/Parser.js:69
subStmt.role = _params.role;
^
TypeError: Cannot read properties of null (reading 'role')