revRollBackDatabase |
Type | command |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | revRollBackDatabase <databaseID>
|
Associations | database library |
Summary | Rolls back 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 | revRollBackDatabase monthlyExpenses
|
Values | Name | Type | Description |
---|
The result | | If the rollback is not successful, the result function
returns an error message that begins with the string
"revdberr".
|
|
Related | 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
|
Security | disk, network |
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
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 |