Skip to content

Commit

Permalink
Merge pull request #104 from kinode-dao/bp/dbclone
Browse files Browse the repository at this point in the history
kv & sqlite: add Clone and Serialize traits
  • Loading branch information
nick1udwig authored Nov 1, 2024
2 parents 6d3e977 + 5103203 commit f14c90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub enum KvError {
/// Kv helper struct for a db.
/// Opening or creating a kv will give you a Result<Kv>.
/// You can call it's impl functions to interact with it.
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Kv<K, V> {
pub package_id: PackageId,
pub db: String,
Expand Down
1 change: 1 addition & 0 deletions src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ pub enum SqliteError {
/// Sqlite helper struct for a db.
/// Opening or creating a db will give you a Result<sqlite>.
/// You can call it's impl functions to interact with it.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Sqlite {
pub package_id: PackageId,
pub db: String,
Expand Down

0 comments on commit f14c90d

Please sign in to comment.