mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 09:42:22 +00:00
I/O trait
This commit is contained in:
parent
58eab38066
commit
fe41f46bc0
7 changed files with 52 additions and 76 deletions
|
@ -1,6 +1,6 @@
|
|||
use clap::{Parser, ValueEnum};
|
||||
use cli_table::{Cell, Table};
|
||||
use lig_core::{Database, Value, IO};
|
||||
use lig_core::{Database, Value};
|
||||
use rustyline::{error::ReadlineError, DefaultEditor};
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
@ -29,8 +29,8 @@ struct Opts {
|
|||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let opts = Opts::parse();
|
||||
let io = IO::new()?;
|
||||
let db = Database::open(io, opts.database.to_str().unwrap())?;
|
||||
let io = lig_core::default_io()?;
|
||||
let db = Database::open(&io, opts.database.to_str().unwrap())?;
|
||||
let conn = db.connect();
|
||||
let mut rl = DefaultEditor::new()?;
|
||||
let home = dirs::home_dir().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue