bestool_psql/config.rs
1use bestool_postgres::pool::PgPool;
2
3use crate::theme::Theme;
4
5#[derive(Clone, Debug)]
6pub struct Config {
7 /// Database connection pool
8 pub pool: PgPool,
9
10 /// Syntax highlighting theme
11 pub theme: Theme,
12
13 /// Path to audit database directory
14 pub audit_path: Option<std::path::PathBuf>,
15
16 /// Whether write mode is enabled upon entering the REPL
17 pub write: bool,
18
19 /// Whether to use colours in output
20 pub use_colours: bool,
21}