Skip to content

sco_storage_v1.column

Column index of the current row. out gets the type and value; TEXT and BLOB bytes go to buf with the size handshake (TEXT NUL-terminated; inout_size NULL: no bytes wanted). SCO_BAD_ARG: no current row, or index out of range.

sco_result (*)(sco_plugin *, uint64_t, uint32_t, sco_sql_value *, void *, uint32_t *)

Service index

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

Header source

sco_result (*column)(sco_plugin* self, uint64_t cursor, uint32_t index, sco_sql_value* out, void* buf, uint32_t* inout_size);
Column index of the current row. out gets the type and value; TEXT and BLOB bytes go to buf with the size handshake (TEXT NUL-terminated; inout_size NULL: no bytes wanted). SCO_BAD_ARG: no current row, or index out of range.

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 owns descriptor and byte buffer. TEXT/BLOB descriptor v.p is NULL; numeric values copied. Host may allocate staging text.

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

unspecified

unspecified

No cancellation entrypoint; ordinary unload/non-retained crash cleanup rolls back transaction and closes cursors/database. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls.

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
(*column)
cpp typed-wrapper include/scosdk/storage.hpp
if (detail::CanCall(t_, &sco_storage_v1::column)) t_->column(self_, id_, index, &v, nullptr, nullptr);
csharp typed-wrapper sdk/csharp/Sco.Sdk/Storage.cs
ScoResult r = _id == 0 ? ScoResult.NotFound : !(_s.Table != null && _s.Table->size >= (uint)((byte*)&_s.Table->column - (byte*)_s.Table + sizeof(nint)) && _s.Table->column != null) ? ScoResult.Unavailable : _s.Table->column(_s.SelfFor, _id, (uint)i, &value, null, null);
lua restricted plugins/lua/sco_lua.c
sco_result r = st->column(s->self, cur, i, &v, NULL, NULL);
sdk/docs/lua.md
Cursors are the runtime’s: sql closes its cursor on every path

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