riftenlabs-indexer/src/db/mod.rs
Dagur Valberg Johannsson e38eaaa26c
Add BCMR indexer
This adds BCMR indexer, including downloading and parsing the actual
BCMR files.
2024-05-27 11:56:35 +02:00

23 lines
584 B
Rust

// Copyright (C) 2024 Riften Labs AS
//
// This software is licensed under the GNU Affero General Public License (AGPL), version 3.0 or later.
// A copy of the license can be found in the LICENSE file or at https://www.gnu.org/licenses/agpl-3.0.html
use std::sync::Arc;
pub mod bcmr;
pub mod cauldron;
pub type DBPool = Arc<r2d2::Pool<r2d2_sqlite::SqliteConnectionManager>>;
#[derive(Clone)]
pub struct DB {
// readwrite
pub cauldron_w: DBPool,
// readonly
pub cauldron_r: DBPool,
// readonly
pub bcmr_r: DBPool,
// readwrite
pub bcmr_w: DBPool,
}