Core
The core package is the heart of Datrix. It handles schema definition, query building, data validation, relation processing, and database migrations — all without being tied to a specific database engine.
| Page | Description |
|---|---|
| Setup | Entry point functions — defineSchema and defineConfig. |
| Schema | Define schemas with typed fields, indexes, hooks, and permissions. |
| Interfaces | Full method reference for the Datrix instance — CRUD, schema access, lifecycle. |
| Query | Filter, select, populate, sort, and paginate records. |
| Relations | Write relation fields in create and update operations. |
| How It Works | The internal pipeline — QueryBuilder, Executor, Adapter, and plugin hooks. |
| Types | TypeScript type reference for all core interfaces and types. |