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

Was this helpful?

Initialize

const { Dubnium } = require('dubnium') // const dubnium = require('dubnium') works as well.
const db = new Dubnium('dirPath','ext', useConfig)

or

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

You can initialize as many databases as you want

Parameters

Name
About
Type
Required

dirPath

The path to the directory to store Records.

string

ext

Custom file extension (default: json)

string

useConfig

Use config file (default: true)

bool

PreviousOverviewNextManage

Last updated 2 years ago

Was this helpful?