Features • How To Use • Roadmap • Contributing • Credits • License
let { TessraDB } = require("tessradb");
//or
import { TessraDB } from "tessradb";
import { TessraDB } from "tessradb";
let db = new TessraDB("first"); //create a db with name "first"
run(db);
async function run(db) {
let firstCol = await db.getCollection("firstCollection");
await firstCol.insertMany([
{ type: "man", age: 1, height: 56 },
{ type: "woman", age: 2, height: 76 },
]); //insert documents to collection
console.log(await firstCol.findOne({ type: "man" }));
//find one document with type "man"
//output: { type: "man", age: 1, height: 56 }
}
TODO list
You can also suggest new features in issues yourself.
Your contributions are always welcome! Please look at the contribution guidelines first. 🎉
TessraDB uses:
Generated using TypeDoc