Modify

Modify Record Content (JSON Only)

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

For non-JSON, use overwrite()

Parameter
About
Type
Required

key

The key to change

String

value

The value to set to

Any

Append content to Record

Do not use this with JSON records.

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

content

The content to add

Any

Change the length of a Record

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

length

New file length

Number

Overwrite Record Content

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

tag

The Record's tag

String

content

The content to overwrite with

Any (must match file extension)

Modify Record's tag

db.get('old_tag').setTag('new_tag')
Parameter
About
Type
Required

old_tag

The current tag of the Record.

String

new_tag

The new tag you want for the Record.

String

Overwrite Content from another Record

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

_tag

The tag of the Record you want to get the content from.

String

Last updated