mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 22:22:50 +00:00
refactor: Split files into src folder, fix parser
This commit is contained in:
8 files changed
+244
-222
No files matched your search
@@ -0,0 +1,9 @@
|
||||
class FormatError extends Error {
|
||||
constructor(message, query, parameters) {
|
||||
super(message);
|
||||
if (parameters) this.sql = `${query} ${JSON.stringify(parameters)}`;
|
||||
else this.sql = query;
|
||||
}
|
||||
}
|
||||
|
||||
export { FormatError };
|
||||
Reference in new issue
Block a user