@wxn0brp/db-core
Preparing search index...
db/multiStorage
MultiBackend
Class MultiBackend
Hierarchy (
View Summary
)
ActionsBase
MultiBackend
Index
Constructors
constructor
Properties
_
inited
adapter
Opts
backends
primary
Backend
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
MultiBackend
(
backends
:
ActionsBase
[]
,
primaryIndex
?:
number
)
:
MultiBackend
Parameters
backends
:
ActionsBase
[]
primaryIndex
:
number
= 0
Returns
MultiBackend
Properties
_
inited
_inited
:
boolean
= true
adapter
Opts
adapterOpts
:
AdapterOpts
= ...
backends
backends
:
ActionsBase
[]
primary
Backend
primaryBackend
:
ActionsBase
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
add
add
(
config
:
Add
)
:
Promise
<
DataInternal
>
Parameters
config
:
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
(
config
:
Find
)
:
Promise
<
DataInternal
[]
>
Parameters
config
:
Find
Returns
Promise
<
DataInternal
[]
>
find
One
findOne
(
config
:
FindOne
)
:
Promise
<
DataInternal
>
Parameters
config
:
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
(
config
:
Remove
)
:
Promise
<
DataInternal
[]
>
Parameters
config
:
Remove
Returns
Promise
<
DataInternal
[]
>
remove
Collection
removeCollection
(
collection
:
string
)
:
Promise
<
boolean
>
Parameters
collection
:
string
Returns
Promise
<
boolean
>
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
>
>
update
update
(
config
:
Update
)
:
Promise
<
DataInternal
[]
>
Parameters
config
:
Update
Returns
Promise
<
DataInternal
[]
>
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
backends
primary
Backend
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...