pub struct SqliteStorage { /* private fields */ }Expand description
SQLite-based storage implementation.
Implementations§
Trait Implementations§
Source§impl Storage for SqliteStorage
impl Storage for SqliteStorage
Source§fn get_issue_by_external_ref(&self, external_ref: &str) -> Result<Option<Issue>>
fn get_issue_by_external_ref(&self, external_ref: &str) -> Result<Option<Issue>>
Get an issue by external reference.
Source§fn close_issue(&self, id: &str, actor: &str, reason: Option<&str>) -> Result<()>
fn close_issue(&self, id: &str, actor: &str, reason: Option<&str>) -> Result<()>
Close an issue.
Source§fn delete_issue(
&self,
id: &str,
actor: &str,
reason: Option<&str>,
) -> Result<()>
fn delete_issue( &self, id: &str, actor: &str, reason: Option<&str>, ) -> Result<()>
Soft-delete an issue (tombstone).
Source§fn search_issues(&self, filter: &IssueFilter) -> Result<Vec<Issue>>
fn search_issues(&self, filter: &IssueFilter) -> Result<Vec<Issue>>
Search issues with filters.
Source§fn add_dependency(&self, dep: &Dependency) -> Result<()>
fn add_dependency(&self, dep: &Dependency) -> Result<()>
Add a dependency between issues.
Source§fn remove_dependency(&self, issue_id: &str, depends_on_id: &str) -> Result<()>
fn remove_dependency(&self, issue_id: &str, depends_on_id: &str) -> Result<()>
Remove a dependency between issues.
Source§fn get_dependencies(&self, issue_id: &str) -> Result<Vec<Dependency>>
fn get_dependencies(&self, issue_id: &str) -> Result<Vec<Dependency>>
Get all dependencies for an issue (issues this one depends on).
Source§fn get_dependents(&self, issue_id: &str) -> Result<Vec<Dependency>>
fn get_dependents(&self, issue_id: &str) -> Result<Vec<Dependency>>
Get all dependents of an issue (issues that depend on this one).
Source§fn would_create_cycle(
&self,
from_id: &str,
to_id: &str,
dep_type: DependencyType,
) -> Result<bool>
fn would_create_cycle( &self, from_id: &str, to_id: &str, dep_type: DependencyType, ) -> Result<bool>
Check if adding a dependency would create a cycle.
Source§fn get_ready_work(&self) -> Result<Vec<Issue>>
fn get_ready_work(&self) -> Result<Vec<Issue>>
Get all issues that are ready for work (open, no blocking dependencies).
Source§fn get_blocked_issues(&self) -> Result<Vec<BlockedIssue>>
fn get_blocked_issues(&self) -> Result<Vec<BlockedIssue>>
Get all blocked issues with their blocking counts.
Source§fn remove_label(&self, issue_id: &str, label: &str) -> Result<()>
fn remove_label(&self, issue_id: &str, label: &str) -> Result<()>
Remove a label from an issue.
Source§fn get_issues_by_label(&self, label: &str) -> Result<Vec<Issue>>
fn get_issues_by_label(&self, label: &str) -> Result<Vec<Issue>>
Get all issues with a specific label.
Source§fn add_comment(&self, issue_id: &str, author: &str, text: &str) -> Result<i64>
fn add_comment(&self, issue_id: &str, author: &str, text: &str) -> Result<i64>
Add a comment to an issue.
Source§fn clear_dirty(&self, issue_ids: &[String]) -> Result<()>
fn clear_dirty(&self, issue_ids: &[String]) -> Result<()>
Clear dirty flags for specific issues.
Source§fn get_statistics(&self) -> Result<Statistics>
fn get_statistics(&self) -> Result<Statistics>
Get database statistics.
Source§fn next_child_counter(&self, parent_id: &str) -> Result<u32>
fn next_child_counter(&self, parent_id: &str) -> Result<u32>
Get the next child counter for a parent issue.
Source§fn transaction<F, T>(&self, f: F) -> Result<T>
fn transaction<F, T>(&self, f: F) -> Result<T>
Run a function within a transaction.
Auto Trait Implementations§
impl !Freeze for SqliteStorage
impl RefUnwindSafe for SqliteStorage
impl Send for SqliteStorage
impl Sync for SqliteStorage
impl Unpin for SqliteStorage
impl UnwindSafe for SqliteStorage
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