Search
Preparing search index...
The search index is not available
@iov/multichain Documentation
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
LevelUp
Interface LevelUp<DB, Iterator>
Type parameters
DB
Iterator
Hierarchy
EventEmitter
LevelUp
Index
Properties
del
get
put
default
Max
Listeners
Methods
add
Listener
batch
close
create
Key
Stream
create
Read
Stream
create
Value
Stream
emit
event
Names
get
Max
Listeners
is
Closed
is
Open
iterator
listener
Count
listeners
off
on
once
open
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
set
Max
Listeners
listener
Count
Properties
del
del
:
InferDBDel
<
DB
>
get
get
:
InferDBGet
<
DB
>
put
put
:
InferDBPut
<
DB
>
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
batch
batch
(
array
:
AbstractBatch
[]
, options
?:
any
)
:
Promise
<
void
>
batch
(
array
:
AbstractBatch
[]
, options
:
any
, callback
:
function
)
:
void
batch
(
array
:
AbstractBatch
[]
, callback
:
function
)
:
void
batch
(
)
:
LevelUpChain
Parameters
array:
AbstractBatch
[]
Optional
options:
any
Returns
Promise
<
void
>
Parameters
array:
AbstractBatch
[]
options:
any
callback:
function
(
err
?:
any
)
:
any
Parameters
Optional
err:
any
Returns
any
Returns
void
Parameters
array:
AbstractBatch
[]
callback:
function
(
err
?:
any
)
:
any
Parameters
Optional
err:
any
Returns
any
Returns
void
Returns
LevelUpChain
close
close
(
)
:
Promise
<
void
>
close
(
callback
?:
ErrorCallback
)
:
void
Returns
Promise
<
void
>
Parameters
Optional
callback:
ErrorCallback
Returns
void
create
Key
Stream
create
Key
Stream
(
options
?:
AbstractIteratorOptions
)
:
ReadableStream
Parameters
Optional
options:
AbstractIteratorOptions
Returns
ReadableStream
create
Read
Stream
create
Read
Stream
(
options
?:
AbstractIteratorOptions
)
:
ReadableStream
Parameters
Optional
options:
AbstractIteratorOptions
Returns
ReadableStream
create
Value
Stream
create
Value
Stream
(
options
?:
AbstractIteratorOptions
)
:
ReadableStream
Parameters
Optional
options:
AbstractIteratorOptions
Returns
ReadableStream
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
is
Closed
is
Closed
(
)
:
boolean
Returns
boolean
is
Open
is
Open
(
)
:
boolean
Returns
boolean
iterator
iterator
(
options
?:
AbstractIteratorOptions
)
:
Iterator
Parameters
Optional
options:
AbstractIteratorOptions
Returns
Iterator
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
"put"
, cb
:
function
)
:
this
on
(
event
:
"del"
, cb
:
function
)
:
this
on
(
event
:
"batch"
, cb
:
function
)
:
this
on
(
event
:
"open"
|
"ready"
|
"closed"
|
"opening"
|
"closing"
, cb
:
function
)
:
this
Parameters
event:
"put"
cb:
function
(
key
:
any
, value
:
any
)
:
void
Parameters
key:
any
value:
any
Returns
void
Returns
this
Parameters
event:
"del"
cb:
function
(
key
:
any
)
:
void
Parameters
key:
any
Returns
void
Returns
this
Parameters
event:
"batch"
cb:
function
(
ary
:
any
[]
)
:
void
Parameters
ary:
any
[]
Returns
void
Returns
this
Parameters
event:
"open"
|
"ready"
|
"closed"
|
"opening"
|
"closing"
cb:
function
(
)
:
void
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
open
open
(
)
:
Promise
<
void
>
open
(
callback
?:
ErrorCallback
)
:
void
Returns
Promise
<
void
>
Parameters
Optional
callback:
ErrorCallback
Returns
void
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
Level
Up
del
get
put
default
Max
Listeners
add
Listener
batch
close
create
Key
Stream
create
Read
Stream
create
Value
Stream
emit
event
Names
get
Max
Listeners
is
Closed
is
Open
iterator
listener
Count
listeners
off
on
once
open
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
set
Max
Listeners
listener
Count
Generated using
TypeDoc
since v4.0.0