pub struct PostgresAdapter;Expand description
A Postgres storage adapter. Currently supports planning only. No live connection — SQL generation and planning from manifest.
Trait Implementations§
Source§impl StorageAdapter for PostgresAdapter
impl StorageAdapter for PostgresAdapter
Source§fn plan_schema(&self, target: &AppManifest) -> Result<SchemaPlan, StorageError>
fn plan_schema(&self, target: &AppManifest) -> Result<SchemaPlan, StorageError>
Produce a plan that would bring storage in line with the target manifest.
Source§fn apply_schema(&self, _plan: &SchemaPlan) -> Result<(), StorageError>
fn apply_schema(&self, _plan: &SchemaPlan) -> Result<(), StorageError>
Apply a schema plan. Not implemented by dry-run adapters.
Auto Trait Implementations§
impl Freeze for PostgresAdapter
impl RefUnwindSafe for PostgresAdapter
impl Send for PostgresAdapter
impl Sync for PostgresAdapter
impl Unpin for PostgresAdapter
impl UnsafeUnpin for PostgresAdapter
impl UnwindSafe for PostgresAdapter
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