evils.db
Version:
  
18 lines (17 loc) • 631 B
TypeScript
import { Database } from "./Database";
import type { MongoDatabaseOptions } from "./Interface";
export declare class MongoDatabase extends Database {
private options;
private collection;
private connection;
private collectionName;
constructor(options: MongoDatabaseOptions);
set(key: string, value: any): Promise<any>;
get(key: string): any;
remove(key: string): Promise<void>;
getAll(): Promise<any>;
setAll(): Promise<any>;
push(key: string, value: any): Promise<any>;
pull(key: string, value: any): Promise<any>;
add(key: string, value: any): Promise<any>;
}