Get

Get Record From Tag

db.get('tag')

Parameters

Name
About
Type
Required

tag

The Record's tag

String

Get Record information

Data

db.get('tag').data

Tag

db.get('tag').tag

Get all Records

db.getAll(returnType)

Parameters

Name
About
Type
Required

returnType

Number

Search Tags

db.searchTags('term',returnType)

Parameters

Name
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

Parameters

Name
About
Type
Required

query

Search query

String

splitBy

String to split the Record's data 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)

Parameters

Name
About
Type
Required

key

The key to get from

String

value

The value to get from

String

returnType

Number

Check if a Record exists

Check if a record exists.

This will only return true or false.

db.exists('tag')

Parameters

Name
About
Type
Required

tag

The tag to check for

String

Last updated