@wxn0brp/db-core
Preparing search index...
base/actions
ActionsBase
Class ActionsBase
Abstract
Hierarchy (
View Summary
)
ActionsBase
CustomActionsBase
MultiBackend
RoutedStorage
Implements
ActionsBaseInterface
Index
Constructors
constructor
Properties
_
inited
adapter
Opts
smart
Executor
Accessors
id
Key
number
Id
Methods
add
close
ensure
Collection
find
find
One
get
Collections
init
isset
Collection
remove
remove
Collection
remove
One
toggle
One
update
update
One
update
One
Or
Add
Constructors
constructor
new
ActionsBase
()
:
ActionsBase
Returns
ActionsBase
Properties
_
inited
_inited
:
boolean
= true
adapter
Opts
adapterOpts
:
AdapterOpts
= ...
smart
Executor
smartExecutor
:
boolean
= false
Accessors
id
Key
get
idKey
()
:
string
Returns
string
set
idKey
(
value
:
string
)
:
void
Parameters
value
:
string
Returns
void
number
Id
get
numberId
()
:
boolean
Returns
boolean
set
numberId
(
value
:
boolean
)
:
void
Parameters
value
:
boolean
Returns
void
Methods
Abstract
add
add
(
config
:
Add
)
:
Promise
<
DataInternal
>
Parameters
config
:
Add
Returns
Promise
<
DataInternal
>
close
close
(
...
args
:
any
[]
)
:
Promise
<
void
>
Parameters
...
args
:
any
[]
Returns
Promise
<
void
>
Abstract
ensure
Collection
ensureCollection
(
collection
:
string
)
:
Promise
<
boolean
>
Parameters
collection
:
string
Returns
Promise
<
boolean
>
Abstract
find
find
(
config
:
Find
)
:
Promise
<
DataInternal
[]
>
Parameters
config
:
Find
Returns
Promise
<
DataInternal
[]
>
Abstract
find
One
findOne
(
config
:
FindOne
)
:
Promise
<
DataInternal
>
Parameters
config
:
FindOne
Returns
Promise
<
DataInternal
>
Abstract
get
Collections
getCollections
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
init
init
(
...
args
:
any
[]
)
:
Promise
<
void
>
Parameters
...
args
:
any
[]
Returns
Promise
<
void
>
Abstract
isset
Collection
issetCollection
(
collection
:
string
)
:
Promise
<
boolean
>
Parameters
collection
:
string
Returns
Promise
<
boolean
>
Abstract
remove
remove
(
config
:
Remove
)
:
Promise
<
DataInternal
[]
>
Parameters
config
:
Remove
Returns
Promise
<
DataInternal
[]
>
Abstract
remove
Collection
removeCollection
(
collection
:
string
)
:
Promise
<
boolean
>
Parameters
collection
:
string
Returns
Promise
<
boolean
>
Abstract
remove
One
removeOne
(
config
:
Remove
)
:
Promise
<
DataInternal
>
Parameters
config
:
Remove
Returns
Promise
<
DataInternal
>
toggle
One
toggleOne
(
config
:
ToggleOne
)
:
Promise
<
ToggleOneResult
<
DataInternal
>
>
Parameters
config
:
ToggleOne
Returns
Promise
<
ToggleOneResult
<
DataInternal
>
>
Abstract
update
update
(
config
:
Update
)
:
Promise
<
DataInternal
[]
>
Parameters
config
:
Update
Returns
Promise
<
DataInternal
[]
>
Abstract
update
One
updateOne
(
config
:
Update
)
:
Promise
<
DataInternal
>
Parameters
config
:
Update
Returns
Promise
<
DataInternal
>
update
One
Or
Add
updateOneOrAdd
(
config
:
VQueryT
.
UpdateOneOrAdd
,
)
:
Promise
<
UpdateOneOrAddResult
<
DataInternal
>
>
Parameters
config
:
VQueryT
.
UpdateOneOrAdd
Returns
Promise
<
UpdateOneOrAddResult
<
DataInternal
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
inited
adapter
Opts
smart
Executor
Accessors
id
Key
number
Id
Methods
add
close
ensure
Collection
find
find
One
get
Collections
init
isset
Collection
remove
remove
Collection
remove
One
toggle
One
update
update
One
update
One
Or
Add
@wxn0brp/db-core
Loading...