1.0.7 • Published 4 months ago

databridge-pack v1.0.7

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

databridge-pack

easy-to-use wrapper for redis and mongodb, only works with bun.sh or deno

Functions

connectDatabase

connect to a mongoDB with given url

usage:

import { connectDatabase } from databridge

const db = await connectDatabase('mongodb://username:password@localhost:27017')

Then use db as you wish, just like a normal mongodb client

connectCache

connect to a redis server with given url

usage:

import { connectDatabase } from databridge

const db = await connectDatabase('redis://tsingkwai:foobared@awesome.redis.server:6380')

Then use db as you wish, just like a normal redis client

1.0.7

4 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.2

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.0

1 year ago