Struct minerva_data::db::create::CreateDatabaseStmt
source · [−]pub struct CreateDatabaseStmt {
dbname: String,
}
Expand description
A Diesel statement for creating a database.
Fields
dbname: String
Implementations
Trait Implementations
sourceimpl Clone for CreateDatabaseStmt
impl Clone for CreateDatabaseStmt
sourcefn clone(&self) -> CreateDatabaseStmt
fn clone(&self) -> CreateDatabaseStmt
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CreateDatabaseStmt
impl Debug for CreateDatabaseStmt
sourceimpl<DB: Backend> QueryFragment<DB> for CreateDatabaseStmt
impl<DB: Backend> QueryFragment<DB> for CreateDatabaseStmt
sourcefn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
fn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
Walk over this
QueryFragment
for all passes. Read morefn to_sql(&self, out: &mut <DB as Backend>::QueryBuilder) -> Result<(), Error>
fn to_sql(&self, out: &mut <DB as Backend>::QueryBuilder) -> Result<(), Error>
Converts this
QueryFragment
to its SQL representation. Read morefn collect_binds(
&self,
out: &mut <DB as Backend>::BindCollector,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error>
fn collect_binds(
&self,
out: &mut <DB as Backend>::BindCollector,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error>
Serializes all bind parameters in this query. Read more
fn is_safe_to_cache_prepared(&self) -> Result<bool, Error>
fn is_safe_to_cache_prepared(&self) -> Result<bool, Error>
Is this query safe to store in the prepared statement cache? Read more
sourceimpl QueryId for CreateDatabaseStmt
impl QueryId for CreateDatabaseStmt
sourceconst HAS_STATIC_QUERY_ID: bool = false
const HAS_STATIC_QUERY_ID: bool = false
Can the SQL generated by
Self
be uniquely identified by its type? Read moresourceimpl<Conn> RunQueryDsl<Conn> for CreateDatabaseStmt
impl<Conn> RunQueryDsl<Conn> for CreateDatabaseStmt
fn load<U>(self, conn: &Conn) -> Result<Vec<U, Global>, Error>where
Self: LoadQuery<Conn, U>,
fn load<U>(self, conn: &Conn) -> Result<Vec<U, Global>, Error>where
Self: LoadQuery<Conn, U>,
Executes the given query, returning a
Vec
with the returned rows. Read morefn get_result<U>(self, conn: &Conn) -> Result<U, Error>where
Self: LoadQuery<Conn, U>,
fn get_result<U>(self, conn: &Conn) -> Result<U, Error>where
Self: LoadQuery<Conn, U>,
Runs the command, and returns the affected row. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreateDatabaseStmt
impl Send for CreateDatabaseStmt
impl Sync for CreateDatabaseStmt
impl Unpin for CreateDatabaseStmt
impl UnwindSafe for CreateDatabaseStmt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request