[][src]Function cqdb_sys::cqdb_writer_put

pub unsafe extern "C" fn cqdb_writer_put(
    dbw: *mut cqdb_writer_t,
    str_: *const c_char,
    id: c_int
) -> c_int

Put a string/identifier association to the database.

This function append a string/identifier association into the database. Make sure that the string and/or identifier have never been inserted to the database and that the identifier is a non-negative value.

@param dbw The pointer to the ::cqdb_writer_t instance. @param str The pointer to the string. @param id The identifier. @retval int Zero if successful, or a status code otherwise.