javascriptnode.jstotal.js

how can I change databases/files-binary path?


I want to create an asar file (I want to install my total.js web app in client pc, so I want to package with electron like an asar file) I need to redirect every directories have dynamic files like databases\files-binary.

So, how can I do that? I have some parameter in config file?


Solution

  • You can't change default path where the files are saved.

    You can:

    Change the above code to fit your needs.

    Now you can use nosql just like you would normaly do:

    NOSQL('files').binnary.insert(...)  
    // or in beta version 2.4.0 use 
    NOBIN('files').insert(...)