Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 573 Bytes

README.md

File metadata and controls

32 lines (28 loc) · 573 Bytes

PDB

Fast, simple, sqlite database

//pdb.config.ts
import pdb from "pdb";
export default {
    port: 3080, 
    collections:[
        pdb.collection('users', {
            name:  String,
            email:  String,
        }),
        pdb.collection('posts', {
            author: String,
            title: String,
            body: String,
        })
    ],
    dissalowDupes: true

}
const collection =  pdb.collection('users', {
            name:  String,
            email:  String,
}),


let u1 = collection.insertOne({username:'hello world'})