Crate apalis_sql

Source
Expand description

§apalis-sql

apalis offers Sqlite, Mysql and Postgres storages for its workers. See relevant modules for examples

Features

These features can be used to enable SQLx functionalities:

  • mysql - MySQL support.
  • postgres - PostgreSQL support.
  • sqlite - SQLite support.
  • migrate - Migrations for Apalis tables.
  • async-std-comp - Use async-std runtime and rustls.
  • async-std-comp-native-tls - Use async-std runtime and native-tls.
  • tokio-comp - Use Tokio runtime and rustls.
  • tokio-comp-native-tls - Use Tokio runtime and native-tls.

For more information about the runtime and TLS features, see the SQLx features documentation.

Re-exports§

pub use sqlx;

Modules§

context
The context of the sql job
from_row
Util for fetching rows
mysqlmysql
MySQL storage for apalis. Uses SKIP LOCKED
postgrespostgres
Postgres storage for apalis. Uses NOTIFY and SKIP LOCKED
sqlitesqlite
Sqlite Storage for apalis. Uses a transaction and min(rowid)

Macros§

sql_storage_tests
Standard checks for any sql backend

Structs§

Config
Config for sql storages

Enums§

SqlError
A general sql error

Functions§

calculate_status
Calculates the status from a result