JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1473
  • Score
    100M100P100Q121129F
  • License MIT

DuckDB Node.js package optimzed for usage in Amazon Linux 2-based environments, such as Lambda (x86 architecture)

Package Exports

  • duckdb-lambda-x86
  • duckdb-lambda-x86/lib/duckdb.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (duckdb-lambda-x86) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

duckdb-lambda-x86

This npm package contain the current DuckDB version specifically built to be able to run on Amazon Linux 2-based environments, such as AWS Lambda functions (only with x86 architecture). The original duckdb npm package unfortunately doesn't work on AL2 due to the OSes outdated package versions, and the packaging.

Installation

You can install it for your project by running

npm i --save duckdb-lambda-x86

Usage

As this package is a repackaged version of the duckdb npm package, the same Node.js API can be used. Have a look at the docs to learn more.

const duckdb = require('duckdb-lambda-x86');

const db = new duckdb.Database(':memory:'); // or a file name for a persistent DB

Lambda layer

You can alternatively use the free and public Lambda layer tobilg/duckdb-nodejs-layer.