Converted to using rusqlite
This commit is contained in:
parent
aa8fa4a6d5
commit
dbea3cf20c
8 changed files with 91 additions and 172 deletions
10
crates/db/src/migrations.rs
Normal file
10
crates/db/src/migrations.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
use rusqlite_migration::{Migrations, M};
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
pub static ref MIGRATIONS: Migrations<'static> = Migrations::new(vec![M::up(
|
||||
"CREATE TABLE kv_store(
|
||||
key TEXT PRIMARY KEY,
|
||||
value TEXT NOT NULL
|
||||
) STRICT;",
|
||||
)]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue