pub struct Database {}Implementations§
Source§impl Database
impl Database
pub fn createTable(name: String, columns: Vec<Column>) -> String
pub fn createConnection(url: String) -> Result<(), Error>
pub fn executeWithResults( sql: String, params: &[String], ) -> Result<Vec<Vec<(String, String)>>, Error>
pub fn execute(sql: String, params: &[String]) -> Result<(), Error>
pub fn databaseType(columnType: String) -> String
pub fn formatQuery(query: String) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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