Search
Preparing search index...
The search index is not available
Deco API Documentation - v1.0.7
Options
All
Public
Public/Protected
All
Inherited
Menu
Deco API Documentation - v1.0.7
Datastore
Class Datastore
Hierarchy
Datastore
Index
Constructors
constructor
Properties
db
mongo
Client
mongo
Url
options
ready
Methods
Object
Id
close
connect
init
is
Ready
Constructors
constructor
new
Datastore
(
)
:
Datastore
Returns
Datastore
Properties
db
db
:
Db
Private
mongo
Client
mongo
Client
:
MongoClient
Private
mongo
Url
mongo
Url
:
string
= ''
Private
options
options
:
{
database
:
string
;
host
:
string
;
password
:
string
;
port
:
string
;
protocol
:
string
;
user
:
string
}
= ...
Type declaration
database
:
string
host
:
string
password
:
string
port
:
string
protocol
:
string
user
:
string
ready
ready
:
boolean
= false
Methods
Object
Id
Object
Id
(
)
:
typeof
ObjectId
Returns
typeof
ObjectId
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
connect
connect
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
init
init
(
options
?:
{}
)
:
Datastore
Parameters
options:
{}
= ...
Returns
Datastore
is
Ready
is
Ready
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
Exports
Datastore
constructor
db
mongo
Client
mongo
Url
options
ready
Object
Id
close
connect
init
is
Ready
Generated using
TypeDoc