Skip to content

Commit

Permalink
db path should be positional arg to match python server
Browse files Browse the repository at this point in the history
  • Loading branch information
akolov committed Oct 23, 2024
1 parent d540f8f commit 5867ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/duckdb-server-rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ mod websocket;
#[command(author, version, about)]
struct Args {
/// Path to the DuckDB database file (default: ":memory:")
#[arg(short, long)]
db_path: Option<String>,
#[arg(default_value = ":memory:")]
db_path: String,

/// Size of the connection pool (default: 1)
#[arg(short, long, default_value_t = 1)]
Expand All @@ -31,7 +31,7 @@ struct Args {
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = Args::parse();
let db_path = args.db_path.unwrap_or_else(|| ":memory:".to_string());
let db_path = args.db_path;

// Tracing setup
tracing_subscriber::registry()
Expand Down

0 comments on commit 5867ca6

Please sign in to comment.