Skip to content

ustims/DartORM-MongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB adapter for DartORM.

https://github.com/ustims/DartORM

Usage example

import 'package:dart_orm/dart_orm.dart' as ORM;
import 'package:dart_orm_adapter_mongodb/dart_orm_adapter_mongodb.dart';

...

String mongoUser = 'dart_orm_test_user';
String mongoPass = 'dart_orm_test_user';
String mongoDBName = 'dart_orm_test';

MongoDBAdapter mongoAdapter = new MongoDBAdapter(
  'mongodb://$mongoUser:$mongoPass@127.0.0.1/$mongoDBName');
await mongoAdapter.connect();

ORM.Model.ormAdapter = mongoAdapter;

About

MongoDB adapter for DartORM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages