Aureline
Schema-first tooling for SurrealDB, focused on checked schemas and migrations.
Aureline is an experimental ORM/toolkit for SurrealDB. The 0.1.0-dev.3 documentation focuses on the parts that are usable today: writing schema.aureline, checking it, generating migrations, and applying those migrations.
What works now
- Schema files with
table, field, analyzer, field-index, and table-index declarations. aureline checkfor parser and semantic validation.- Snapshot-based migrations with generated
migration.surql,down.surql, snapshots, journal, and lockfile. aureline migrate applywith checksum checks and_aureline_migrationstracking.
Still WIP
Code generation, typed clients, advanced runtime APIs, and richer permission/assertion migration output are still in development. WIP pages describe the intended direction, but they are not a stable contract yet.
Getting Started
Create a schema and generate your first migration.
CLI Reference
Commands and output shapes that exist today.
Schema Overview
How schema files are organized.
Migrations
How generated migration artifacts work.
Minimal schema
/// User accounts.
table User schemafull {
email string @unique
}Expected migration output includes:
DEFINE TABLE user SCHEMAFULL;
DEFINE FIELD email ON user TYPE string;
DEFINE INDEX user_email_unique ON user FIELDS email UNIQUE;