kajenn-db documentation

kajenn-db provides the database handlers of the kajenn ASGI server. A handler connects a database library to kajenn: each call (request, task, message) gets its own database session, and kajenn closes it when the call ends.

kajenn itself never imports a database driver. A site declares its databases with a handler class; this package provides those classes.

Handler

Library

Sync routes

Async routes

Migrations

Status

AsqueelDbHandler

asqueel 0.9

yes

yes

yes

supported

SqlAlchemyDbHandler

SQLAlchemy 2

yes

yes

no

probe

DjangoDbHandler

Django 4.2+

yes

no

yes

probe

  • supported: the handler meant for real applications.

  • probe: a handler written to check that kajenn’s handler contract works on a library other than asqueel. It implements the contract and nothing more, and its limits are deliberate. Each backend guide lists them.

New here? Start with Getting started, then read How a handler works.

Indices and tables