Skip to content

oraichain/duckdb-http-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duckdb-http

Connect to DuckDB over the HTTP protocol, allowing multiple processes to read and write concurrently.

Installation

npm install duckdb-http

Usage

import { Database } from 'duckdb-http';

async function main() {
  const db = await Database.connect({
    baseUrl: 'http://localhost:8888',
    apiKey: 'mysecret'
  });

  const rows = await db.all('SELECT * FROM transactions LIMIT 1');

  console.log('data:', rows);
}

main();

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •