Stormify
The main ORM controller. Entry point for all database operations.
Parameters
the data source for all database operations
optional entity registrars to register at construction time
Types
Holds the library-wide defaultInstance used when no instance is explicitly attached.
Properties
When enabled, throws on field/column mismatches; when disabled, logs warnings.
The naming policy used to convert Kotlin property names to database column names. Default is NamingPolicy.LOWER_CASE_WITH_UNDERSCORES (snake_case). Changing this only affects entities resolved after the change.
The SQL dialect used by this Stormify instance. Auto-detected from the data source on first access. Can be set manually for proxy scenarios where auto-detection fails.
Functions
Excludes a field name from all entity mappings (e.g. inherited fields that have no database column).
Executes an SQL UPDATE/INSERT/DELETE and returns the number of affected rows.
Retrieves all detail (child) entities related to a parent entity through a foreign key.
Type-safe variant of getDetails that accepts an annotation-processor-generated reference path (e.g. Paths.AuditEntry_.createdBy) instead of a string. The compiler guarantees the referenced property exists on the child type, so typos and renames surface at build time rather than on first query.
Removes a previously blacklisted field name, allowing it to be mapped again.
Wraps this Stormify instance with a coroutine-aware transaction API backed by a DefaultSuspendConnectionPool configured with config. Safe to call multiple times with different configs; each returned SuspendStormify is independent.
Executes a block within a database transaction with automatic commit/rollback.