pub struct Postgres;Trait Implementations§
impl Copy for Postgres
Source§impl Dialect for Postgres
impl Dialect for Postgres
Source§fn quote(&self, identifier: &str) -> String
fn quote(&self, identifier: &str) -> String
Wrap one identifier so a keyword or an unusual name is still valid. Read more
Source§fn placeholder(&self, position: usize) -> String
fn placeholder(&self, position: usize) -> String
The placeholder for the
position-th bound parameter, counting from 1.Source§fn column_type(&self, kind: &ColumnType) -> String
fn column_type(&self, kind: &ColumnType) -> String
The type name for a logical column type.
Source§fn uuid_default(&self) -> Option<&'static str>
fn uuid_default(&self) -> Option<&'static str>
The expression that generates a UUID, when the database has one.
Source§fn returning(&self) -> ReturningStyle
fn returning(&self) -> ReturningStyle
How a generated key comes back from an insert.
Source§fn limit_offset(
&self,
limit: Option<i64>,
offset: Option<i64>,
_ordered: bool,
) -> String
fn limit_offset( &self, limit: Option<i64>, offset: Option<i64>, _ordered: bool, ) -> String
limit … offset …, in whatever form this database accepts. Read moreSource§fn supports_if_not_exists_index(&self) -> bool
fn supports_if_not_exists_index(&self) -> bool
Whether
create index if not exists is understood. Read moreSource§fn skip_locked(&self) -> (&'static str, &'static str)
fn skip_locked(&self) -> (&'static str, &'static str)
How a
select claims the row it picks so no other worker takes it,
as (hint after the table, clause before the limit). Read moreSource§fn current_schema_expression(&self) -> &'static str
fn current_schema_expression(&self) -> &'static str
The expression naming the schema this connection is working in. Read more
Source§fn list_tables_sql(&self) -> &'static str
fn list_tables_sql(&self) -> &'static str
A query returning one row per table in the current schema, with the name
in the first column. Read more
Source§fn drop_table_sql(&self, table: &str) -> String
fn drop_table_sql(&self, table: &str) -> String
Drop one table, including anything depending on it.
Source§fn supports_if_not_exists_table(&self) -> bool
fn supports_if_not_exists_table(&self) -> bool
Whether
create table if not exists is understood.Source§fn booleans_are_integers(&self) -> bool
fn booleans_are_integers(&self) -> bool
Whether a
boolean column really is one. Read moreSource§fn max_identifier_length(&self) -> usize
fn max_identifier_length(&self) -> usize
The longest identifier this database accepts.
Source§fn migrations_table_sql(&self, table: &str) -> String
fn migrations_table_sql(&self, table: &str) -> String
The DDL for the migration tracking table. Read more
Source§fn add_column_clause(&self) -> &'static str
fn add_column_clause(&self) -> &'static str
How a column is added in an
alter table. Read morefn commit_sql(&self) -> &'static str
fn rollback_sql(&self) -> &'static str
fn savepoint_sql(&self, name: &str) -> String
fn rollback_to_savepoint_sql(&self, name: &str) -> String
Source§fn disable_foreign_keys_sql(&self) -> Option<&'static str>
fn disable_foreign_keys_sql(&self) -> Option<&'static str>
Turn off foreign key enforcement while tables are being dropped, so the
order they come back in does not matter.
fn enable_foreign_keys_sql(&self) -> Option<&'static str>
Auto Trait Implementations§
impl Freeze for Postgres
impl RefUnwindSafe for Postgres
impl Send for Postgres
impl Sync for Postgres
impl Unpin for Postgres
impl UnsafeUnpin for Postgres
impl UnwindSafe for Postgres
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