Skip to content
Snippets Groups Projects
Commit 08fa3e55 authored by florian's avatar florian
Browse files

DOC: Add hint on deletion

parent e4b7a5c5
No related branches found
No related tags found
3 merge requests!12F consolidation,!9Draft: API: remove UniqueResult, lower-case at, size for ResultSet,!8ENH: Add retrieval and queries to Extern C interface
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -24,6 +24,21 @@
C API
=====
.. note::
When working with libcaosdb's C API keep the following in
mind. Delete all objects (transactions, entities, properties,
parents, ...) that you created using a `caosdb_..._create_...`
function and only those.
The underlying reason is that all C++ objects are realized in the
Extern C interface as mutable structs containing a void pointer to
the actuall C++ object which is not filled when initializing the
struct but after calling a create function instead. If the C++
object wasn't created using a create function, e.g., the parent
object when getting a parent of an entity, it is owned by another
object and deleted together with that object.
.. toctree::
:glob:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment