Class MongoDriver

Hierarchy

  • MongoDriver

Constructors

  • Parameters

    • mongo_url: string
    • databaseName: string = "Database"
    • collectionName: string = "collection"
    • Optional connectionOptions: MongoClientOptions

    Returns MongoDriver

Properties

_client: null | MongoClient = null
_collection: null | Collection<any> = null
collectionName: string = "collection"
connectionOptions?: MongoClientOptions
databaseName: string = "Database"
mongo_url: string

Methods

  • Returns Promise<{
        ID: string;
        data: ElementValue;
    }[]>

  • Parameters

    • key: string

    Returns Promise<undefined | ElementValue>

  • Parameters

    • key: string
    • value: ElementValue

    Returns Promise<undefined | ElementValue>

Discord Support Server