Skip to content

sco_storage_v1.rollback

Undoes everything since begin. SCO_BAD_ARG: none open.

sco_result (*)(sco_plugin *)

Service index

Property Value
Symbol sco_storage_v1.rollback
Record ID sco-storage-v1-rollback
Service sco.storage
Table sco_storage_v1
Version macro SCO_STORAGE_VERSION_1_0
Packed table version 65536
Since / availability size >= 64; 1.0
Complete member extent (x64 bytes) 64
Table size (x64 bytes) 128

Header source

sco_result (*rollback)(sco_plugin* self);
Undoes everything since begin. SCO_BAD_ARG: none open.

Absent table: query_service NOT_FOUND. Stopped: UNAVAILABLE; invalid/released self: BAD_ARG. Allocation exceptions: TOO_MANY; database errors may be FAILED. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND.

Caller buffers; inputs/SQL parameters copied during call. Host owns database/cursors; no SQLite pointer or allocation crosses the ABI.

Any thread; calls serialize per plugin. Same-call recursive reentrancy unspecified.

unspecified

unspecified

Synchronous rollback, not a request to interrupt another thread’s running statement.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sco_storage.h
(*rollback)
cpp typed-wrapper include/scosdk/storage.hpp
sco_result Rollback() noexcept { return detail::CanCall(t_, &sco_storage_v1::rollback) ? t_->rollback(self_) : SCO_UNAVAILABLE; }
csharp typed-wrapper sdk/csharp/Sco.Sdk/Storage.cs
public ScoResult Rollback() => _t == null || _t->size < (uint)((byte*)&_t->rollback - (byte*)_t + sizeof(nint)) || _t->rollback == null ? ScoResult.Unavailable : _t->rollback(Self);
lua typed-wrapper plugins/lua/sco_lua.c
StoreTx(L, st ? st->rollback : NULL, st, s)

ABI pins prove layout, not semantic behavior or a live game session.