Struct worker_plus::D1PreparedStatement
source · pub struct D1PreparedStatement(_);
Implementations§
source§impl D1PreparedStatement
impl D1PreparedStatement
pub fn bind<T>(&self, value: &T) -> Result<()>where
T: Serialize + ?Sized,
pub async fn first<T>(&self, col_name: Option<&str>) -> Result<T>where
T: for<'a> Deserialize<'a>,
pub async fn run(&self) -> Result<D1Result>
pub async fn all(&self) -> Result<D1Result>
pub async fn raw<T>(&self) -> Result<Vec<T>>where
T: for<'a> Deserialize<'a>,
Trait Implementations§
source§impl From<D1PreparedStatement> for D1PreparedStatement
impl From<D1PreparedStatement> for D1PreparedStatement
source§fn from(inner: D1PreparedStatementSys) -> Self
fn from(inner: D1PreparedStatementSys) -> Self
Converts to this type from the input type.