<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          LiteSQLC++的數(shù)據(jù)庫(kù)持久層框架

          聯(lián)合創(chuàng)作 · 2023-09-30 03:57

          LiteSQL 是一個(gè)C++的數(shù)據(jù)庫(kù)持久層框架,支持 SQLite3、MySQL和PostgreSQL數(shù)據(jù)庫(kù)。

          示例代碼:

          <?xml version="1.0"?>
          <!DOCTYPE database SYSTEM "litesql.dtd">
          <database name="PersonDatabase">
          <object name="Person">
          <field name="name" type="string"/>
          </object>
          </database>

          PersonDatabase db("sqlite3", "database=person.db");Person person(db); // construct Person, does not write anything to database

          person.name = "Bob"; // assign values to fields
          person.age = 20;
          person.update(); // writes a new record to database

          person.age = 21; // Bob got just older
          person.update(); // updates old record

          person.id = 100; // force internal identifier (id) to 100
          person.update(); // updates old record
          瀏覽 7
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  五月婷婷激情 | www色撸 | 麻豆传媒在线观看视频 | 日韩三级小说 | 天堂在线中文字幕 |