pub enum DatabaseMode {
SqliteLocal,
Remote,
}Expand description
What a packaged application does about its database.
Variants§
SqliteLocal
A SQLite file in application storage, created on first launch.
The only backend that can run inside the package, because it is the only one that is a file rather than a server.
Remote
The application’s DATABASE_URL is left exactly as it is.
What a project on PostgreSQL or MySQL gets. Its database is somewhere else and stays there; a packaged application is a client of it, and rewriting the connection string to a local SQLite file would start the application against an empty database that looked like a working one.
Trait Implementations§
Source§impl Clone for DatabaseMode
impl Clone for DatabaseMode
Source§fn clone(&self) -> DatabaseMode
fn clone(&self) -> DatabaseMode
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 DatabaseMode
Source§impl Debug for DatabaseMode
impl Debug for DatabaseMode
Source§impl<'de> Deserialize<'de> for DatabaseMode
impl<'de> Deserialize<'de> for DatabaseMode
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
impl Eq for DatabaseMode
Source§impl PartialEq for DatabaseMode
impl PartialEq for DatabaseMode
Source§impl Serialize for DatabaseMode
impl Serialize for DatabaseMode
impl StructuralPartialEq for DatabaseMode
Auto Trait Implementations§
impl Freeze for DatabaseMode
impl RefUnwindSafe for DatabaseMode
impl Send for DatabaseMode
impl Sync for DatabaseMode
impl Unpin for DatabaseMode
impl UnsafeUnpin for DatabaseMode
impl UnwindSafe for DatabaseMode
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