webCOMAND

COMAND I/O

io_comand_io

Provides methods to import and export content in and out of a COMAND repository.

Supported formats are currently CSV and cJSON.

To work with CSV, cJSON and other file types directly, see io_comand_file (File Framework).

CSV

Comma-separated value files must contain Content Type Field Identifiers in the first row.  That information will be used to map each column to the appropriate field.

If a unique field is provided and an object in the repository with that same unique value already exists, the existing object will be updated.  Otherwise a new object will be created.

Columns that represent fields that reference other objects may contain a value that uniquely identifies the object to reference, such as a UUID or the first unique field of a Content Type.  An ID, OID and DOID can not be used because they are not "stable" from one repository to another.