i have completed a project in codeigniter with mysql database but now i want to move mysql to non sql database mongodb. i have found some driver of mongodb in codeigniter but their query structure is different. I have also use custom sql query in that project like
$sql = "SELECT * FROM table_name";
$this->db->query($sql);
i want use mongodb in this existing project without change any database query. Please help how i will be able to do that.