dbWriteIntGoAhead WebServer APIGoAhead EMF

Synopsis

Updates integer values to the designated cell.

Prototype

 #include "emfdb.h"

 int dbWriteInt(int did, char_t* table, char_t* column, int row, int i); 

Parameters

diddatabase ID returned when the database was created
tabletable name in the database
columncolumn name in the table
rowrow number in the column
iinteger value to be written to the cell

Description

Write an integer to the database.

Return Value

dbWriteInt returns 0 on success, or a -1 if a failure.

Example

dbWriteInt(smd, "base_os", "swap_free", 0, value_integer(1000)); 

See Also

dbWriteInt, dbWriteStr