s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
voting
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
Voting is open. Play the entries and pick the winner.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Live Services
Record
chevron_left
Live Services
class
Record
Properties
data_object
CreatedAt
data_object
Group
data_object
Id
data_object
IsPublic
data_object
Key
data_object
OwnerSteamId
data_object
Revision
data_object
UpdatedAt
data_object
Value
Methods
functions
Delete
functions
Deserialize
functions
MakePrivate
functions
MakePublic
functions
Update
Record
An immutable snapshot of a record. Updates return a new snapshot; keep the returned record for subsequent changes. Concurrent edits fail with status 409 rather than overwriting data.
class
Sandbox.Services.Database
.
sealed
Sandbox.Engine
data_object
Properties
9
CreatedAt
DateTimeOffset
When this record was created.
Group
string
The group containing this record, or null for an ungrouped record.
Id
long
The stable ID of this record.
IsPublic
bool
Whether anyone can read this record.
Key
string
The record key, unique within its owner's package and table.
OwnerSteamId
long
The Steam ID of the player who owns this record.
Revision
string
The revision captured when this snapshot was fetched, used to detect conflicting edits.
UpdatedAt
DateTimeOffset
When this record was last changed.
Value
string
The stored text, which may contain serialized JSON.
functions
Methods
5
Delete
(
)
Task
Delete this revision as its owner or a moderator. A stale revision fails with status 409.
Deserialize
(
)
T
Deserialize a JSON payload. Invalid JSON or an incompatible type throws.
MakePrivate
(
)
Task`1
Allow only you to read your record, preserving its value. Returns a new snapshot with the new revision.
MakePublic
(
)
Task`1
Allow anyone to read your record, preserving its value. Returns a new snapshot with the new revision.
Update
(
value
)
Task`1
Replace your record's value while preserving its visibility. Returns a new snapshot with the new revision.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.