pub enum DatabaseProvider {
Postgres,
Mysql,
Sqlite,
}Expand description
The three datasource providers recognised by the Nautilus schema language.
Obtained by parsing the provider field of a datasource block:
datasource db {
provider = "postgresql" // -> DatabaseProvider::Postgres
}Variants§
Postgres
PostgreSQL (provider string: "postgresql").
Mysql
MySQL / MariaDB (provider string: "mysql").
Sqlite
SQLite (provider string: "sqlite").
Implementations§
Trait Implementations§
Source§impl Clone for DatabaseProvider
impl Clone for DatabaseProvider
Source§fn clone(&self) -> DatabaseProvider
fn clone(&self) -> DatabaseProvider
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 DatabaseProvider
impl Debug for DatabaseProvider
Source§impl Display for DatabaseProvider
impl Display for DatabaseProvider
Source§impl FromStr for DatabaseProvider
impl FromStr for DatabaseProvider
Source§impl PartialEq for DatabaseProvider
impl PartialEq for DatabaseProvider
impl Copy for DatabaseProvider
impl Eq for DatabaseProvider
impl StructuralPartialEq for DatabaseProvider
Auto Trait Implementations§
impl Freeze for DatabaseProvider
impl RefUnwindSafe for DatabaseProvider
impl Send for DatabaseProvider
impl Sync for DatabaseProvider
impl Unpin for DatabaseProvider
impl UnsafeUnpin for DatabaseProvider
impl UnwindSafe for DatabaseProvider
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