docs: rewrite the README as an SDK introduction #99
No reviewers
Labels
No labels
area:defold
area:docs
area:infra
area:protocol
area:testing
kind:bug
kind:chore
phase:breadth
phase:core
phase:hardening
phase:slice
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
yuris/spacetimedb-defold!99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/readme-intro"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Restructures the README so it reads top to bottom for someone meeting the SDK for the first time.
Order
Was: intro, code sample, feature list, Install, Layout, Documentation. The sample appeared sixty lines before the two dependencies it needs, and the feature list answered "what else can it do" before the reader had it working.
Now: intro, Requirements, Install, Quickstart, Features, Documentation, Repository layout, Disclaimer, Licence.
Content
Subscriptionhandle and showson_appliedandon_error. It cannot use the older whole-setsubscribe, which is v1-only and asserts on the default v2 wire (stdb/connection.lua:447-450) because v2's ownSubscribeis already the query-set form.frame_budget).Requirementsis new, collecting facts that were scattered between the tagline and the install prose.Verification
The quickstart snippet's exact call sequence was replayed against the pure core (
subscribe_query->on_applied->count->on_insert->unsubscribe), asserting each step:applied=1 insert=yuris hello ended=true. Unit suite green, 11 passed, 0 failed.Docs only, no source change.
Note, unrelated to this PR
stdb/bsatn.luahas an uncommitted local edit in the working tree that replaces the array-count bounds check inReader:len()withif false then, disabling length validation on incoming wire data. It is left out of this branch. Worth a look before it reaches a commit.