Skip to content

Add callback transactions and a public ORM - #2

Merged
pacifiquem merged 1 commit into
mainfrom
feat/transactions-and-orm
Oct 11, 2026
Merged

pacifiquem merged 1 commit into
mainfrom
feat/transactions-and-orm

Conversation

@pacifiquem

Copy link
Copy Markdown
Member

Summary

  • transaction(callback) groups add, set, del, and the other mutations into one file write. A throw restores the pages from the start of that callback and leaves the file untouched. A nested call is a savepoint, and the callback has to finish synchronously.
  • Collection models are imported from @kin-lang/db/orm. kora, shira, hitamo, hindura, and siba run on the bound database or transaction, so they join an open transaction().

Testing

  • npm test passed locally: 65 tests across engine, ORM, index, and perf.

transaction() groups add, set, and del so they write the file once.
A throw restores the pages and leaves the file untouched. Collection
models are imported from @kin-lang/db/orm.
@pacifiquem
pacifiquem merged commit 54ffc9b into main Oct 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant