SOS: Scalable Object Store
4.0.0
|
Objects in a SOS container are described by a schema. Every object in a SOS database is associated with a schema. A container may have any number of schema and therefore objects of different types can be stored in the same container. A schema consists of a unique name and a set of attribute specifications that describe the object.
Schema are created with the sos_schema_new() function. After a schema is created it must be associated with one or more containers with the sos_schema_add() function. Once a schema has been added to a container, it can be used to create objects using the sos_obj_new() function.
Attributes are identified by their name and by the order in which they were added to the schema. To manipulate or query a schema attribute the attribute handle is required. The attribute handle is returned by the sos_schema_attr_by_id() or sos_schema_attr_by_name() functions.