pub struct PostgresDriver;Implementations§
Source§impl PostgresDriver
impl PostgresDriver
pub const QUOTE_LEFT: &'static str = sql_generate::QUOTE_LEFT
pub const QUOTE_RIGHT: &'static str = sql_generate::QUOTE_RIGHT
pub const PROCEDURE_PAYLOAD_TYPE: &'static str = sql_generate::PROCEDURE_PAYLOAD_TYPE
pub fn apply_keywords(sql: &str, keyword: &dyn Fn(&str) -> String) -> String
pub fn statement_text_renderer() -> &'static StatementTextRenderer
pub fn types() -> &'static TypeMap
pub fn defaults() -> &'static DefaultValueConverter
pub fn convert_type(field: &SpecField) -> Result<String>
pub fn convert_default(spec_type: &str, text: &str) -> Result<Option<String>>
pub fn quote(name: &str) -> String
pub fn native_type(column: &Column) -> String
pub fn native_default(column: &Column) -> String
pub fn utc_now() -> String
pub fn native_param(parameter: &RoutineParameter) -> String
Trait Implementations§
Source§impl Driver for PostgresDriver
impl Driver for PostgresDriver
fn connection( &self, options: Option<&HashMap<String, String>>, ) -> Arc<dyn Connection> ⓘ
fn command(&self, connection: Arc<dyn Connection>) -> Arc<dyn Command> ⓘ
fn transaction( &self, connection: Arc<dyn Connection>, isolation: IsolationLevel, ) -> Arc<dyn Transaction> ⓘ
fn row_type_converters( &self, ) -> HashMap<String, Box<dyn TypeConverter<Value, Value> + Send + Sync>>
fn column_type(&self, name: &str) -> Result<String>
fn type_converter(&self) -> Option<&dyn Mapping<String, String>>
fn default_value_converter(&self) -> &dyn DefaultValueConverter
fn statement_renderer(&self) -> Option<&StatementTextRenderer>
fn information(&self) -> Option<&Information>
Auto Trait Implementations§
impl Forget for PostgresDriver
impl Freeze for PostgresDriver
impl RefUnwindSafe for PostgresDriver
impl Send for PostgresDriver
impl Sync for PostgresDriver
impl Unpin for PostgresDriver
impl UnsafeUnpin for PostgresDriver
impl UnwindSafe for PostgresDriver
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