cortoproject / corto

A hierarchical object store for connecting realtime machine data with web applications, historians & more
https://www.corto.io
MIT License
87 stars 14 forks source link

Add corto_findOrDeclareChild and corto_findOrCreateChild #594

Closed SanderMertens closed 7 years ago

SanderMertens commented 7 years ago

Currently, corto_declareChild and corto_createChild already have "find or create" like semantics (it is allowed to redeclare), however when an object already exists with a different type than specified in corto_declareChild or corto_createChild the function fails.

Two new findOr* functions will return an existing object, even if it has a different type.