sqlx-cloudflare-do 0.2.0

A Cloudflare Durable Objects driver for sqlx: an sqlx::Database over a Durable Object's SQL storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
use sqlx_core::error::Error;

/// The error for something sqlx asks of a driver that Durable Object storage
/// cannot do.
///
/// `Protocol` is the nearest of sqlx's variants: the request is well-formed,
/// the backend just has no way to answer it. Kept in one place so the choice
/// can change without hunting down every call site.
pub(crate) fn unsupported(message: &str) -> Error {
    Error::Protocol(format!("Durable Object storage: {message}"))
}