Skip to content

thekorn/deno-build-mongodb-native

Repository files navigation

Build mongodb-native client for deno

This repository includes all tooling and required changes to build the mongodb-native client for deno.

Howto port the deno libraries

Prerequisite

Install deno, see documentation The node typescript library is used to process upstream, run npm install in the root of the repository

update upstream

upstream of js-bson is tracked as git submodule, use usual git submodules techniques to fetch and potentially update the upstream baseline, like

$ git submodule update --init --recursive --remote

build bson-deno

First clone the current version of bson-deno:

$ deno run -A tools/drake/local-drakefile.ts clone-bson-deno

Then compile the new version of bson-deno:

$ deno run -A tools/drake/local-drakefile.ts build-bson-deno

TODOS

  • port js-bson for deno
    • fix type exports in src/bson.ts In order to fix this issue upstream a ticket and PR has been created. As a workaround a firk with this feature applied is used as a baseline
    • implement a basic set of tests for bson-deno
    • potentially even consider porting all upstream tests
  • port node-mongodb-native for deno
  • implement bson-ext in rust / wasm (or not, as bson-ext is reaching EOL)

Thanks

  • the inspiration for this project came from this blogpost from edgeDB - early version of the compiler is also based on their work

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published