pub struct TaskRepository { /* private fields */ }Expand description
Implementation of TaskRepository.
Implementations§
Source§impl TaskRepository
impl TaskRepository
Sourcepub fn new(conn: Connection) -> TaskRepository
pub fn new(conn: Connection) -> TaskRepository
Construct a TaskRepository.
Sourcepub fn create_table_if_not_exists(&self) -> Result<()>
pub fn create_table_if_not_exists(&self) -> Result<()>
Create table tasks. This function is to be called at first time.
Trait Implementations§
Source§impl IESTaskRepository for TaskRepository
impl IESTaskRepository for TaskRepository
Source§fn issue_sequential_id(&self, aggregate_id: AggregateID) -> Result<SequentialID>
fn issue_sequential_id(&self, aggregate_id: AggregateID) -> Result<SequentialID>
issue_sequential_id issue SequentialID incremented from latest serial number.
Source§fn load_by_sequential_id(
&self,
sequential_id: SequentialID,
) -> Result<Option<Task>>
fn load_by_sequential_id( &self, sequential_id: SequentialID, ) -> Result<Option<Task>>
load_by_sequential_id loads Task by sequential_id.
Source§fn load_all_sequential_ids(&self) -> Result<Vec<SequentialID>>
fn load_all_sequential_ids(&self) -> Result<Vec<SequentialID>>
load_all_sequential_ids loads all sequential_ids.
Auto Trait Implementations§
impl !Freeze for TaskRepository
impl !RefUnwindSafe for TaskRepository
impl Send for TaskRepository
impl !Sync for TaskRepository
impl Unpin for TaskRepository
impl !UnwindSafe for TaskRepository
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