@wxn0brp/db-core
Preparing search index...
types/action
ActionsBaseInterface
Interface ActionsBaseInterface
interface
ActionsBaseInterface
{
_inited
:
boolean
;
adapterOpts
:
AdapterOpts
;
smartExecutor
:
boolean
;
add
(
query
:
Add
)
:
Promise
<
DataInternal
>
;
close
(
...
args
:
any
[]
)
:
Promise
<
void
>
;
ensureCollection
(
collection
:
string
)
:
Promise
<
boolean
>
;
find
(
query
:
Find
)
:
Promise
<
DataInternal
[]
>
;
findOne
(
query
:
FindOne
)
:
Promise
<
DataInternal
>
;
getCollections
()
:
Promise
<
string
[]
>
;
init
(
...
args
:
any
[]
)
:
Promise
<
void
>
;
issetCollection
(
collection
:
string
)
:
Promise
<
boolean
>
;
remove
(
query
:
Remove
)
:
Promise
<
DataInternal
[]
>
;
removeCollection
(
collection
:
string
)
:
Promise
<
boolean
>
;
removeOne
(
query
:
Remove
)
:
Promise
<
DataInternal
>
;
toggleOne
(
query
:
ToggleOne
)
:
Promise
<
ToggleOneResult
<
DataInternal
>
>
;
update
(
query
:
Update
)
:
Promise
<
DataInternal
[]
>
;
updateOne
(
query
:
Update
)
:
Promise
<
DataInternal
>
;
updateOneOrAdd
(
query
:
VQueryT
.
UpdateOneOrAdd
,
)
:
Promise
<
UpdateOneOrAddResult
<
DataInternal
>
>
;
}
Implemented by
ActionsBase
Index
Properties
_
inited
adapter
Opts
smart
Executor
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
Properties
_
inited
_inited
:
boolean
adapter
Opts
adapterOpts
:
AdapterOpts
smart
Executor
smartExecutor
:
boolean
Methods
add
add
(
query
:
Add
)
:
Promise
<
DataInternal
>
Parameters
query
:
Add
Returns
Promise
<
DataInternal
>
close
close
(
...
args
:
any
[]
)
:
Promise
<
void
>
Parameters
...
args
:
any
[]
Returns
Promise
<
void
>
ensure
Collection
ensureCollection
(
collection
:
string
)
:
Promise
<
boolean
>
Parameters
collection
:
string
Returns
Promise
<
boolean
>
find
find
(
query
:
Find
)
:
Promise
<
DataInternal
[]
>
Parameters
query
:
Find
Returns
Promise
<
DataInternal
[]
>
find
One
findOne
(
query
:
FindOne
)
:
Promise
<
DataInternal
>
Parameters
query
:
FindOne
Returns
Promise
<
DataInternal
>
get
Collections
getCollections
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
init
init
(
...
args
:
any
[]
)
:
Promise
<
void
>
Parameters
...
args
:
any
[]
Returns
Promise
<
void
>
isset
Collection
issetCollection
(
collection
:
string
)
:
Promise
<
boolean
>
Parameters
collection
:
string
Returns
Promise
<
boolean
>
remove
remove
(
query
:
Remove
)
:
Promise
<
DataInternal
[]
>
Parameters
query
:
Remove
Returns
Promise
<
DataInternal
[]
>
remove
Collection
removeCollection
(
collection
:
string
)
:
Promise
<
boolean
>
Parameters
collection
:
string
Returns
Promise
<
boolean
>
remove
One
removeOne
(
query
:
Remove
)
:
Promise
<
DataInternal
>
Parameters
query
:
Remove
Returns
Promise
<
DataInternal
>
toggle
One
toggleOne
(
query
:
ToggleOne
)
:
Promise
<
ToggleOneResult
<
DataInternal
>
>
Parameters
query
:
ToggleOne
Returns
Promise
<
ToggleOneResult
<
DataInternal
>
>
update
update
(
query
:
Update
)
:
Promise
<
DataInternal
[]
>
Parameters
query
:
Update
Returns
Promise
<
DataInternal
[]
>
update
One
updateOne
(
query
:
Update
)
:
Promise
<
DataInternal
>
Parameters
query
:
Update
Returns
Promise
<
DataInternal
>
update
One
Or
Add
updateOneOrAdd
(
query
:
VQueryT
.
UpdateOneOrAdd
,
)
:
Promise
<
UpdateOneOrAddResult
<
DataInternal
>
>
Parameters
query
:
VQueryT
.
UpdateOneOrAdd
Returns
Promise
<
UpdateOneOrAddResult
<
DataInternal
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
_
inited
adapter
Opts
smart
Executor
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...