Read function set in the active record. Below is a snippet from the documentation.
. set() ($ escape), , FALSE. , (), , .
$this->db->set('field', 'field+1', FALSE);
$this->db->insert('mytable');
$this->db->set('field', 'field+1');
$this->db->insert('mytable');