1.0.7 • Published 12 months ago

databridge-pack v1.0.7

Weekly downloads
-
License
-
Repository
-
Last release
12 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

12 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago