Preparing search index...
The search index is not available
quick.db
quick.db
QuickDB
Class QuickDB<D>
Type Parameters
D =
any
Hierarchy
QuickDB
Index
Constructors
constructor
Properties
_driver
normal
Keys
options
prepared
table
Name
instance
Accessors
driver
Methods
add
add
Subtract
all
delete
delete
All
get
get
Array
has
init
pop
pull
push
set
shift
starts
With
sub
table
table
Async
unshift
use
Normal
Keys
create
Singleton
Constructors
constructor
new
QuickDB
<
D
>
(
options
?:
IQuickDBOptions
)
:
QuickDB
<
D
>
Type Parameters
D =
any
Parameters
options:
IQuickDBOptions
= {}
Returns
QuickDB
<
D
>
Properties
Private
_driver
_driver
:
IDriver
Private
normal
Keys
normal
Keys
:
boolean
Private
options
options
:
IQuickDBOptions
Private
prepared
prepared
:
Promise
<
unknown
>
Private
table
Name
table
Name
:
string
Static
Private
instance
instance
:
QuickDB
<
any
>
Accessors
driver
get
driver
(
)
:
IDriver
Returns
IDriver
Methods
add
add
(
key
:
string
, value
:
number
)
:
Promise
<
number
>
Parameters
key:
string
value:
number
Returns
Promise
<
number
>
Private
add
Subtract
add
Subtract
(
key
:
string
, value
:
number
, sub
?:
boolean
)
:
Promise
<
number
>
Parameters
key:
string
value:
number
sub:
boolean
= false
Returns
Promise
<
number
>
all
all
<
T
>
(
)
:
Promise
<
{
id
:
string
;
value
:
T
;
}
[]
>
Type Parameters
T =
D
Returns
Promise
<
{
id
:
string
;
value
:
T
;
}
[]
>
delete
delete
(
key
:
string
)
:
Promise
<
number
>
Parameters
key:
string
Returns
Promise
<
number
>
delete
All
delete
All
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
get
<
T
>
(
key
:
string
)
:
Promise
<
null
|
T
>
Type Parameters
T =
D
Parameters
key:
string
Returns
Promise
<
null
|
T
>
Private
get
Array
get
Array
<
T
>
(
key
:
string
)
:
Promise
<
T
[]
>
Type Parameters
T =
D
Parameters
key:
string
Returns
Promise
<
T
[]
>
has
has
(
key
:
string
)
:
Promise
<
boolean
>
Parameters
key:
string
Returns
Promise
<
boolean
>
init
init
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
pop
pop
<
T
>
(
key
:
string
)
:
Promise
<
undefined
|
T
>
Type Parameters
T =
D
Parameters
key:
string
Returns
Promise
<
undefined
|
T
>
pull
pull
<
T
>
(
key
:
string
, value
:
T
|
T
[]
|
(
(
data
:
T
, index
:
string
)
=>
boolean
)
, once
?:
boolean
)
:
Promise
<
T
[]
>
Type Parameters
T =
D
Parameters
key:
string
value:
T
|
T
[]
|
(
(
data
:
T
, index
:
string
)
=>
boolean
)
once:
boolean
= false
Returns
Promise
<
T
[]
>
push
push
<
T
>
(
key
:
string
,
...
values
:
T
[]
)
:
Promise
<
T
[]
>
Type Parameters
T =
D
Parameters
key:
string
Rest
...
values:
T
[]
Returns
Promise
<
T
[]
>
set
set
<
T
>
(
key
:
string
, value
:
T
)
:
Promise
<
T
>
Type Parameters
T =
D
Parameters
key:
string
value:
T
Returns
Promise
<
T
>
shift
shift
<
T
>
(
key
:
string
)
:
Promise
<
undefined
|
T
>
Type Parameters
T =
D
Parameters
key:
string
Returns
Promise
<
undefined
|
T
>
starts
With
starts
With
<
T
>
(
query
:
string
, key
?:
string
)
:
Promise
<
{
id
:
string
;
value
:
T
;
}
[]
>
Type Parameters
T =
D
Parameters
query:
string
key:
string
= ""
Returns
Promise
<
{
id
:
string
;
value
:
T
;
}
[]
>
sub
sub
(
key
:
string
, value
:
number
)
:
Promise
<
number
>
Parameters
key:
string
value:
number
Returns
Promise
<
number
>
table
table
<
T
>
(
table
:
string
)
:
QuickDB
<
T
>
Type Parameters
T =
D
Parameters
table:
string
Returns
QuickDB
<
T
>
table
Async
table
Async
(
table
:
string
)
:
Promise
<
QuickDB
<
any
>
>
Parameters
table:
string
Returns
Promise
<
QuickDB
<
any
>
>
unshift
unshift
<
T
>
(
key
:
string
, value
:
T
|
T
[]
)
:
Promise
<
T
[]
>
Type Parameters
T =
D
Parameters
key:
string
value:
T
|
T
[]
Returns
Promise
<
T
[]
>
use
Normal
Keys
use
Normal
Keys
(
activate
:
boolean
)
:
void
Parameters
activate:
boolean
Returns
void
Static
create
Singleton
create
Singleton
<
T
>
(
options
?:
IQuickDBOptions
)
:
QuickDB
<
T
>
Type Parameters
T
Parameters
options:
IQuickDBOptions
= {}
Returns
QuickDB
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
quick.db
QuickDB
constructor
_driver
normal
Keys
options
prepared
table
Name
instance
driver
add
add
Subtract
all
delete
delete
All
get
get
Array
has
init
pop
pull
push
set
shift
starts
With
sub
table
table
Async
unshift
use
Normal
Keys
create
Singleton
Generated using
TypeDoc