Preparing search index...
The search index is not available
st.db
st.db
JSONDriver
Class JSONDriver
Hierarchy
CacheDriver
JSONDriver
Index
Constructors
constructor
Properties
collection
file_
exists
path
Methods
all
clear
delete
get
get
Collection
has
read
File
set
write
File
Constructors
constructor
new JSONDriver
(
path
?
,
path_resolve
?
)
:
JSONDriver
Parameters
path
:
string
= "data"
path_resolve
:
boolean
= true
Returns
JSONDriver
Properties
collection
collection
:
Map
<
string
,
ElementValue
>
= ...
Readonly
file_
exists
file_
exists
:
boolean
Readonly
path
path
:
string
Methods
all
all
(
)
:
Promise
<
{
ID
:
string
;
data
:
ElementValue
;
}
[]
>
Returns
Promise
<
{
ID
:
string
;
data
:
ElementValue
;
}
[]
>
clear
clear
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
delete
delete
(
key
)
:
Promise
<
undefined
|
ElementValue
>
Parameters
key
:
string
Returns
Promise
<
undefined
|
ElementValue
>
get
get
(
key
)
:
Promise
<
undefined
|
ElementValue
>
Parameters
key
:
string
Returns
Promise
<
undefined
|
ElementValue
>
get
Collection
get
Collection
(
)
:
void
Returns
void
has
has
(
key
)
:
Promise
<
boolean
>
Parameters
key
:
string
Returns
Promise
<
boolean
>
read
File
read
File
(
)
:
string
Returns
string
set
set
(
key
,
value
)
:
Promise
<
undefined
|
ElementValue
>
Parameters
key
:
string
value
:
ElementValue
Returns
Promise
<
undefined
|
ElementValue
>
write
File
write
File
(
data
?
)
:
Promise
<
void
>
Parameters
data
:
{}
= {}
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
collection
file_
exists
path
all
clear
delete
get
get
Collection
has
read
File
set
write
File
st.db
Cache
Driver
Database
Firebase
Driver
JSONDriver
Mongo
Driver
MySQLDriver
Postgres
Driver
SQLDriver
Table
XMLDriver
YAMLDriver
Discord Support Server