API Reference kura v#2.0.6
View SourceModules
Audit trail for Kura schema operations.
Schema for the audit_log table used by kura_audit.
Capability flags for kura backends and pool implementations.
Changesets for casting external data, validating fields, and declaring constraints.
Central database wrapper. Routes all SQL through a configured
kura_driver impl over a configured kura_pool impl, so swapping
the underlying client (pgo, esqlite, ...) is one config change.
SQL dialect behaviour. Translates a portable #kura_query{} AST into
backend-specific SQL.
PostgreSQL dialect. Translates a #kura_query{} AST into parameterized
SQL using pgo's $N placeholder convention.
Pluggable database driver behaviour.
Behaviour for defining database migrations.
Runs, rolls back, and reports status of migrations.
Transaction pipelines that group multiple repo operations atomically.
Pagination helpers for Kura queries.
Pluggable connection-pool behaviour.
ETS-backed kura_pool implementation. Hands out opaque connection
refs from an ETS-tracked free list. Useful for
Composable, functional query builder.
ETS-based cache for compiled query results.
Public entry point for compiling kura_query ASTs into SQL.
Behaviour for defining a repository (database connection).
CRUD operations, preloading, transactions, and raw queries.
Test sandbox that wraps each test in a rolled-back transaction.
Behaviour for defining database-backed schemas.
Runtime verification that declared schemas match the live database.
Server-side cursor streaming for processing large result sets in batches.
Behaviour for user-defined types.
Type system for casting, dumping, and loading values between Erlang and PostgreSQL.