Skip to content
/ PDB Public

A fast, simple sqlite database, aimed to be an alternative to pocketbase

Notifications You must be signed in to change notification settings

Postr-Inc/PDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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'})

About

A fast, simple sqlite database, aimed to be an alternative to pocketbase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published