Skip to content

Commit f14c90d

Browse files
authored
Merge pull request #104 from kinode-dao/bp/dbclone
kv & sqlite: add Clone and Serialize traits
2 parents 6d3e977 + 5103203 commit f14c90d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/kv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub enum KvError {
5454
/// Kv helper struct for a db.
5555
/// Opening or creating a kv will give you a Result<Kv>.
5656
/// You can call it's impl functions to interact with it.
57-
#[derive(Debug, Serialize, Deserialize)]
57+
#[derive(Debug, Clone, Serialize, Deserialize)]
5858
pub struct Kv<K, V> {
5959
pub package_id: PackageId,
6060
pub db: String,

src/sqlite.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ pub enum SqliteError {
7676
/// Sqlite helper struct for a db.
7777
/// Opening or creating a db will give you a Result<sqlite>.
7878
/// You can call it's impl functions to interact with it.
79+
#[derive(Debug, Clone, Serialize, Deserialize)]
7980
pub struct Sqlite {
8081
pub package_id: PackageId,
8182
pub db: String,

0 commit comments

Comments
 (0)