Atscript DB

Use when working with @atscript/db, @atscript/db-{sqlite,postgres,mysql,mongo,memory}, @atscript/db-sql-tools, @atscript/moost-db, @atscript/db-client, or .as models with @db.* annotations. Covers DbSpace, adapter wiring, table/view CRUD, query filters, patch/field/array ops, relations, views, schema sync, engine-specific capabilities, BaseDbAdapter subclassing, moost-db REST routes, declarative actions, @InputForm structured input, URL query syntax, browser Client, client.action(), client.getActionForm(), DB validation, optimistic concurrency control via @db.column.version + $cas + withOptimisticRetry, field-level encryption at rest (@db.encrypted, key rotation, ENC_* errors), geo search (db.geoPoint, @db.index.geo, geoSearch, $geoWithin, GET /geo), token controller binding (provideDbSpace, @db.space), model manifest (atscriptModels), planSchema, assertExposed, provideTestDbSpace. Scope is DB only. Out of scope (use the moostjs/atscript skill): .as syntax, @meta.*, @expect.*, asc, unplugin, VSCode.

moostjs 86e7124 25 files · 325.9 KB Updated

File contents

moostjs/atscript-db/tree/main/skills/atscript-db commit 86e7124868

Frequently asked questions

npx skillmds@latest add moostjs/atscript-db