pub struct SqliteDialect;Expand description
The SQLite dialect.
use openehr_sqlite::SqliteDialect;
use openehr_store::{ColTy, Dialect};
// `SQLite` has one string type and one integer type, so the *distinction*
// between an authoritative instant and its derived partner has to be
// carried by the choice of storage class rather than by two date types.
assert_eq!(SqliteDialect.col_sql(ColTy::Instant), "TEXT");
assert_eq!(SqliteDialect.col_sql(ColTy::InstantUtc), "INTEGER");Trait Implementations§
Source§impl Clone for SqliteDialect
impl Clone for SqliteDialect
Source§fn clone(&self) -> SqliteDialect
fn clone(&self) -> SqliteDialect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SqliteDialect
Source§impl Debug for SqliteDialect
impl Debug for SqliteDialect
Source§impl Default for SqliteDialect
impl Default for SqliteDialect
Source§fn default() -> SqliteDialect
fn default() -> SqliteDialect
Returns the “default value” for a type. Read more
Source§impl Dialect for SqliteDialect
impl Dialect for SqliteDialect
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
The engine’s name, as it appears in documentation and error messages.
Source§fn placeholder(&self) -> Placeholder
fn placeholder(&self) -> Placeholder
The engine’s placeholder style.
Source§fn append_only_sql(&self, table: &Table) -> Vec<String>
fn append_only_sql(&self, table: &Table) -> Vec<String>
Statements enforcing append-only on a table. Read more
Source§fn table_idempotence(&self) -> Idempotence
fn table_idempotence(&self) -> Idempotence
How
CREATE TABLE is made re-runnable.Source§fn index_idempotence(&self) -> Idempotence
fn index_idempotence(&self) -> Idempotence
How
CREATE INDEX is made re-runnable. Read moreSource§fn guard(&self, _kind: ObjectKind, _name: &str, statement: &str) -> String
fn guard(&self, _kind: ObjectKind, _name: &str, statement: &str) -> String
Wraps a statement so that re-running it is a no-op. Read more
Source§fn terminator(&self) -> &'static str
fn terminator(&self) -> &'static str
The statement terminator used when joining statements into a script.
Source§fn create_table(&self, table: &Table) -> String
fn create_table(&self, table: &Table) -> String
One
CREATE TABLE statement.impl Eq for SqliteDialect
Source§impl PartialEq for SqliteDialect
impl PartialEq for SqliteDialect
impl StructuralPartialEq for SqliteDialect
Auto Trait Implementations§
impl Freeze for SqliteDialect
impl RefUnwindSafe for SqliteDialect
impl Send for SqliteDialect
impl Sync for SqliteDialect
impl Unpin for SqliteDialect
impl UnsafeUnpin for SqliteDialect
impl UnwindSafe for SqliteDialect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.