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
Class default<SCHEMA>
Type Parameters
SCHEMA
Hierarchy
Host
<
default
.
IEvents
>
default
Index
Constructors
constructor
Properties
event
Methods
all
clear
count
create
Store
delete
dispose
get
get
Database
has
Store
keys
set
staged
Transaction
stores
transaction
upgrade
Constructors
constructor
new default
<
SCHEMA
>
(
schema
:
Schema
<
SCHEMA
>
)
:
default
<
SCHEMA
>
Type Parameters
SCHEMA
Parameters
schema:
Schema
<
SCHEMA
>
Returns
default
<
SCHEMA
>
Properties
Readonly
event
event
:
IEventEmitter
<
default
<
SCHEMA
>
,
default
.
IEvents
>
Methods
all
all
<
KEY
>
(
store
:
KEY
, range
?:
IDBKeyRange
)
:
Promise
<
SCHEMA
[
KEY
]
[]
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
store:
KEY
Optional
range:
IDBKeyRange
Returns
Promise
<
SCHEMA
[
KEY
]
[]
>
all
<
KEY
>
(
store
:
KEY
, key
:
string
|
IDBKeyRange
, index
:
string
)
:
Promise
<
SCHEMA
[
KEY
]
[]
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
store:
KEY
key:
string
|
IDBKeyRange
index:
string
Returns
Promise
<
SCHEMA
[
KEY
]
[]
>
clear
clear
(
store
:
keyof
SCHEMA
)
:
Promise
<
void
>
Parameters
store:
keyof
SCHEMA
Returns
Promise
<
void
>
count
count
(
store
:
keyof
SCHEMA
)
:
Promise
<
number
>
Parameters
store:
keyof
SCHEMA
Returns
Promise
<
number
>
create
Store
create
Store
(
store
:
keyof
SCHEMA
, options
?:
IDBObjectStoreParameters
, init
?:
(
(
store
:
IDBObjectStore
)
=>
any
)
)
:
Promise
<
void
>
Parameters
store:
keyof
SCHEMA
Optional
options:
IDBObjectStoreParameters
Optional
init:
(
(
store
:
IDBObjectStore
)
=>
any
)
(
store
:
IDBObjectStore
)
:
any
Parameters
store:
IDBObjectStore
Returns
any
Returns
Promise
<
void
>
delete
delete
(
store
:
keyof
SCHEMA
, key
:
string
)
:
Promise
<
void
>
Parameters
store:
keyof
SCHEMA
key:
string
Returns
Promise
<
void
>
dispose
dispose
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
get
<
KEY
>
(
store
:
KEY
, key
:
string
, index
?:
string
)
:
Promise
<
undefined
|
SCHEMA
[
KEY
]
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
store:
KEY
key:
string
Optional
index:
string
Returns
Promise
<
undefined
|
SCHEMA
[
KEY
]
>
get
Database
get
Database
(
)
:
Promise
<
IDBDatabase
>
Returns
Promise
<
IDBDatabase
>
has
Store
has
Store
(
...
stores
:
(
keyof
SCHEMA
)
[]
)
:
Promise
<
boolean
>
Parameters
Rest
...
stores:
(
keyof
SCHEMA
)
[]
Returns
Promise
<
boolean
>
keys
keys
(
store
:
keyof
SCHEMA
)
:
Promise
<
string
[]
>
Parameters
store:
keyof
SCHEMA
Returns
Promise
<
string
[]
>
set
set
<
KEY
>
(
store
:
KEY
, key
:
string
, value
:
SCHEMA
[
KEY
]
)
:
Promise
<
void
>
Type Parameters
KEY
extends
string
|
number
|
symbol
Parameters
store:
KEY
key:
string
value:
SCHEMA
[
KEY
]
Returns
Promise
<
void
>
staged
Transaction
staged
Transaction
<
STORES
>
(
over
:
STORES
, mode
?:
IDBTransactionMode
)
:
StagedTransaction
<
Pick
<
SCHEMA
,
STORES
[
number
]
>
,
STORES
>
Type Parameters
STORES
extends
(
keyof
SCHEMA
)
[]
Parameters
over:
STORES
mode:
IDBTransactionMode
= "readwrite"
Returns
StagedTransaction
<
Pick
<
SCHEMA
,
STORES
[
number
]
>
,
STORES
>
stores
stores
(
)
:
Promise
<
DOMStringList
>
Returns
Promise
<
DOMStringList
>
transaction
transaction
<
STORES
,
T
>
(
over
:
STORES
, mode
:
IDBTransactionMode
, transaction
:
Initialiser
<
SCHEMA
,
STORES
,
T
>
)
:
Promise
<
T
>
Type Parameters
STORES
extends
(
keyof
SCHEMA
)
[]
T
Parameters
over:
STORES
mode:
IDBTransactionMode
transaction:
Initialiser
<
SCHEMA
,
STORES
,
T
>
Returns
Promise
<
T
>
transaction
<
STORES
,
T
>
(
over
:
STORES
, transaction
:
Initialiser
<
SCHEMA
,
STORES
,
T
>
)
:
Promise
<
T
>
Type Parameters
STORES
extends
(
keyof
SCHEMA
)
[]
T
Parameters
over:
STORES
transaction:
Initialiser
<
SCHEMA
,
STORES
,
T
>
Returns
Promise
<
T
>
upgrade
upgrade
(
upgrade
:
Upgrade
)
:
Promise
<
void
>
Parameters
upgrade:
Upgrade
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
default
constructor
event
all
clear
count
create
Store
delete
dispose
get
get
Database
has
Store
keys
set
staged
Transaction
stores
transaction
upgrade
Generated using
TypeDoc