Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Writing a Backend

A backend is a MonadArbiter instance. An arbiter-orville application can define one on its own monad in place of OrvilleDb.

Member
RegistryOfthe queue registry
Handlerthe handler type, with a connection argument if the library has one
getSchemathe Arbiter schema
executeQuery, executeStatementrun a Query: SQL with ? placeholders, the same with $n for libpq, parameters, decoder
withDbTransactiontransaction, or a savepoint when nested. See worker configuration
runHandlerWithConnectioncheck out a connection and run a handler
getListenershared LISTEN/NOTIFY listener, or Nothing for polling. See wakeups
executeQueryPreparedoptional. Defaults to executeQuery. Claims use it. Prepared once per connection when overridden. See benchmarks.

Method signatures: MonadArbiter Haddocks.