SOCIC++封裝的數(shù)據(jù)庫(kù)訪問庫(kù)
soci是一個(gè)用C++封裝的數(shù)據(jù)庫(kù)訪問庫(kù),目前通過 “前端(應(yīng)用程序)/核心/后端(數(shù)據(jù)庫(kù)適配)”模式支持firebird,mysql,sqlite3,oracle,postgresql,odbc多種數(shù)據(jù)庫(kù);作為擴(kuò)展,您也可以自己針對(duì)具體不同庫(kù)或應(yīng)用編寫自定義后端代碼。貌似另外一個(gè)poco開源庫(kù)的數(shù)據(jù)庫(kù)封裝系參考soci;
int id = 0; Person p; session sql(oracle, connectString); sql << "select first_name, last_name, date_of_birth " "from persons where id = " << id, into(p);
目前已有整合到boost的版本,提供Jamfile,請(qǐng)參考
評(píng)論
圖片
表情
