pub struct BoundTypes {}Fields§
§id: u8§boolean: bool§int8: i8§uint8: u8§int16: i16§uint16: u16§int32: i32§uint32: u32§int64: i64§float32: f32§float64: f64§text: String§uuid: Uuid§date: Date§time: Time§decimal: FixedDecimal<20, 4>Trait Implementations§
Source§impl AsEntity for BoundTypes
impl AsEntity for BoundTypes
type Entity = BoundTypes
fn as_entity(&self) -> &BoundTypes
Source§impl AsEntity for &BoundTypes
impl AsEntity for &BoundTypes
type Entity = BoundTypes
fn as_entity(&self) -> &BoundTypes
Source§impl BoundTypesColumnTrait for BoundTypes
impl BoundTypesColumnTrait for BoundTypes
const id: ColumnRef
const boolean: ColumnRef
const int8: ColumnRef
const uint8: ColumnRef
const int16: ColumnRef
const uint16: ColumnRef
const int32: ColumnRef
const uint32: ColumnRef
const int64: ColumnRef
const float32: ColumnRef
const float64: ColumnRef
const text: ColumnRef
const uuid: ColumnRef
const date: ColumnRef
const time: ColumnRef
const decimal: ColumnRef
Source§impl Clone for BoundTypes
impl Clone for BoundTypes
Source§impl Debug for BoundTypes
impl Debug for BoundTypes
Source§impl Entity for BoundTypes
impl Entity for BoundTypes
Source§type PrimaryKey<'a> = (&'a u8,)
type PrimaryKey<'a> = (&'a u8,)
Primary key type. A tuple of field types (or single type) forming the PK.
Source§fn primary_key<'a>(&'a self) -> Self::PrimaryKey<'a>
fn primary_key<'a>(&'a self) -> Self::PrimaryKey<'a>
Extract PK value(s) from
self.Source§fn primary_key_expr(&self) -> impl Expression
fn primary_key_expr(&self) -> impl Expression
Build an expression matching the PK of
self.Source§fn row_values(&self) -> impl ExactSizeIterator<Item = Value<'_>>
fn row_values(&self) -> impl ExactSizeIterator<Item = Value<'_>>
Values of all persisted columns in declaration order, borrowing from
self where possible.Source§fn create_table(
executor: &mut impl Executor,
if_not_exists: bool,
create_schema: bool,
) -> impl Future<Output = Result<(), Error>> + Sendwhere
Self: Sized,
fn create_table(
executor: &mut impl Executor,
if_not_exists: bool,
create_schema: bool,
) -> impl Future<Output = Result<(), Error>> + Sendwhere
Self: Sized,
Create table (and optional schema). Read more
Source§fn drop_table(
executor: &mut impl Executor,
if_exists: bool,
drop_schema: bool,
) -> impl Future<Output = Result<(), Error>> + Sendwhere
Self: Sized,
fn drop_table(
executor: &mut impl Executor,
if_exists: bool,
drop_schema: bool,
) -> impl Future<Output = Result<(), Error>> + Sendwhere
Self: Sized,
Drop the table (and optional schema). Read more
Source§fn insert_one<E>(
executor: &mut impl Executor,
entity: E,
) -> impl Future<Output = Result<RowsAffected, Error>> + Sendwhere
E: AsEntity,
fn insert_one<E>(
executor: &mut impl Executor,
entity: E,
) -> impl Future<Output = Result<RowsAffected, Error>> + Sendwhere
E: AsEntity,
Insert a single entity.
Source§fn insert_many<It>(
executor: &mut impl Executor,
items: It,
) -> impl Future<Output = Result<RowsAffected, Error>> + Sendwhere
Self: Sized,
It: IntoIterator + Send,
<It as IntoIterator>::IntoIter: Send,
<It as IntoIterator>::Item: AsEntity,
fn insert_many<It>(
executor: &mut impl Executor,
items: It,
) -> impl Future<Output = Result<RowsAffected, Error>> + Sendwhere
Self: Sized,
It: IntoIterator + Send,
<It as IntoIterator>::IntoIter: Send,
<It as IntoIterator>::Item: AsEntity,
Bulk insert entities.
Source§fn prepare_find<Exec>(
executor: &mut Exec,
condition: impl Expression,
limit: Option<u32>,
) -> impl Future<Output = Result<Query<<Exec as Executor>::Driver>, Error>> + Sendwhere
Exec: Executor,
fn prepare_find<Exec>(
executor: &mut Exec,
condition: impl Expression,
limit: Option<u32>,
) -> impl Future<Output = Result<Query<<Exec as Executor>::Driver>, Error>> + Sendwhere
Exec: Executor,
Prepare (but do not yet run) a SQL select query. Read more
Source§fn find_one(
executor: &mut impl Executor,
condition: impl Expression,
) -> impl Future<Output = Result<Option<Self>, Error>> + Sendwhere
Self: Sized,
fn find_one(
executor: &mut impl Executor,
condition: impl Expression,
) -> impl Future<Output = Result<Option<Self>, Error>> + Sendwhere
Self: Sized,
Finds the first entity matching a condition expression. Read more
Source§fn find_many(
executor: &mut impl Executor,
condition: impl Expression,
limit: Option<u32>,
) -> impl Stream<Item = Result<Self, Error>> + Sendwhere
Self: Sized,
fn find_many(
executor: &mut impl Executor,
condition: impl Expression,
limit: Option<u32>,
) -> impl Stream<Item = Result<Self, Error>> + Sendwhere
Self: Sized,
Streams entities matching a condition. Read more
Source§fn delete_many(
executor: &mut impl Executor,
condition: impl Expression,
) -> impl Future<Output = Result<RowsAffected, Error>> + Sendwhere
Self: Sized,
fn delete_many(
executor: &mut impl Executor,
condition: impl Expression,
) -> impl Future<Output = Result<RowsAffected, Error>> + Sendwhere
Self: Sized,
Deletes all entities matching a condition. Read more
Source§impl Expression for BoundTypes
impl Expression for BoundTypes
Source§fn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut AnyQuery,
)
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut AnyQuery, )
Generates the SQL representation of this expression.
Source§fn accept_visitor(
&self,
_matcher: &mut dyn ExpressionVisitor,
_writer: &dyn SqlWriter,
_context: &mut Context,
_out: &mut AnyQuery,
) -> bool
fn accept_visitor( &self, _matcher: &mut dyn ExpressionVisitor, _writer: &dyn SqlWriter, _context: &mut Context, _out: &mut AnyQuery, ) -> bool
Traverses the expression with a visitor. Read more
Source§fn as_identifier(&self, context: &mut Context) -> String
fn as_identifier(&self, context: &mut Context) -> String
Renders the expression as a string suitable for use as an identifier.
Source§impl OpPrecedence for BoundTypes
impl OpPrecedence for BoundTypes
Source§fn precedence(&self, _: &dyn SqlWriter) -> i32
fn precedence(&self, _: &dyn SqlWriter) -> i32
Writers parenthesize when child precedence <= operator precedence.
Source§impl PartialEq for BoundTypes
impl PartialEq for BoundTypes
impl StructuralPartialEq for BoundTypes
Auto Trait Implementations§
impl Forget for BoundTypes
impl Freeze for BoundTypes
impl Move for BoundTypes
impl RefUnwindSafe for BoundTypes
impl Send for BoundTypes
impl Sync for BoundTypes
impl Unpin for BoundTypes
impl UnsafeUnpin for BoundTypes
impl UnwindSafe for BoundTypes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Dataset for T
impl<T> Dataset for T
Source§fn qualified_columns(&self) -> bool
fn qualified_columns(&self) -> bool
Should columns be qualified (
schema.table.col)?