Preparing search index...
The search index is not available
quick.db
quick.db
JSONDriver
Class JSONDriver
Hierarchy
MemoryDriver
JSONDriver
Index
Constructors
constructor
Properties
path
store
write
File
Methods
delete
All
Rows
delete
Row
By
Key
export
get
All
Rows
get
Or
Create
Table
get
Row
By
Key
load
Content
load
Content
Sync
prepare
set
Row
By
Key
snapshot
Constructors
constructor
new JSONDriver
(
path
?:
string
)
:
JSONDriver
Parameters
path:
string
= "./quickdb.json"
Returns
JSONDriver
Properties
path
path
:
string
= "./quickdb.json"
store
store
:
Map
<
string
,
Table
>
= ...
Private
write
File
write
File
:
typeof
writeFile
Methods
delete
All
Rows
delete
All
Rows
(
table
:
string
)
:
Promise
<
number
>
Parameters
table:
string
Returns
Promise
<
number
>
delete
Row
By
Key
delete
Row
By
Key
(
table
:
string
, key
:
string
)
:
Promise
<
number
>
Parameters
table:
string
key:
string
Returns
Promise
<
number
>
export
export
(
)
:
Promise
<
Record
<
string
,
DataLike
<
any
>
[]
>
>
Returns
Promise
<
Record
<
string
,
DataLike
<
any
>
[]
>
>
get
All
Rows
get
All
Rows
(
table
:
string
)
:
Promise
<
{
id
:
string
;
value
:
any
;
}
[]
>
Parameters
table:
string
Returns
Promise
<
{
id
:
string
;
value
:
any
;
}
[]
>
get
Or
Create
Table
get
Or
Create
Table
(
name
:
string
)
:
Table
Parameters
name:
string
Returns
Table
get
Row
By
Key
get
Row
By
Key
<
T
>
(
table
:
string
, key
:
string
)
:
Promise
<
[
null
|
T
,
boolean
]
>
Type Parameters
T
Parameters
table:
string
key:
string
Returns
Promise
<
[
null
|
T
,
boolean
]
>
load
Content
load
Content
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
load
Content
Sync
load
Content
Sync
(
)
:
void
Returns
void
prepare
prepare
(
table
:
string
)
:
Promise
<
void
>
Parameters
table:
string
Returns
Promise
<
void
>
set
Row
By
Key
set
Row
By
Key
<
T
>
(
table
:
string
, key
:
string
, value
:
any
, update
:
boolean
)
:
Promise
<
T
>
Type Parameters
T
Parameters
table:
string
key:
string
value:
any
update:
boolean
Returns
Promise
<
T
>
snapshot
snapshot
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
quick.db
JSONDriver
constructor
path
store
write
File
delete
All
Rows
delete
Row
By
Key
export
get
All
Rows
get
Or
Create
Table
get
Row
By
Key
load
Content
load
Content
Sync
prepare
set
Row
By
Key
snapshot
Generated using
TypeDoc