evils.db
Versions
Features
- Mongodb support
- Sqlite support
Examples
ES6
import { MongoDatabase } from 'evils.db';
const db = new MongoDatabase({
url: '',
collection: 'evilsdb',
collectionName: 'evilsdb',
})
const main = async () => {
await db.set('test', 'test')
}
main();
Javascript
const { MongoDatabase } = require('evils.db');
const db = new MongoDatabase({
url: '',
collection: 'evilsdb',
collectionName: 'evilsdb',
})
const main = async () => {
await db.set('test', 'test')
}
main();