Create and Delete

Create Record

Create a new Record.

db.create('tag',data)

Parameters

Name
About
Type
Required

tag

The new Record's tag

String

data

The data to save

Any (match the chosen file extension)

Delete Record

Delete a record, found by it's tag.

db.delete('tag')

Parameters

Name
About
Type
Required

tag

The tag of the Record to delete

String

Delete Old Records

Will delete Records older than the time provided.

db.deleteMany.byAge({ time: { ms:5, seconds:5, minutes:5, hours:5, days:0} })

Parameters

Name
About
Type
Required

time.ms

Milliseconds

Number

time.seconds

Seconds

Number

time.minutes

Minutes

Number

time.hour

Hours

Number

time.days

Days

Number

Last updated