|
|
|
@ -1,3 +1,5 @@
@@ -1,3 +1,5 @@
|
|
|
|
|
#![feature(drain_filter)] |
|
|
|
|
|
|
|
|
|
use color_eyre::eyre::Result; |
|
|
|
|
use rusqlite::Connection as DbConnection; |
|
|
|
|
use rusqlite::NO_PARAMS; |
|
|
|
@ -30,8 +32,15 @@ fn query_sections(conn: &DbConnection) -> Result<Vec<Section>> {
@@ -30,8 +32,15 @@ fn query_sections(conn: &DbConnection) -> Result<Vec<Section>> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fn main() -> Result<()> { |
|
|
|
|
env_logger::init(); |
|
|
|
|
tracing_subscriber::fmt() |
|
|
|
|
.with_ansi(true) |
|
|
|
|
.with_env_filter( |
|
|
|
|
tracing_subscriber::EnvFilter::try_from_default_env() |
|
|
|
|
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")), |
|
|
|
|
) |
|
|
|
|
.init(); |
|
|
|
|
color_eyre::install()?; |
|
|
|
|
|
|
|
|
|
let conn = setup_db()?; |
|
|
|
|
|
|
|
|
|
let sections = query_sections(&conn)?; |
|
|
|
|