mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
15 lines
226 B
JavaScript
15 lines
226 B
JavaScript
import withDb from "./src/main/local_db"
|
|
|
|
async function main(){
|
|
const db = await withDb()
|
|
|
|
console.log( db.get("test").value() )
|
|
|
|
await db.update(db => {
|
|
db.test = "xd"
|
|
|
|
return db
|
|
})
|
|
}
|
|
|
|
main() |