redgold 0.1.16

p2p database / compute engine & portfolio target models
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use sqlx::migrate::Migrator;
use sqlx::SqlitePool;
use std::path::Path;

// static MIGRATOR: Migrator = sqlx::migrate!(); // defaults to "./migrations"
//
// #[tokio::test]
// async fn test_sqlx() {
//     dotenv::dotenv().ok();
//
//     let pool = SqlitePool::connect("sqlite:///Users//.rg/debug/data_store.sqlite")
//         .await
//         .expect("Connection failure");
//     sqlx::migrate!("./migrations")
//         .run(&pool)
//         .await
//         .expect("Wtf");
// }