Abandoning rusqlite, the API is miserable
This commit is contained in:
parent
e6ca0adbcb
commit
7744c9ba45
4 changed files with 94 additions and 25 deletions
|
@ -36,6 +36,12 @@ CREATE TABLE worktree_roots(
|
|||
#[derive(Debug, PartialEq, Eq, Copy, Clone, Default, Deserialize, Serialize)]
|
||||
pub struct WorkspaceId(i64);
|
||||
|
||||
impl WorkspaceId {
|
||||
pub fn raw_id(&self) -> i64 {
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct SerializedWorkspace {
|
||||
pub workspace_id: WorkspaceId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue