A simple database library for server-side nodejs
- Databases
- Tables
- Typed rows
- Autoincrement
- insert (INSERT)
- select (SELECT)
- delete (DELETE) -- coming soon...
Terminal:
$ npm install node-dbjs --save-dev
<file>.js
const { connect } = require("node-dbjs");
const rows = [
{
name: "<row's name>",
type: "<row's type (string | number | boolean)>",
options: {
autoIncrement: true, // Boolean
notnull: true // Boolean
}
}
];
const db = connect("<name>", , __dirname);