revdb_rollback

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revdb_rollback(<databaseID>)
Associationsdatabase library
Summary

Executes the revRollBackDatabase command.

Introduced1.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
databaseID

The number returned by the revOpenDatabase function when the database was opened.

Example
revdb_rollback(monthlyExpensesConnection)
Values
NameTypeDescription
return

The revdb_rollback function returns empty if the changes were successfully rolled back.

RelatedControl Structure: function
Command: revert, revRollBackDatabase, revCloseDatabase, revCommitDatabase
Glossary: return, database, execute, Standalone Application Settings, function call, standalone application, command, LiveCode custom library
Library: Database library
Securitydisk, network
Description

Use the revdb_rollback function to discard changes to a database.

Evaluating the revdb_rollback function has the same effect as executing the revRollBackDatabase command. The only difference is that one is a function call and the other is a command.

Important: The revdb_rollback function is part of the Database library. To ensure that the function 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.

Tagsdatabase