Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
decisions: clarify API
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Raab committed Nov 19, 2020
1 parent 788d273 commit a6429dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/decisions/ensure.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ KDB * kdb = kdbOpen (key, contract);

Opening `KDB` will fail if any of the contracts cannot be ensured.

The cleanup happens within:
As the `contract` gets copied, at any point after `kdbOpen` the
contract can be safely deleted:

```
ksDel (contract);
```

The cleanup of the global plugins happens within:

```c
kdbClose (kdb, errorKey);
ksDel (contract);
```
It is save to use the contract `KeySet` also for `kdbGet` and `kdbSet`
Expand Down

0 comments on commit a6429dc

Please sign in to comment.