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
  • Get Record From Tag
  • Get Record information
  • Content
  • Path
  • Tag
  • Get Database name
  • Get all Records
  • Search Tags
  • Search Record Content
  • Search Object Keys (JSON Only)
  • Get Record from Value (JSON Only)
  • Check if a Record exists

Was this helpful?

Get

PreviousManageNextModify

Last updated 2 years ago

Was this helpful?

Get Record From Tag

db.get('tag')
Parameter
About
Type
Required

tag

The Record's tag

String

Get Record information

Content

Data was renamed to content in

db.get('tag').content

Path

db.get('tag').path
db.get('tag').realpath
db.find('tag', realpath)
Parameter
About
Type
Required

tag

Record's tag

string

realpath

Return realpath

bool

Tag

db.get('tag').tag

Get Database name

db.name

Get all Records

db.getAll(returnType)
Parameter
About
Type
Required

returnType

Number

Search Tags

db.searchTags('term',returnType)
Parameter
About
Type
Required

term

The search term

String

returnType

Number

Search Record Content

db.get("tag").search('query','splitBy')

Search Object Keys (JSON Only)

db.searchKeys('query') // splitBy is not a param for the searchKeys method
Parameter
About
Type
Required

query

Search query

String

splitBy

String to split the Record's content by. For example, \n for lines or " " for spaces. If not present, Dubnium will default to space.

String

Get Record from Value (JSON Only)

db.getFromValue('key','value',returnType)
Parameter
About
Type
Required

key

The key to get from

String

value

The value to get from

String

returnType

Number

Check if a Record exists

This will only return true or false.

db.has('tag')
Parameter
About
Type
Required

tag

The tag to check for

String

Read about it

Read about it

Read about it

here
here
here
v2.3.0