/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct D1Query {
/// Params are the statement's bound values, in the order its `?` placeholders appear — a string, a number, a boolean or null, whatever the column takes. Absent means the statement carries no placeholders; bind values here rather than interpolating them into the statement.
#[serde(rename = "params", skip_serializing_if = "Option::is_none")]
pub params: Option<Vec<serde_json::Value>>,
/// SQL is the statement to run. Blank (or absent) is refused before anything reaches D1.
#[serde(rename = "sql", skip_serializing_if = "Option::is_none")]
pub sql: Option<String>,
}
impl D1Query {
pub fn new() -> D1Query {
D1Query {
params: None,
sql: None,
}
}
}