use sqlx::{self, Connection}; use crate::github::Repo; pub struct Db { connection: sqlx::SqliteConnection, } impl Db { pub async fn connect( path: &str, ) -> Result> { Ok( Db { connection: sqlx::SqliteConnection::connect(path) .await?, } ) } pub fn create() -> Result<(), Box> { Ok(()) } pub fn repo_insert(repo: &Repo) -> Result<(), Box> { Ok(()) } pub fn repo_is_updated() -> Result> { Ok(false) } pub fn repo_update(repo: &Repo) -> Result<(), Box> { Ok(()) } }