Modify

Modify Record Content (JSON Only)

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

For non-JSON, use overwrite()

Parameters

Name
About
Type
Required

tag

The Record's tag

String

key

The key to change

String

value

The value to set to

Any

Append data to Record

Do not use this with JSON records.

db.get('tag').append(data)
Name
About
Type
Required

data

The data to add

Any

Change the length of a Record

db.get('tag').truncate(start,end)
Name
About
Type
Required

start

Index to start at

Number

end

Index to stop at

Number

Overwrite Record Content

db.get('tag').overwrite(data)

Parameters

Name
About
Type
Required

tag

The Record's tag

String

data

The data to overwrite with

Any (must match file extension)

Modify Record's tag

db.get('old_tag').setTag('new_tag')

Parameters

Name
About
Type
Required

old_tag

The current tag of the Record.

String

new_tag

The new tag you want for the Record.

String

Overwrite Data from another Record

db.get('tag').syncWith('_tag')

Parameters

Name
About
Type
Required

_tag

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

String

Last updated