migrate to "export default"

also, set no-use-before-define in linter
This commit is contained in:
Girish Ramakrishnan
2026-02-14 15:43:24 +01:00
parent ddb46646fa
commit 36aa641cb9
231 changed files with 2846 additions and 2728 deletions
+11 -10
View File
@@ -12,16 +12,6 @@ const shell = shellModule('database');
const _clear = clear;
export {
initialize,
uninitialize,
query,
transaction,
runInTransaction,
importFromFile,
exportToFile,
_clear,
};
let gConnectionPool = null;
@@ -170,3 +160,14 @@ async function exportToFile(file) {
const [error] = await safe(shell.bash(cmd, {}));
if (error) throw new BoxError(BoxError.DATABASE_ERROR, error);
}
export default {
initialize,
uninitialize,
query,
transaction,
runInTransaction,
importFromFile,
exportToFile,
_clear,
};