pub enum Dialect {
Sqlite,
Postgres {
url: String,
},
}Expand description
The database engine backing a test harness.
Dialect::available() is the parity entry point: a module suite
loops over it so one test definition runs against every dialect the
environment provides — SQLite in-memory always, Postgres 16 when
FZ_TEST_POSTGRES_URL names a server (CI’s postgres:16 service
container).
Variants§
Sqlite
A fresh in-memory SQLite database (the default; always available).
Postgres
A throwaway database on the Postgres server at url, created
when the harness builds and dropped when it drops. Requires
building cratefield-testing with the postgres feature.
Implementations§
Trait Implementations§
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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<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.