OxL Reference

type DbErrorKind

Why a database operation failed (see DbError).

Example:

oxl✓ checked in CI
fn retryable(k: DbErrorKind) -> bool => k == DbErrorKind.Busy

fn main() io {
  print("{retryable(DbErrorKind.Busy)} {retryable(DbErrorKind.Conflict)}")
}
Output
true false
pub(api) type DbErrorKind = std.core.DbErrorKind

Since. 1.0.0-beta

Defined in: std/orm/orm.oxl:251

See also