0👍
Problem solved using the persistent method mode: 'LS'
. For some reason there is an error with the electron when using the mode:'PERM'
, which is a very useful method to autodetect the best method to preserve data.
const nSQL = require('@nano-sql/core').nSQL;
nSQL().createDatabase({
id: 'animeflydb',
mode: 'LS'
tables: [{}] //models omited for this quetion
});
Source:stackexchange.com