Preparing search index...
The search index is not available
easy-json-db
easy-json-db
export=
Class export=
Hierarchy
export=
Index
Constructors
constructor
Properties
collection
Metadata
collection
Store
database
Path
write
Queue
_instance
Methods
get
get
Collection
initialise
Collection
initialiseDBWatch
insert
lookup
Collection
Data
populate
All
Collections
remove
replace
update
update
Collection
Metadata
write
All
File
Store
write
File
Store
write
Thread
Constructors
constructor
new export=
(
databasePath
?:
string
, interval
?:
number
)
:
export=
Parameters
Optional
databasePath:
string
Optional
interval:
number
Returns
export=
Properties
Private
collection
Metadata
collection
Metadata
:
collectionMetadataRecord
collection
Store
collection
Store
:
collectionStore
database
Path
database
Path
:
string
write
Queue
write
Queue
:
Set
<
string
>
Static
Private
_instance
_instance
:
export=
Methods
get
get
(
collectionName
:
string
, lookupValue
:
string
|
document
)
:
Option
<
document
|
document
[]
>
Parameters
collectionName:
string
lookupValue:
string
|
document
Returns
Option
<
document
|
document
[]
>
get
Collection
get
Collection
(
collectionName
:
string
, force
?:
boolean
)
:
Result
<
collectionStore
,
string
>
Parameters
collectionName:
string
Optional
force:
boolean
Returns
Result
<
collectionStore
,
string
>
Private
initialise
Collection
initialise
Collection
(
collectionName
:
string
)
:
void
Parameters
collectionName:
string
Returns
void
Private
initialiseDBWatch
initialiseDBWatch
(
)
:
void
Returns
void
insert
insert
(
collectionName
:
string
, key
:
string
, data
:
document
)
:
Result
<
boolean
,
string
>
Parameters
collectionName:
string
key:
string
data:
document
Returns
Result
<
boolean
,
string
>
Private
lookup
Collection
Data
lookup
Collection
Data
(
collectionName
:
string
, lookupValue
:
string
|
document
)
:
Result
<
string
|
string
[]
,
string
>
Parameters
collectionName:
string
lookupValue:
string
|
document
Returns
Result
<
string
|
string
[]
,
string
>
Private
populate
All
Collections
populate
All
Collections
(
)
:
void
Returns
void
remove
remove
(
collectionName
:
string
, lookupValue
:
string
|
document
)
:
Result
<
boolean
,
string
>
Parameters
collectionName:
string
lookupValue:
string
|
document
Returns
Result
<
boolean
,
string
>
replace
replace
(
collectionName
:
string
, lookupValue
:
string
|
document
, data
:
document
|
document
[]
)
:
Result
<
document
,
string
>
Parameters
collectionName:
string
lookupValue:
string
|
document
data:
document
|
document
[]
Returns
Result
<
document
,
string
>
update
update
(
collectionName
:
string
, lookupValue
:
string
|
document
, data
:
document
)
:
Result
<
document
|
document
[]
,
string
>
Parameters
collectionName:
string
lookupValue:
string
|
document
data:
document
Returns
Result
<
document
|
document
[]
,
string
>
Private
update
Collection
Metadata
update
Collection
Metadata
(
collectionName
:
string
)
:
void
Parameters
collectionName:
string
Returns
void
Private
write
All
File
Store
write
All
File
Store
(
)
:
void
Returns
void
Private
write
File
Store
write
File
Store
(
collectionName
:
string
)
:
Promise
<
[
result
:
boolean
,
error
:
unknown
]
>
Parameters
collectionName:
string
Returns
Promise
<
[
result
:
boolean
,
error
:
unknown
]
>
Private
write
Thread
write
Thread
(
interval
?:
number
)
:
void
Parameters
interval:
number
= 2000
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
easy-
json-
db
export=
constructor
collection
Metadata
collection
Store
database
Path
write
Queue
_instance
get
get
Collection
initialise
Collection
initialiseDBWatch
insert
lookup
Collection
Data
populate
All
Collections
remove
replace
update
update
Collection
Metadata
write
All
File
Store
write
File
Store
write
Thread
Generated using
TypeDoc