Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa0b6b commit 420865eCopy full SHA for 420865e
src/sql/parser.ts
@@ -49,7 +49,9 @@ export class NodeSqlParser implements SqlParser {
49
if (this.parser) {
50
return this.parser;
51
}
52
- const { Parser } = await import("node-sql-parser");
+ const module = await import("node-sql-parser");
53
+ // Support for ESM and CJS
54
+ const { Parser } = module.default || module;
55
this.parser = new Parser();
56
57
});
0 commit comments