Interface to a database

Source:

Methods

(inner) createAccessor(hashTable, preWriteopt, postReadopt, encryptionKeyopt, encryptPropsopt) → {accessor}

Parameters:
Name Type Attributes Description
hashTable function
preWrite function <optional>

called before writes (validator)

postRead function <optional>

called after reads

encryptionKey string <optional>
encryptProps Array.<string> <optional>

props to encrypt

Source:
Returns:
Type
accessor

(inner) createMapEncrypt(encryptionFunction, encryptedProps) → {mapEncrypt}

Parameters:
Name Type Description
encryptionFunction function
encryptedProps Array.<string>
Source:
Returns:
Type
mapEncrypt

(inner) read(hashTable, mapDecrypt, postRead, id) → {promiseToRead}

Parameters:
Name Type Description
hashTable function
mapDecrypt function
postRead function
id string
Source:
Returns:
Type
promiseToRead

(inner) write(hashTable, preWriteFunction, mapEncrypt, id, record) → {function}

Parameters:
Name Type Description
hashTable function
preWriteFunction function
mapEncrypt function
id string
record Object
Source:
Returns:
Type
function