pub enum DatabaseType {
Sqlite,
Postgres,
Mysql,
}
Expand description
Supported database backends.
Each database has different capabilities and type mappings:
- SQLite: File-based, simple deployment, limited concurrent writes
- PostgreSQL: Advanced features, JSON support, excellent concurrency
- MySQL: High performance, wide adoption, good for large datasets
Variants§
Sqlite
SQLite database - file-based, ACID compliant, no server required. Uses INTEGER for IDs, TEXT for strings, REAL for floats.
Postgres
PostgreSQL database - advanced open-source RDBMS. Uses UUID for IDs, native JSON/JSONB, full-text search, advanced indexing.
Mysql
MySQL database - high-performance, widely adopted RDBMS. Uses INT/UNSIGNED for IDs, VARCHAR/TEXT for strings, various numeric types.
Trait Implementations§
Source§impl Clone for DatabaseType
impl Clone for DatabaseType
Source§fn clone(&self) -> DatabaseType
fn clone(&self) -> DatabaseType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DatabaseType
impl Debug for DatabaseType
Source§impl Default for DatabaseType
impl Default for DatabaseType
Source§fn default() -> DatabaseType
fn default() -> DatabaseType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseType
impl<'de> Deserialize<'de> for DatabaseType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DatabaseType
impl PartialEq for DatabaseType
Source§impl Serialize for DatabaseType
impl Serialize for DatabaseType
Source§impl ValueEnum for DatabaseType
impl ValueEnum for DatabaseType
impl Eq for DatabaseType
impl StructuralPartialEq for DatabaseType
Auto Trait Implementations§
impl Freeze for DatabaseType
impl RefUnwindSafe for DatabaseType
impl Send for DatabaseType
impl Sync for DatabaseType
impl Unpin for DatabaseType
impl UnwindSafe for DatabaseType
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.