mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-08 17:35:18 +00:00
16 lines
311 B
Rust
16 lines
311 B
Rust
use std::time::Instant;
|
|
|
|
use anyhow::Ok;
|
|
use cjdic2_core::db::create_schema;
|
|
use rusqlite::Connection;
|
|
|
|
fn main() -> Result<(), anyhow::Error> {
|
|
let conn = &mut Connection::open("test.db")?;
|
|
|
|
let start = Instant::now();
|
|
create_schema(conn)?;
|
|
println!("[{:.2?}]", start.elapsed());
|
|
|
|
Ok(())
|
|
}
|