|
@@ -591,3 +591,28 @@ _t: Table name
|
|
|
The function returns 0 if everything is OK, otherwise the function returns
|
|
|
value < 0.
|
|
|
|
|
|
+
|
|
|
+2.10 Callback dbf.replace
|
|
|
+
|
|
|
+2.10.1 Description
|
|
|
+
|
|
|
+The function implements the REPLACE SQL directive. It is possible to insert
|
|
|
+a row and replace if one already exists. The old row will be deleted before
|
|
|
+the insertion of the new data.
|
|
|
+
|
|
|
+2.10.2 Prototype
|
|
|
+
|
|
|
+ int (*db_replace_f) (db_con_t* handle, db_key_t* keys, db_val_t* vals, int n);
|
|
|
+
|
|
|
+2.10.3 Parameters
|
|
|
+
|
|
|
+The function takes 4 parameters:
|
|
|
+handle: structure representing database connection
|
|
|
+keys: key names
|
|
|
+vals: values of the keys
|
|
|
+n: number of key=value pairs
|
|
|
+
|
|
|
+2.10.4 Return Value
|
|
|
+
|
|
|
+The function returns 0 if everything is OK, otherwise the function returns
|
|
|
+value < 0.
|