// Copyright (C) 2024-2026 Whiterun LLC // // 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 sqlx::SqlitePool; pub mod bcmr; pub mod blob; pub mod cauldron; pub mod crc20; pub mod ido; pub mod init; pub mod moria; pub mod oracle; pub mod search; #[derive(Clone)] pub struct DB { // readwrite pub cauldron_w: SqlitePool, // readonly pub cauldron_r: SqlitePool, // readonly pub bcmr_r: SqlitePool, // readwrite pub bcmr_w: SqlitePool, // readwrite pub crc20_w: SqlitePool, // readonly #[allow(dead_code)] pub crc20_r: SqlitePool, // on-chain oracles pub oracle_w: SqlitePool, pub oracle_r: SqlitePool, // moria lending protocol pub moria_w: SqlitePool, pub moria_r: SqlitePool, // ido pub ido_w: SqlitePool, pub ido_r: SqlitePool, }