pub struct PostgresSessionStore { /* private fields */ }Expand description
Reference PostgreSQL implementation of SessionStore.
Uses a simple wf_sessions table with metadata JSONB. Production users
with complex session schemas should implement their own SessionStore.
Implementations§
Trait Implementations§
Source§impl SessionStore for PostgresSessionStore
impl SessionStore for PostgresSessionStore
Source§fn upsert<'life0, 'life1, 'async_trait>(
&'life0 self,
session: &'life1 Session,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert<'life0, 'life1, 'async_trait>(
&'life0 self,
session: &'life1 Session,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Insert or update a session record.
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Session>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Session>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch a session by its unique ID.
Auto Trait Implementations§
impl Freeze for PostgresSessionStore
impl !RefUnwindSafe for PostgresSessionStore
impl Send for PostgresSessionStore
impl Sync for PostgresSessionStore
impl Unpin for PostgresSessionStore
impl UnsafeUnpin for PostgresSessionStore
impl !UnwindSafe for PostgresSessionStore
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