sqlx-cloudflare-d1 0.2.0

A Cloudflare D1 driver for sqlx: an sqlx::Database over the Workers D1 binding
Documentation
1
2
3
4
5
6
7
8
9
10
use sqlx_core::error::Error;

/// The error for something sqlx asks of a driver that D1 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!("D1: {message}"))
}