You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
524 B
Rust
31 lines
524 B
Rust
pub use ephemeral_messages::*;
|
|
pub use guild_playlists::*;
|
|
pub use guild_playlists::*;
|
|
pub use media::*;
|
|
pub use statistics::*;
|
|
pub use youtube_songs::*;
|
|
|
|
use crate::PoolConnection;
|
|
|
|
mod ephemeral_messages;
|
|
mod guild_playlists;
|
|
mod guild_settings;
|
|
mod media;
|
|
mod statistics;
|
|
mod youtube_songs;
|
|
|
|
#[derive(Clone)]
|
|
pub struct Database {
|
|
pool: PoolConnection,
|
|
}
|
|
|
|
unsafe impl Send for Database {}
|
|
|
|
unsafe impl Sync for Database {}
|
|
|
|
impl Database {
|
|
pub fn new(pool: PoolConnection) -> Self {
|
|
Self { pool }
|
|
}
|
|
}
|