I am not very clear on how to use node.js nosql with total.js (both are node.js modules).
debug.js
, am I adding code/what is the code)? No matter what your solution, please follow these instructions, or be sure to discuss any change:
mkdir project_folder; cd project_folder
npm init
npm install --save nosql
npm install --save total.js
total.js contains NoSQL embedded database (you don't have to install NoSQL). Basically you can use (and look into the /app/databases
directory):
framework.database('users').insert({ alias: 'Peter' });
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.