Preparing search index...
The search index is not available
st.db
st.db
MongoDriver
Class MongoDriver
Hierarchy
MongoDriver
Index
Constructors
constructor
Properties
_client
_collection
collection
Name
connection
Options?
database
Name
mongo_
url
Methods
all
clear
connect
delete
disconnect
get
has
set
Constructors
constructor
new
Mongo
Driver
(
mongo_url
,
databaseName
?
,
collectionName
?
,
connectionOptions
?
)
:
MongoDriver
Parameters
mongo_url
:
string
databaseName
:
string
= "Database"
collectionName
:
string
= "collection"
Optional
connectionOptions
:
MongoClientOptions
Returns
MongoDriver
Properties
Private
_client
_client
:
null
|
MongoClient
= null
Private
_collection
_collection
:
null
|
Collection
<
any
>
= null
Private
collection
Name
collection
Name
:
string
= "collection"
Private
Optional
connection
Options
connection
Options
?:
MongoClientOptions
Private
database
Name
database
Name
:
string
= "Database"
Private
mongo_
url
mongo_
url
:
string
Methods
all
all
(
)
:
Promise
<
{
ID
:
string
;
data
:
ElementValue
;
}
[]
>
Returns
Promise
<
{
ID
:
string
;
data
:
ElementValue
;
}
[]
>
clear
clear
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
connect
connect
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
delete
delete
(
key
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
disconnect
disconnect
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
get
(
key
)
:
Promise
<
undefined
|
ElementValue
>
Parameters
key
:
string
Returns
Promise
<
undefined
|
ElementValue
>
has
has
(
key
)
:
Promise
<
boolean
>
Parameters
key
:
string
Returns
Promise
<
boolean
>
set
set
(
key
,
value
)
:
Promise
<
undefined
|
ElementValue
>
Parameters
key
:
string
value
:
ElementValue
Returns
Promise
<
undefined
|
ElementValue
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_client
_collection
collection
Name
connection
Options
database
Name
mongo_
url
all
clear
connect
delete
disconnect
get
has
set
st.db
Cache
Driver
Database
Firebase
Driver
JSONDriver
Mongo
Driver
MySQLDriver
Postgres
Driver
SQLDriver
Table
XMLDriver
YAMLDriver
Discord Support Server