Get
How to get Record content and information.
Get Record From Tag
db.get('tag')Parameter
About
Type
Required
tag
The Record's tag
String
Get Record Information
Content
db.get('tag').contentdb.read('tag')Path
db.get('tag').pathdb.get('tag').realpathdb.locate('tag', realpath)Parameter
About
Type
Required
tag
Record's tag
string
realpath
Return realpath
bool
Tag
db.get('tag').tagGet Database Name
db.nameGet Record from Value
This checks if the record content is exactly the value param
db.getFromValue('value')Parameter
About
Type
Required
value
The value to get from
String
exact
Exact match?
Boolean
Get from Key/Value pair
JSON Only
This function iterates all records to find any with the matching key/value pair you provided.
db.getFromKeyValue('key', 'value', exact)Check if a Record exists
db.has('tag')Parameter
About
Type
Required
tag
The tag to check for
String
Get All Records
db.getAll({tagOnly:false, limit:10, filter})Parameter
About
Type
Required
options.tagOnly
Set to true to return an array of tags instead of Records
Boolean
options.limit
Max results
Number
options.filter
Filter results
Function
Last updated
Was this helpful?