⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classdbdatabase.html

📁 FastDb是高效的内存数据库系统
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</dl>    </td>  </tr></table><a class="anchor" name="dbSubSqlb28" doxytag="dbDatabase::allocateRow" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> oid_t dbDatabase::allocateRow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">oid_t&nbsp;</td>          <td class="mdname" nowrap> <em>tableId</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap> <em>size</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline, protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate record <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>tableId</em>&nbsp;</td><td>object identifier of the table </td></tr>    <tr><td valign=top><em>size</em>&nbsp;</td><td>size of the created record as table descriptor in the database </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="dbSubSqla25" doxytag="dbDatabase::allowColumnsDeletion" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbDatabase::allowColumnsDeletion </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">bool&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>enabled</em> = true          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Enable deletion of columns from the table when correspondent fields are renamed from class descriptor. By default it is switched of and database allows to delete fields only from empty table (to prevent unindented loose of data). <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>enabled</em>&nbsp;</td><td>true to enable column deletion in non empty tables </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="dbSubSqla16" doxytag="dbDatabase::assign" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbDatabase::assign </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classdbTableDescriptor.html">dbTableDescriptor</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>desc</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Assign table to the database <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>desc</em>&nbsp;</td><td>table descriptor </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="dbSubSqla12" doxytag="dbDatabase::attach" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbDatabase::attach </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Attach current thread to the database. This method should be executed for all threads except one which opened the database.     </td>  </tr></table><a class="anchor" name="dbSubSqla15" doxytag="dbDatabase::backup" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool dbDatabase::backup </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char const *&nbsp;</td>          <td class="mdname" nowrap> <em>file</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>compactify</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Perform backup to the specified file <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>file</em>&nbsp;</td><td>path to the backup file </td></tr>    <tr><td valign=top><em>comactify</em>&nbsp;</td><td>if true then databae will be compactificated during backup - i.e. all used objects will be placed together without holes; if false then backup is performed by just writting memory mapped object to the backup file. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>whether backup was succeseful or not </dd></dl>    </td>  </tr></table><a class="anchor" name="dbSubSqlb26" doxytag="dbDatabase::checkVersion" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool dbDatabase::checkVersion </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Check if program works with correct version of memory mapped object (if memory mapped object is reallocated by some client, its version number is incremented, so all other client will be able to notice it and also reallocate their memory mapping objects. <dl compact><dt><b>Returns:</b></dt><dd>true if memory mapping

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -