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.


PageDescription
SetupEntry point functions — defineSchema and defineConfig.
SchemaDefine schemas with typed fields, indexes, hooks, and permissions.
InterfacesFull method reference for the Datrix instance — CRUD, schema access, lifecycle.
QueryFilter, select, populate, sort, and paginate records.
RelationsWrite relation fields in create and update operations.
How It WorksThe internal pipeline — QueryBuilder, Executor, Adapter, and plugin hooks.
TypesTypeScript type reference for all core interfaces and types.