Skip to main content

Module gotify

Module gotify 

Source
Expand description

Gotify subscription CRUD on the redb subscriptions table.

The whole GotifySubscription record is stored as serde-json keyed by its uuid bytes - no field schema on disk, so a v1->v2 type change needs no table migration.

Re-exportsยง

use anyhow::Context; ๐Ÿ”’
use forge_primitives::GotifySubscription; ๐Ÿ”’
use redb::ReadableTable; ๐Ÿ”’
use redb::TableDefinition; ๐Ÿ”’
use uuid::Uuid; ๐Ÿ”’
use super::Db; ๐Ÿ”’

Constantsยง

SUBS ๐Ÿ”’

Functionsยง

insert
Persist a subscription, replacing any prior record with the same id.
list
Every persisted subscription.
read_all ๐Ÿ”’
remove
Delete a subscription by id. Returns whether a record existed.