diff options
author | Teddy Wing | 2021-05-29 20:23:26 +0200 |
---|---|---|
committer | Teddy Wing | 2021-05-29 20:23:26 +0200 |
commit | 8130bc32fa81821e5511500f2f64bd964c58f3db (patch) | |
tree | 53767628047de09680923491e824e25c4772da8e /src/main.rs | |
parent | 9c2d269945af68e67d8daf8870be6d5664ab2153 (diff) | |
download | reflectub-8130bc32fa81821e5511500f2f64bd964c58f3db.tar.bz2 |
Create SQLite database
Set up the database with a table for repositories so we can cache when
they were last updated.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e27694d..acbcd23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,5 +20,7 @@ async fn main() { // Path::new("/tmp/grsvp"), // ).unwrap(); - let db = database::Db::connect("sqlite::memory:").await.unwrap(); + let mut db = database::Db::connect("test.db").await.unwrap(); + + db.create().await.unwrap(); } |