JSONBackend: JSON backend for trackr

Description Usage Arguments Value Slots Note

View source: R/Classes.R

Description

A JSON-file based backend. This is the default backend in trackr.

Usage

1
JSONBackend(file = normalizePath("./trackr_db_data.json"), data = list())

Arguments

file

character. The json "database" to use as a trackr backend

data

A list of records to pre-populate the backend with.

Value

A JSONBackend object, for use in creating a TrackrDB object.

Slots

data

list. An in-memory list representation of the data in the db

file

character. The file containing the db ( to read from and write to)

last_load

POSIXct. The last time data was updated from disk.

Note

This is a reference class, which does NOT have standard copy-on-write semantics

This function should generally not be called directly by end-users. See instead jsonTDB


gmbecker/recordr documentation built on May 24, 2021, 10:59 a.m.