Get a repository for the named entity type.
Entity shape
Primary key type
Entity name (e.g. 'User')
Repository for the entity
Programmatic migrations are unsupported by the current adapters. Each ORM
owns schema migration through its own CLI, so this rejects with
UnsupportedMigrationError.
A rejected promise naming the unsupported operation
Execute a raw SQL query and return results.
Expected row shape
SQL query string
Optionalparams: unknown[]
Query parameters (replaced positionally)
Query result rows
Execute the work callback within a database transaction.
On success the transaction commits and the callback result is returned. On error the transaction rolls back and the error propagates.
Return type of the work callback
Function receiving a transaction-scoped Unit of Work
Optionaloptions: TransactionOptions
Optional transaction settings, including requested isolation
The result of the work callback
High-level database service combining repository access, unit of work, raw queries, and lifecycle management.
Since
0.1.0