Dubnium
v2
v2
  • Install
  • Overview
  • Initialize
  • Manage
  • Get
  • Modify
  • Templates
  • CLI
  • Events
  • Plugins
    • Create
  • Miscellaneous
  • Update Log
  • Need more help?
Powered by GitBook
On this page
  • Initialize
  • Make your first Record
  • Get a Record
  • Delete a Record
  • Modify a Record

Was this helpful?

Overview

We recommend you read the full docs, but this will get you started with the basics.

PreviousInstallNextInitialize

Last updated 2 years ago

Was this helpful?

Initialize

You can initialize as many databases as you want

const Dubnium = require('dubnium') 
const db = new Dubnium('dirPath','ext', useConfig)
import Dubnium from 'dubnium'
new Dubnium('dirPath','ext')

Make your first Record

db.create('tag', content)

Get a Record

db.get('tag')
db.getFromValue('key','value',returnType) //JSON Only

returnType info can be found

db.getAll(returnType)

returnType info can be found

Delete a Record

db.get('tag').delete()

Modify a Record

db.get('tag').setValue("key","new value")

For non-JSON, use

db.get("old_tag").setTag("new_tag")

Check out our full docs for more API methods and in-depth explanations.

here
here
overwrite()