Skip to content

Commit

Permalink
feat: Support db path argument to run-server.
Browse files Browse the repository at this point in the history
  • Loading branch information
jheer committed Jun 30, 2023
1 parent 788bb13 commit 1891a49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/duckdb/bin/run-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#! /usr/bin/env node
import { DuckDB, dataServer } from '../src/index.js';
dataServer(new DuckDB(), { rest: true, socket: true });

// the database to connect to, default is main memory
const dbPath = process.argv[2] || ':memory:';

dataServer(new DuckDB(dbPath), { rest: true, socket: true });

0 comments on commit 1891a49

Please sign in to comment.