node-dbjs
v1.0.1
Published
Simple node module for simple database
Downloads
4
Readme
Node Javascript database
A simple database library for server-side nodejs
Features
- [x] Databases
- [ ] Tables
- [x] Typed rows
- [x] Autoincrement
- [x] insert (INSERT)
- [x] select (SELECT)
- [ ] delete (DELETE) -- coming soon...
Usage
Terminal:
<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);