GoodDB
Preparing search index...
Drivers/JSON
JSONDriver
Class JSONDriver
Implements
DriversClassType
Index
Constructors
constructor
Properties
format
options?
path
Methods
clear
create
Table
delete
All
Rows
delete
Row
By
Key
get
All
Rows
get
Row
By
Key
init
insert
read
set
Row
By
Key
tables
write
Constructors
constructor
new
JSONDriver
(
options
?:
JSONDriverOptions
)
:
JSONDriver
Parameters
Optional
options
:
JSONDriverOptions
Returns
JSONDriver
Properties
Readonly
format
format
:
boolean
Optional
Readonly
options
options
?:
JSONDriverOptions
Readonly
path
path
:
string
Methods
clear
clear
()
:
void
Returns
void
create
Table
createTable
(
table
:
string
)
:
boolean
Parameters
table
:
string
Returns
boolean
delete
All
Rows
deleteAllRows
(
table
:
string
)
:
boolean
Parameters
table
:
string
Returns
boolean
delete
Row
By
Key
deleteRowByKey
(
table
:
string
,
key
:
string
)
:
number
Parameters
table
:
string
key
:
string
Returns
number
get
All
Rows
getAllRows
(
table
:
string
)
:
any
Parameters
table
:
string
Returns
any
get
Row
By
Key
getRowByKey
(
table
:
string
,
key
:
string
)
:
any
Parameters
table
:
string
key
:
string
Returns
any
init
init
(
table
:
string
)
:
void
Parameters
table
:
string
Returns
void
insert
insert
(
table
:
string
,
array
:
any
[]
)
:
boolean
Parameters
table
:
string
array
:
any
[]
Returns
boolean
read
read
()
:
any
Returns
any
set
Row
By
Key
setRowByKey
(
table
:
string
,
key
:
string
,
value
:
any
)
:
boolean
Parameters
table
:
string
key
:
string
value
:
any
Returns
boolean
tables
tables
()
:
string
[]
Returns
string
[]
write
write
(
data
:
any
)
:
void
Parameters
data
:
any
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
format
options
path
Methods
clear
create
Table
delete
All
Rows
delete
Row
By
Key
get
All
Rows
get
Row
By
Key
init
insert
read
set
Row
By
Key
tables
write
GoodDB
Loading...