Package com.surrealdb
Class Transaction
java.lang.Object
com.surrealdb.Native
com.surrealdb.Transaction
Client-side transaction. Use
Surreal.beginTransaction() to start a
transaction. Operations (e.g. query(String)) run within the
transaction until commit() or cancel() is called.-
Method Summary
-
Method Details
-
commit
public void commit()Commits the transaction. After this call, the transaction is completed and must not be used. On failure the native layer throws; the return value is only true on success. -
cancel
public void cancel()Cancels (rolls back) the transaction. After this call, the transaction is completed and must not be used. On failure the native layer throws; the return value is only true on success. -
query
-