LAPICALL AllocObject( LDB db, LID* result, LID parent, RID type);

Allocates a new object.

db specifies the database.

result is the address of a location where the function stores the id of the new object.

parent and type specify a reference for the new relation.

The new object is a child object of the specified parent object. If you want to delete the object, remove this relation and all other relations explicitly created using AddReference().