Grass-valley K2 TX/MAM Database Protocol Manual v.2.2 Manual de usuario Pagina 26

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 38
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 25
TX/MAM Database Protocol Manual - document version: 2.2 Page 26
8.6 Creating a record in the table with previously added fieldvalues
int cob_create_table_element( char *table, long long *id );
The new id will be returned in id.
Parameters
Name
Description
char *table
The table to update, e.g. "asset_element".
long long *id
The resulting id of the new record.
Result
The result of the function is an integer and has following possible values:
Value
Description
0
Success, the record has been created.
-1
Failure, the record could not be created.
Example
This example will create a new asset_element record with the id_category field and the
transfer_metadata already filled in:
cob_fieldlist_clear ();
cob_fieldlist_set_long( "id_category", 345, ORIGINAL_DATA );
cob_fieldlist_set_small_blob( "transfer_metadata", "<XML></XML>",11, ORIGINAL_DATA );
if ( cob_create_table_element ( "asset_element", &new_id ) != 0){
/* Log error */
}
Vista de pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 37 38

Comentarios a estos manuales

Sin comentarios