Search
Preparing search index...
The search index is not available
@web3-systems/multichain-database
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@web3-systems/multichain-database
MultiChainIndexedDBClient
Class MultiChainIndexedDBClient
Hierarchy
MultiChainIndexedDBClient
Index
Constructors
constructor
Properties
chain
Id
Default
databases
Methods
add
bulk
Add
bulk
Add
With
Keys
bulk
Delete
bulk
Get
bulk
Put
create
Database
delete
each
filter
get
get
Database
get
Table
list
Tables
put
set
Chain
Id
Default
to
Array
to
Collection
where
Constructors
constructor
new
Multi
Chain
IndexedDBClient
(
chainIdDefault
?:
number
)
:
MultiChainIndexedDBClient
Parameters
Optional
chainIdDefault:
number
Returns
MultiChainIndexedDBClient
Properties
chain
Id
Default
chain
Id
Default
:
number
= 1
databases
databases
:
{}
= {}
Type declaration
[
key:
string
]:
MultiChainBrowserIndexedDB
Methods
add
add
(
table
:
string
, documents
:
any
, key
:
any
, chainId
?:
number
)
:
PromiseExtended
<
IndexableType
>
Parameters
table:
string
documents:
any
key:
any
Optional
chainId:
number
Returns
PromiseExtended
<
IndexableType
>
bulk
Add
bulk
Add
(
table
:
string
, documents
:
any
, chainId
?:
number
)
:
PromiseExtended
<
IndexableType
>
Parameters
table:
string
documents:
any
Optional
chainId:
number
Returns
PromiseExtended
<
IndexableType
>
bulk
Add
With
Keys
bulk
Add
With
Keys
(
table
:
string
, documents
:
any
, keys
:
any
, chainId
?:
number
)
:
PromiseExtended
<
IndexableType
|
IndexableType
[]
>
Parameters
table:
string
documents:
any
keys:
any
Optional
chainId:
number
Returns
PromiseExtended
<
IndexableType
|
IndexableType
[]
>
bulk
Delete
bulk
Delete
(
table
:
string
, keys
:
any
, chainId
?:
number
)
:
PromiseExtended
<
void
>
Parameters
table:
string
keys:
any
Optional
chainId:
number
Returns
PromiseExtended
<
void
>
bulk
Get
bulk
Get
(
table
:
string
, keys
:
any
[]
, chainId
?:
number
)
:
PromiseExtended
<
any
[]
>
Parameters
table:
string
keys:
any
[]
Optional
chainId:
number
Returns
PromiseExtended
<
any
[]
>
bulk
Put
bulk
Put
(
table
:
string
, documents
:
any
, key
:
any
, chainId
?:
number
)
:
PromiseExtended
<
IndexableType
|
IndexableType
[]
>
Parameters
table:
string
documents:
any
key:
any
Optional
chainId:
number
Returns
PromiseExtended
<
IndexableType
|
IndexableType
[]
>
create
Database
create
Database
(
chainId
:
number
, onReady
?:
Function
)
:
MultiChainBrowserIndexedDB
Parameters
chainId:
number
Optional
onReady:
Function
Returns
MultiChainBrowserIndexedDB
delete
delete
(
table
:
string
, key
:
any
, chainId
?:
number
)
:
PromiseExtended
<
void
>
Parameters
table:
string
key:
any
Optional
chainId:
number
Returns
PromiseExtended
<
void
>
each
each
(
table
:
string
, callback
:
any
, chainId
?:
number
)
:
PromiseExtended
<
void
>
Parameters
table:
string
callback:
any
Optional
chainId:
number
Returns
PromiseExtended
<
void
>
filter
filter
(
table
:
string
, filterFunction
:
any
, chainId
?:
number
)
:
PromiseExtended
<
any
[]
>
Parameters
table:
string
filterFunction:
any
Optional
chainId:
number
Returns
PromiseExtended
<
any
[]
>
get
get
(
table
:
string
, idOrFilterObject
:
any
, chainId
?:
number
)
:
PromiseExtended
<
any
>
Parameters
table:
string
idOrFilterObject:
any
Optional
chainId:
number
Returns
PromiseExtended
<
any
>
get
Database
get
Database
(
chainId
?:
number
)
:
MultiChainBrowserIndexedDB
Parameters
Optional
chainId:
number
Returns
MultiChainBrowserIndexedDB
get
Table
get
Table
(
table
:
string
, chainId
?:
number
)
:
any
Parameters
table:
string
Optional
chainId:
number
Returns
any
list
Tables
list
Tables
(
chainId
?:
number
)
:
any
Parameters
Optional
chainId:
number
Returns
any
put
put
(
table
:
string
, document
:
any
, chainId
?:
number
)
:
PromiseExtended
<
IndexableType
>
Parameters
table:
string
document:
any
Optional
chainId:
number
Returns
PromiseExtended
<
IndexableType
>
set
Chain
Id
Default
set
Chain
Id
Default
(
chainId
:
number
)
:
void
Parameters
chainId:
number
Returns
void
to
Array
to
Array
(
table
:
string
, chainId
?:
number
)
:
PromiseExtended
<
any
[]
>
Parameters
table:
string
Optional
chainId:
number
Returns
PromiseExtended
<
any
[]
>
to
Collection
to
Collection
(
table
:
string
, chainId
?:
number
)
:
Collection
<
any
,
IndexableType
>
Parameters
table:
string
Optional
chainId:
number
Returns
Collection
<
any
,
IndexableType
>
where
where
(
table
:
string
, filter
:
any
, clause
:
[
string
,
any
[]
]
, chainId
?:
number
)
:
any
Parameters
table:
string
filter:
any
clause:
[
string
,
any
[]
]
Optional
chainId:
number
Returns
any
Exports
Multi
Chain
IndexedDBClient
constructor
chain
Id
Default
databases
add
bulk
Add
bulk
Add
With
Keys
bulk
Delete
bulk
Get
bulk
Put
create
Database
delete
each
filter
get
get
Database
get
Table
list
Tables
put
set
Chain
Id
Default
to
Array
to
Collection
where
Generated using
TypeDoc