Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agustinsrg/tsbean-driver-mongo
Mongo DB driver for TSBean-ORM
https://github.com/agustinsrg/tsbean-driver-mongo
mongo mongodb orm tsbean-orm
Last synced: about 1 month ago
JSON representation
Mongo DB driver for TSBean-ORM
- Host: GitHub
- URL: https://github.com/agustinsrg/tsbean-driver-mongo
- Owner: AgustinSRG
- License: mit
- Created: 2021-05-19T14:30:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T09:40:41.000Z (5 months ago)
- Last Synced: 2024-10-01T18:09:00.918Z (about 2 months ago)
- Topics: mongo, mongodb, orm, tsbean-orm
- Language: TypeScript
- Homepage:
- Size: 466 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TSBean-ORM MongoDB Driver
[![npm version](https://badge.fury.io/js/tsbean-driver-mongo.svg)](https://badge.fury.io/js/tsbean-driver-mongo)
This a MongoDB driver for [tsbean-orm](https://github.com/AgustinSRG/tsbean-orm).
Based on [mongodb](https://www.npmjs.com/package/mongodb) package.
## Installation
```
npm install --save tsbean-driver-mongo
```## Usage
```ts
import { DataSourceDriver, DataSource } from "tsbean-orm";
import { MongoDriver } from "tsbean-driver-mongo"const mySource = MongoDriver.createDataSource("mongodb://localhost/my_database");
DataSource.set(DataSource.DEFAULT, mySource);
```