activityforge 0.1.0-pre-alpha

ActivityForge federated git forges over ActivityPub
Documentation
1
2
3
4
5
6
7
8
9
10
11
use activityforge::{
    Result,
    db::{Db, DbConfig},
};

/// Basic test to ensure a basic database connection.
///
/// Requires calling `start_db` first to start the test DB container.
pub async fn test_connection(config: &DbConfig) -> Result<Db> {
    Db::connect(config.clone()).await
}