nosqlax
Version:
NoSQLax is a modern, lightweight JavaScript Object Document Mapper(ODM) library that makes working with CouchDB a breeze. Inspired by CouchDB’s “Relax” philosophy and the chill vibes of Snorlax, NoSQLax takes the hassle out of managing your data, offering
17 lines (16 loc) • 392 B
TypeScript
import Nano, { DocumentScope } from 'nano';
interface DataSourceConfig {
url: string;
username?: string;
password?: string;
database: string;
}
declare class DataSource {
private _connection;
constructor(config: DataSourceConfig);
/**
* Get the database connection
*/
get connection(): DocumentScope<Nano.MaybeDocument>;
}
export default DataSource;