Search
Preparing search index...
The search index is not available
proxy-use
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
proxy-use
utils/dbUtility
DbUtility
Class DbUtility
Hierarchy
DbUtility
Index
Constructors
constructor
Properties
database
Name
db
db
Store
db
Transaction
version
Methods
add
add
All
create
Store
get
open
search
By
Cursor
search
By
Key
Constructors
constructor
new
Db
Utility
(
databaseName
:
string
, version
:
number
)
:
DbUtility
Parameters
databaseName:
string
version:
number
Returns
DbUtility
Properties
Readonly
database
Name
database
Name
:
string
db
db
:
null
|
IDBDatabase
db
Store
db
Store
:
string
db
Transaction
db
Transaction
:
null
|
IDBTransaction
Readonly
version
version
:
number
Methods
add
add
(
data
:
any
, store
?:
IDBObjectStore
)
:
Promise
<
unknown
>
添加数据
Parameters
data:
any
Optional
store:
IDBObjectStore
Returns
Promise
<
unknown
>
add
All
add
All
(
data
:
any
[]
)
:
Promise
<
DbUtility
>
批量添加数据
Parameters
data:
any
[]
Returns
Promise
<
DbUtility
>
create
Store
create
Store
(
store
:
string
, __namedParameters
?:
CreateStoreOptions
)
:
Promise
<
DbUtility
>
打开store,没有则创建
Parameters
store:
string
__namedParameters:
CreateStoreOptions
= {}
Returns
Promise
<
DbUtility
>
get
get
(
__namedParameters
:
GetParameters
)
:
never
[]
|
Promise
<
unknown
>
获取全部,传入filter使用游标查找,key根据主键或索引搜索
Parameters
__namedParameters:
GetParameters
Returns
never
[]
|
Promise
<
unknown
>
open
open
(
deleteWhenUpgradeneed
:
string
[]
)
:
Promise
<
DbUtility
>
打开数据库
Parameters
deleteWhenUpgradeneed:
string
[]
Returns
Promise
<
DbUtility
>
search
By
Cursor
search
By
Cursor
(
store
:
IDBObjectStore
|
IDBIndex
, filter
:
CursorFilter
, multi
:
boolean
)
:
Promise
<
unknown
>
Parameters
store:
IDBObjectStore
|
IDBIndex
filter:
CursorFilter
multi:
boolean
Returns
Promise
<
unknown
>
search
By
Key
search
By
Key
(
store
:
IDBObjectStore
|
IDBIndex
, key
:
IDBValidKey
|
IDBKeyRange
, multi
:
boolean
)
:
Promise
<
unknown
>
Parameters
store:
IDBObjectStore
|
IDBIndex
key:
IDBValidKey
|
IDBKeyRange
multi:
boolean
Returns
Promise
<
unknown
>
Modules
config/constants
service
service/access
service/account
service/aibot
service/cms
service/common
service/form
service/lead
service/learning
service/log
service/lottery
service/member
service/poster
service/request
service/resource
service/staff
service/state
service/static
service/ticket
service/webinar
service/wechat
service/wx
Sdk
utils/common
utils/db
Utility
utils/format
utils/preflight
utils/session
Storage
utils/storage
utils/user
Agent
utils/watermark
Db
Utility
constructor
database
Name
db
db
Store
db
Transaction
version
add
add
All
create
Store
get
open
search
By
Cursor
search
By
Key
Generated using
TypeDoc
添加数据