@wxn0brp/db-core
Preparing search index...
types/action
ActionsBaseInterface
Interface ActionsBaseInterface
interface
ActionsBaseInterface
{
_inited
:
boolean
;
numberId
:
boolean
;
add
(
query
:
Add
)
:
Promise
<
DataInternal
>
;
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
<
VQueryT
.
ToggleOneResult
<
DataInternal
>
>
;
update
(
query
:
Update
)
:
Promise
<
DataInternal
[]
>
;
updateOne
(
query
:
Update
)
:
Promise
<
DataInternal
>
;
updateOneOrAdd
(
query
:
VQueryT
.
UpdateOneOrAdd
,
)
:
Promise
<
VQueryT
.
UpdateOneOrAddResult
<
DataInternal
>
>
;
}
Implemented by
ActionsBase
Index
Properties
_
inited
number
Id
Methods
add
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
number
Id
numberId
:
boolean
Methods
add
add
(
query
:
Add
)
:
Promise
<
DataInternal
>
Parameters
query
:
Add
Returns
Promise
<
DataInternal
>
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
<
VQueryT
.
ToggleOneResult
<
DataInternal
>
>
Parameters
query
:
ToggleOne
Returns
Promise
<
VQueryT
.
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
<
VQueryT
.
UpdateOneOrAddResult
<
DataInternal
>
>
Parameters
query
:
VQueryT
.
UpdateOneOrAdd
Returns
Promise
<
VQueryT
.
UpdateOneOrAddResult
<
DataInternal
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
_
inited
number
Id
Methods
add
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...