redux-database
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
DB
MutableDB
Query
Subscription
Table
constructor
context
context
Changes
data
key
all
changes
deleted
Ids
first
ids
last
length
name
new
Ids
changes
For
commit
delete
find
insert
reset
revert
truncate
update
upsert
where
Data
Table
DBAction
empty
Table
guid
reducer
Type parameters
T
:
Row
Hierarchy
Table
Index
Constructors
constructor
Properties
context
context
Changes
data
key
Accessors
all
changes
deleted
Ids
first
ids
last
length
name
new
Ids
Methods
changes
For
commit
delete
find
insert
reset
revert
truncate
update
upsert
where
Constructors
constructor
new
Table
(
data
:
DataTable
<
T
>
, key
:
string
, options
?:
{
context
?:
undefined
|
string
;
contextChanges
?:
Array
<
ContextChanges
<
T
>
>
}
)
:
Table
Parameters
data:
DataTable
<
T
>
key:
string
Default value
options:
{
context
?:
undefined
|
string
;
contextChanges
?:
Array
<
ContextChanges
<
T
>
>
}
= {}
Optional
context
?:
undefined
|
string
Optional
context
Changes
?:
Array
<
ContextChanges
<
T
>
>
Returns
Table
Properties
Private
Optional
context
context
:
undefined
|
string
Private
Optional
context
Changes
context
Changes
:
Array
<
ContextChanges
<
T
>
>
Private
data
data
:
DataTable
<
T
>
Private
key
key
:
string
Accessors
all
get
all
(
)
:
T
[]
Returns
T
[]
changes
get
changes
(
)
:
Array
<
ObjectChanges
<
T
>
>
Returns
Array
<
ObjectChanges
<
T
>
>
Private
deleted
Ids
get
deletedIds
(
)
:
string
[]
Returns
string
[]
first
get
first
(
)
:
T
|
undefined
Returns
T
|
undefined
ids
get
ids
(
)
:
string
[]
Returns
string
[]
last
get
last
(
)
:
T
|
undefined
Returns
T
|
undefined
length
get
length
(
)
:
number
Returns
number
name
get
name
(
)
:
string
Returns
string
Private
new
Ids
get
newIds
(
)
:
string
[]
Returns
string
[]
Methods
changes
For
changes
For
(
id
:
string
)
:
ObjectChanges
<
T
>
|
undefined
Parameters
id:
string
Returns
ObjectChanges
<
T
>
|
undefined
commit
commit
(
ids
?:
RowIdentififying
)
:
CommitContextAction
Parameters
Optional
ids:
RowIdentififying
Returns
CommitContextAction
delete
delete
(
id
:
RowIdentififying
)
:
DeleteAction
Parameters
id:
RowIdentififying
Returns
DeleteAction
find
find
(
id
:
string
)
:
T
|
undefined
Parameters
id:
string
Returns
T
|
undefined
insert
insert
(
records
:
RowInsertionList
<
T
>
)
:
InsertAction
Parameters
records:
RowInsertionList
<
T
>
Returns
InsertAction
reset
reset
(
)
:
ResetAction
Returns
ResetAction
revert
revert
(
ids
?:
RowIdentififying
)
:
RevertContextAction
Parameters
Optional
ids:
RowIdentififying
Returns
RevertContextAction
truncate
truncate
(
)
:
TruncateAction
Returns
TruncateAction
update
update
(
id
:
RowIdentififying
, values
:
Partial
<
T
>
)
:
UpdateAction
Parameters
id:
RowIdentififying
values:
Partial
<
T
>
Returns
UpdateAction
upsert
upsert
(
records
:
RowInsertionList
<
T
>
)
:
UpsertAction
Parameters
records:
RowInsertionList
<
T
>
Returns
UpsertAction
where
where
(
query
:
(
(
value
:
T
)
=>
boolean
)
|
Partial
<
T
>
)
:
T
[]
Parameters
query:
(
(
value
:
T
)
=>
boolean
)
|
Partial
<
T
>
Returns
T
[]
Generated using
TypeDoc