pub struct FormattedInsertStatement {
pub statement: Statement,
pub columns: Vec<String>,
pub format: String,
pub body: Option<String>,
}Expand description
An INSERT INTO table [(columns)] FORMAT name envelope (no bindings),
with the format, the columns and, from Builder::bulk_insert, the
serialized rows to send with it.
It is a Statement (it derefs to one) with three more fields.
PHP: Utopia\Query\Builder\ClickHouse\FormattedInsertStatement (extends Statement).
Fields§
§statement: StatementThe envelope statement.
columns: Vec<String>The columns, in order.
format: StringThe format name (JSONEachRow).
body: Option<String>The serialized rows; None when built by insert() after insert_format().
Implementations§
Source§impl FormattedInsertStatement
impl FormattedInsertStatement
Sourcepub fn with_executor(&self, executor: Executor) -> FormattedInsertStatement
pub fn with_executor(&self, executor: Executor) -> FormattedInsertStatement
The same statement run by executor.
PHP: withExecutor().
Methods from Deref<Target = Statement>§
Sourcepub fn execute(&self) -> Result<Value>
pub fn execute(&self) -> Result<Value>
Runs the statement with its executor.
PHP: execute(), which throws BadMethodCallException (Error::NoExecutor) without one.
Sourcepub fn with_executor(&self, executor: Executor) -> Statement
pub fn with_executor(&self, executor: Executor) -> Statement
The same statement run by executor.
PHP: withExecutor().
Trait Implementations§
Source§impl Clone for FormattedInsertStatement
impl Clone for FormattedInsertStatement
Source§impl Debug for FormattedInsertStatement
impl Debug for FormattedInsertStatement
Source§impl Deref for FormattedInsertStatement
impl Deref for FormattedInsertStatement
Source§impl PartialEq for FormattedInsertStatement
impl PartialEq for FormattedInsertStatement
impl StructuralPartialEq for FormattedInsertStatement
Auto Trait Implementations§
impl !RefUnwindSafe for FormattedInsertStatement
impl !UnwindSafe for FormattedInsertStatement
impl Forget for FormattedInsertStatement
impl Freeze for FormattedInsertStatementwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value<Object>>: Freeze,
*const ArcInner<Repr<Object>> is !null: Freeze,
PhantomData<ArcInner<Repr<Object>>>: Freeze,
*const ArcInner<dyn Fn(&Statement) -> Result<Value<Object>, Error> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&Statement) -> Result<Value<Object>, Error> + Sync + Send>>: Freeze,
PhantomData<String>: Freeze,
impl Move for FormattedInsertStatement
impl Send for FormattedInsertStatement
impl Sync for FormattedInsertStatement
impl Unpin for FormattedInsertStatement
impl UnsafeUnpin for FormattedInsertStatementwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value<Object>>: UnsafeUnpin,
*const ArcInner<Repr<Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Repr<Object>>>: UnsafeUnpin,
*const ArcInner<dyn Fn(&Statement) -> Result<Value<Object>, Error> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&Statement) -> Result<Value<Object>, Error> + Sync + Send>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more