Rolls back recent changes to a database.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 2.0 Security: disk, network
# Syntax
revRollBackDatabase databaseID
# Params
- databaseID : The number returned by the revOpenDatabase function when the database was opened.
# Examples
revRollBackDatabase monthlyExpenses
# Description
Use the revRollBackDatabase command to discard changes to a database.
>*Note:* Not all databases support the revRollBackDatabase > command. The revRollbackDatabase command is currently supported by > Oracle, PostgreSQL and SQLite databases only, on other databases, the > command will have no affect.
>*Important:* The revRollBackDatabase command is part of the > Database library. To ensure that the command works in a > standalone application, you must include this > LiveCode custom library when you create your > standalone application. 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
# See
- **keyword:** string - **glossary:** LiveCode custom library, Standalone Application Settings, database, standalone application, return, command - **command:** revert, revCommitDatabase, revCloseDatabase - **function:** revdb_rollback, revdb_commit - **library:** Database library - **control structure:** function