API Reference
Complete API documentation for Stabilize ORM
Stabilize Class
Core Stabilize class for database connections and repository management
Repository
Repository pattern for data access and manipulation
Query Builder
Fluent API for building complex database queries
Model Definition
Define models with columns, relationships, and options
Data Types
Available data types for model columns
Validation
Column validation rules and how write paths enforce them
Transactions
Atomic multi-statement writes and how the client is threaded through them
Soft Deletes
Deleting without removing, recovering rows, and querying the trash
Optimistic Locking
Version-based conflict detection and the pessimistic alternative
Retry & Pooling
Retry behaviour for read-only statements, pool statistics and health checks
Events & Hooks
Lifecycle hooks and the events a Stabilize instance emits
Logging
Log levels, file rotation and what the logger writes
Pagination
Offset and cursor pagination across the repository and the query builder
Many-to-Many
Link management across a join table
Aggregates
Count, sum, average, min and max on the Repository and the QueryBuilder
Helper Methods
Lookups, create-or-update, column helpers, bulk writes and iteration
CLI Commands
Command-line interface reference
In this section
API Reference reads top to bottom. Each page also links to the next, so you can start at the beginning and follow along.