GoodDB
Preparing search index...
Drivers/Mongo
MongoDBDriver
Class MongoDBDriver
Implements
DriversClassType
Index
Constructors
constructor
Properties
client
options
Methods
close
create
Table
delete
All
Rows
delete
Row
By
Key
get
All
Rows
get
Row
By
Key
init
insert
set
Row
By
Key
tables
Constructors
constructor
new
MongoDBDriver
(
options
:
MongoDBDriverOptions
)
:
MongoDBDriver
Parameters
options
:
MongoDBDriverOptions
Returns
MongoDBDriver
Properties
Readonly
client
client
:
MongoClient
Readonly
options
options
:
MongoDBDriverOptions
Methods
close
close
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
create
Table
createTable
(
table
:
string
)
:
Promise
<
boolean
>
Parameters
table
:
string
Returns
Promise
<
boolean
>
delete
All
Rows
deleteAllRows
(
table
:
string
)
:
Promise
<
boolean
>
Parameters
table
:
string
Returns
Promise
<
boolean
>
delete
Row
By
Key
deleteRowByKey
(
table
:
string
,
key
:
string
)
:
Promise
<
number
>
Parameters
table
:
string
key
:
string
Returns
Promise
<
number
>
get
All
Rows
getAllRows
(
table
:
string
)
:
Promise
<
[
any
,
boolean
]
>
Parameters
table
:
string
Returns
Promise
<
[
any
,
boolean
]
>
get
Row
By
Key
getRowByKey
(
table
:
string
,
key
:
string
)
:
Promise
<
any
>
Parameters
table
:
string
key
:
string
Returns
Promise
<
any
>
init
init
(
table
:
string
)
:
Promise
<
boolean
>
Parameters
table
:
string
Returns
Promise
<
boolean
>
insert
insert
(
table
:
string
,
value
:
DatabaseDesignArray
)
:
Promise
<
boolean
>
Parameters
table
:
string
value
:
DatabaseDesignArray
Returns
Promise
<
boolean
>
set
Row
By
Key
setRowByKey
(
table
:
string
,
key
:
string
,
value
:
any
)
:
Promise
<
boolean
>
Parameters
table
:
string
key
:
string
value
:
any
Returns
Promise
<
boolean
>
tables
tables
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
client
options
Methods
close
create
Table
delete
All
Rows
delete
Row
By
Key
get
All
Rows
get
Row
By
Key
init
insert
set
Row
By
Key
tables
GoodDB
Loading...