blob: 69f9267ab09410a6bf5b7e072687f36dd213fc82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
use clap::Parser;
use diesel_async::{
scoped_futures::ScopedFutureExt,
AsyncConnection,
RunQueryDsl,
};
use dotenv::dotenv;
use thulani::db;
#[derive(clap::Parser)]
struct Opts {
#[arg(short, long)]
guild: u64,
}
#[tokio::main]
pub async fn main() -> anyhow::Result<()> {
thulani::log_setup::init();
dotenv().ok();
let opts = Opts::parse();
let mut conn = db::manual_migrate::connection_no_migrate().await?;
db::manual_migrate::set_default_guild(conn, opts.guild).await?;
Ok(())
}
|