MVault 1.0.0
Simple c++ database
|
The AddKey method is used to add the key. The values of this key are not unique in the Vault. It accepts a template parameter for the default key value. It is recommended to use an explicit.
Add key A with type int and default value 0.
Static error! The string type is not explicitly specified.
Add key B with type string and empty default value.
Since the key is unique, it does not have a default value and it is required to explicitly specify the desired type.
To add a unique key to a Vault that already has records, you need to use the lambda function. This lambda is called for every existing record in the database. It accepts a VaultRecordRef with a record and a counter with a record number. The function should return the value of the unique key.
Update the default value for the key
Remove key from vault