coil
is a efficient background job queue for Postgres. The API is very
similiar and indeed based upon swirl.
In addition to the functionality swirl
offers, however, coil
can:
- Queue asynchronous tasks for execution on an executor, whether it be
smol
,tokio
orasync-std
- Queue functions with generics
- SQL queries in
coil
are ran asynchronously wherever possible - Migrations are stored in the binary, and accessible via a
migrate()
fn. No more needing to copy-paste migration files!