Sophia defines a small set of basic methods which can be applied to any database object.
All API declarations are stored in a separate include file: sophia.h
Configuration, Control, Transactions and other objects are accessible using the same methods. Methods are called depending on used objects. Methods semantic may slightly change depending on used object.
All functions return either 0 on success, or -1 on error. The only exception are functions that return a pointer. In that case NULL might indicate an error.
All created objects must be freed by sp_destroy() function.
All methods are thread-safe and atomic.
Please take a look at the API manual section for additional details.