https://github.com/erfanium/mongo_next
https://github.com/erfanium/mongo_next
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/erfanium/mongo_next
- Owner: erfanium
- License: apache-2.0
- Created: 2022-05-02T13:39:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T20:31:39.000Z (almost 4 years ago)
- Last Synced: 2025-02-05T12:46:10.881Z (over 1 year ago)
- Language: TypeScript
- Size: 385 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Deno MongoDB Driver
(experimental) full-featured MongoDB driver for Deno.
- Use with `no-check` and `unstable` flags for now
```ts
import { MongoClient } from "https://cdn.jsdelivr.net/gh/erfanium/mongo_next/src/index.ts";
const client = new MongoClient("mongodb://localhost:27017/test");
await client.connect();
console.log("connected");
const bulk = client.db("test")
.collection("test")
.initializeUnorderedBulkOp();
bulk.find({}).updateOne({ $set: { a: 1 } });
const result = await bulk.execute();
console.log(result);
```
## Roadmap
if you are interested to contribute to this project, we're planning to do these
tasks:
- remove all `std/node` dependencies
- use `x/web_bson` as bson library
- refactor callback based apis with async functions
- use async iterators instead of node's streams (in cursors)