All files / lib index.d.ts

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                                       
import { IAggregateView } from './View/AggregateView';
import { AggregateViewEngine } from './View/ViewEngine';
import { DocumentViewParams } from 'nano';
export declare class Instance {
    private static readonly _instance;
    static readonly Instance: any;
}
export declare class Couch {
    connection: any;
    db: any;
    DATABASE: string;
    ready: Promise<any>;
    constructor(DATABASE: string, connection?: any);
    find(selector: any): Promise<any>;
    get(id: any): Promise<any>;
    insert(data: any, id?: string): Promise<any>;
    viewSync(designDocument: string, view: string, map: string): Promise<void>;
    viewEngine(designDocument: string, aggregateViews: IAggregateView[]): Promise<AggregateViewEngine>;
    view(designDocument: string, view: string, options?: DocumentViewParams): Promise<any>;
    update(data: any, id: any): Promise<{}>;
    delete(id: any): Promise<boolean>;
    private init;
    readonly instance: any;
}
declare const nanoInstance: any;
export { nanoInstance };
export * from './View';