Function fdb_rl::split_helper::save
source · pub async fn save<Tr>(
tr: &Tr,
maybe_scan_limiter: &Option<ScanLimiter>,
maybe_subspace: &Option<Subspace>,
primary_key: &Tuple,
serialized: Bytes,
record_version: RecordVersion
) -> FdbResult<()>where
Tr: Transaction,
Expand description
Save serialized representation using multiple keys if necessary.
Note
If this function returns an error, then in the context of the transaction, any previously stored data will be deleted.
This is only in the context of transaction. It will not be deleted from the database till the transaction is committed. If you do not want the data to be deleted, you should not commit the transaction.
If you want to have the data in the event of an error, you must
load
it, before calling save
.
Warning: This function is not meant to be public. We need to make this function public to support integration tests. Do not use this function in your code.