<doc>
  <legacy_id>2202</legacy_id>
  <name>revCommitDatabase</name>
  <type>command</type>
  <syntax>
    <example>revCommitDatabase <i>databaseID</i></example>
  </syntax>
  <library>Database library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Database Operations</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revRollBackDatabase">revRollBackDatabase Command</command>
    <function tag="revdb_rollback">revdb_rollback Function</function>
    <function tag="revdb_commit">revdb_commit Function</function>
    <function tag="revQueryResult">revQueryResult Function</function>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
    <network/>
  </security>
  <summary>Saves recent changes to a database.</summary>
  <examples>
    <example>revCommitDatabase 4</example>
    <example>revCommitDatabase currentDB</example>
  </examples>
  <description>
    <p>Use the <b>revCommitDatabase</b> <glossary tag="command">command</glossary> to save the database.</p><p/><p><b>Parameters:</b></p><p>The <i>databaseID</i> is the number returned by the <function tag="revOpenDatabase">revOpenDatabase</function> <control_st tag="function">function</control_st> when the <glossary tag="database">database</glossary> was opened.</p><p/><p><b>Comments:</b></p><p>If the operation is not successful, the <b>revCommitDatabase</b> <glossary tag="command">command</glossary> returns an error message that begins with the <keyword tag="string">string</keyword> "revdberr".</p><p/><p><b>Note:</b> Not all <glossary tag="database">databases</glossary> support the <b>revCommitDatabase</b> <glossary tag="command">command</glossary>. The command is currently supported by Oracle, PostgreSQL and SQLite databases only. Calling the <b>revCommitDatabase</b> command on any othert type of database connection will have no affect.</p><p/><p><img src="202653"/> <b>Important!</b> The <b>revCommitDatabase</b> <glossary tag="command">command</glossary> is part of the <glossary tag="Database library">Database library</glossary>. To ensure that the <glossary tag="command">command</glossary> works in a <glossary tag="standalone application">standalone application</glossary>, you must include this <glossary tag="LiveCode custom library">custom library</glossary> when you create your <glossary tag="standalone application">standalone</glossary>. In the Inclusions section of the General screen of the <glossary tag="Standalone Application Settings">Standalone Application Settings</glossary> window, make sure the "Database Support" checkbox is checked and the database drivers you are using are selected in the list of database drivers.</p>
  </description>
</doc>