Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
ui/util/Database
default
Transaction
Class Transaction<SCHEMA>
Type Parameters
SCHEMA
Hierarchy
Host
<
default
.
Transaction
.
IEvents
>
Transaction
Index
Constructors
constructor
Properties
event
Methods
all
clear
commit
count
delete
get
keys
set
Constructors
constructor
new
Transaction
<
SCHEMA
>
(
transaction
:
IDBTransaction
)
:
Transaction
<
SCHEMA
>
Type Parameters
SCHEMA
Parameters
transaction:
IDBTransaction
Returns
Transaction
<
SCHEMA
>
Properties
Readonly
event
event
:
IEventEmitter
<
Transaction
<
SCHEMA
>
,
default
.
Transaction
.
IEvents
>
Methods
all
all
<
KEY
>
(
name
:
KEY
, range
?:
IDBKeyRange
)
:
Promise
<
SCHEMA
[
KEY
]
[]
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
name:
KEY
Optional
range:
IDBKeyRange
Returns
Promise
<
SCHEMA
[
KEY
]
[]
>
all
<
KEY
>
(
name
:
KEY
, key
:
string
|
IDBKeyRange
, index
:
string
)
:
Promise
<
SCHEMA
[
KEY
]
[]
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
name:
KEY
key:
string
|
IDBKeyRange
index:
string
Returns
Promise
<
SCHEMA
[
KEY
]
[]
>
clear
clear
(
name
:
keyof
SCHEMA
)
:
Promise
<
void
>
Parameters
name:
keyof
SCHEMA
Returns
Promise
<
void
>
commit
commit
(
)
:
Promise
<
undefined
|
[
event
:
Event
]
>
Returns
Promise
<
undefined
|
[
event
:
Event
]
>
count
count
(
name
:
keyof
SCHEMA
)
:
Promise
<
number
>
Parameters
name:
keyof
SCHEMA
Returns
Promise
<
number
>
delete
delete
(
name
:
keyof
SCHEMA
, key
:
string
)
:
Promise
<
void
>
Parameters
name:
keyof
SCHEMA
key:
string
Returns
Promise
<
void
>
get
get
<
KEY
>
(
name
:
KEY
, key
:
string
, index
?:
string
)
:
Promise
<
undefined
|
SCHEMA
[
KEY
]
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
name:
KEY
key:
string
Optional
index:
string
Returns
Promise
<
undefined
|
SCHEMA
[
KEY
]
>
keys
keys
(
name
:
keyof
SCHEMA
)
:
Promise
<
string
[]
>
Parameters
name:
keyof
SCHEMA
Returns
Promise
<
string
[]
>
set
set
<
KEY
>
(
name
:
KEY
, key
:
string
, value
:
SCHEMA
[
KEY
]
)
:
Promise
<
void
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
name:
KEY
key:
string
value:
SCHEMA
[
KEY
]
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
Transaction
constructor
event
all
clear
commit
count
delete
get
keys
set
Generated using
TypeDoc