-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
See [@Peaa, p. 165]
Main Features
- Store R6 objects in a relational database
- Retrieve R6 objects from a relational database
Under the Hood
- Store R6 objects in Entity–attribute–value model (EAV) data model
- Entity is the object
uid. If not supplied then use md5hash? - Attribute is one of four: public_field, public_method, private_field or private_method
- Value is an unboxed json string (character)
- Entity is the object
- Optional: Include an additional entry that holds the result of
serializeR6 object.
Hint
Examples
Pseudocode: Mappin a person object to and from database
character <- person(given = "Bilbo", family = "Baggins")
class(character) # person
CharacterMapper$insert(character)
candidates <- CharacterMapper$find(given = "Bilbo")
class(candidates) # list of persons
identical(candidates[[1]], character)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request