datrix
/docsv0.2.0
GitHub
Getting Started
ConfigurationYour First SchemaFirst MigrationBasic CRUD
Core
SetupSchemaQueryHow It WorksRelationsInterfacesTypes
Adapters
PostgreSQLMySQLPostgreSQL (core)MongoDBJSON
API
CRUDAuthUpload
Plugins
Writing Plugins
CLI

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.


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.


Further reading

Inside Datrix: A Line-by-Line Read of a TypeScript ORM's Core Layer

A walkthrough of the core package's internals: the query builder, executor, validation layer, and how they fit together.

Edit this page on GitHub
← PreviousBasic CRUDNext →Setup

On this page

Further reading
© 2026 datrix — MIT License · Built by myniqx.dev
GitHub·v0.2.0