Menu ▾ ▴

teadb / Blog: Recent posts

iBoxDB JavaScript JS Embedded NoSQL Database example

~~~js

// iBoxDB JavaScript Embedded NoSQL Database example
// ver 1.0

// Download source code to run
// https://sourceforge.net/projects/teadb/files/

// import classes
import {
JsBox, JsBoxConfig,
db_debug_deletefile,
print, pause, is_node
} from "./load_iboxdb.js";

// set the database's address, a Number.
const address = 10

// new database
let jsbox = new JsBox(address)

// a prototype object to define what types of the fields
const proto = { "id": BigInt(0), "value": String("_"), "ver": BigInt(0), "other_fields": "..." }... read more

Posted by iBoxDB 1 hour ago