PACKAGE
mantra.sql.orm
Pluggable database drivers, query builders, migrations, and active-record persistence layers.
📋 Classes & Interfaces Summary
| Class / Interface | Type | Description |
|---|---|---|
| DatabaseAdapter | INTERFACE | Universal database driver interface enabling hot-swappable MySQL, PostgreSQL, and SQLite backends without code alterations. |
| MySQLAdapter | CLASS | MySQL 8.0 InnoDB adapter supporting connection pooling, prepared statements, and caching_sha2_password authentication. |
| PostgreSQLAdapter | CLASS | PostgreSQL 16 native adapter with support for transaction isolation, JSONB serialization, and libpq protocol. |
| SQLiteAdapter | CLASS | Embedded SQLite3 adapter supporting file-based and in-memory databases. NEW in v0.2.0. |
| Model | ABSTRACT | Active Record base class providing automatic field serialization, dirty checking, and CRUD query mapping. |
| QueryBuilder | CLASS | Fluent SQL query constructor for SELECT, WHERE, ORDER BY, LIMIT, and OFFSET predicates. NEW in v0.2.0. |
| Migration | CLASS | Database schema migration runner and fluent SchemaBuilder DDL generator. NEW in v0.2.0. |