revCommitDatabase |
Type | command |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | revCommitDatabase <databaseID>
|
Associations | database library |
Summary | Saves recent changes to a database.
|
Introduced | 2.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Parameters | Name | Type | Description |
---|
databaseID | | The number returned by the revOpenDatabase function when the database
was opened.
|
|
Example | revCommitDatabase 4
revCommitDatabase currentDB
|
Related | Keyword: string
Command: revRollBackDatabase
Function: revQueryResult, revdb_rollback, revdb_commit
Glossary: Standalone Application Settings, database, standalone application, command, LiveCode custom library
Library: Database library
|
Security | disk, network |
Description | Use the revCommitDatabase command to save the database.
If the operation is not successful, the revCommitDatabase command
returns an error message that begins with the string "revdberr".
Note: Not all databases support the revCommitDatabase
command. The command is currently supported by Oracle, PostgreSQL
and SQLite databases only. Calling the revCommitDatabase command on
any othert type of database connection will have no affect.
Important: The revCommitDatabase command is part of the
Database library. To ensure that the command works in a
standalone application, you must include this
custom library when you create your
standalone. In the Inclusions pane of the
Standalone Application Settings window, make sure both the
"Database" library checkbox and those of the database drivers you are
using are checked.
|
Tags | database |