@wxn0brp/db-core
Preparing search index...
db/multiStorage
MultiBackend
Class MultiBackend
Hierarchy (
View Summary
)
default
MultiBackend
Index
Constructors
constructor
Properties
_
inited
backends
number
Id
primary
Backend
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
Constructors
constructor
new
MultiBackend
(
backends
:
default
[]
,
primaryIndex
?:
number
)
:
MultiBackend
Parameters
backends
:
default
[]
primaryIndex
:
number
= 0
Returns
MultiBackend
Properties
_
inited
_inited
:
boolean
= true
backends
backends
:
default
[]
number
Id
numberId
:
boolean
= false
primary
Backend
primaryBackend
:
default
Methods
add
add
(
config
:
VQuery
)
:
Promise
<
Data
>
Parameters
config
:
VQuery
Returns
Promise
<
Data
>
ensure
Collection
ensureCollection
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
find
find
(
config
:
VQuery
)
:
Promise
<
Data
[]
>
Parameters
config
:
VQuery
Returns
Promise
<
Data
[]
>
find
One
findOne
(
config
:
VQuery
)
:
Promise
<
Data
>
Parameters
config
:
VQuery
Returns
Promise
<
Data
>
get
Collections
getCollections
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
init
init
(
...
args
:
any
[]
)
:
Promise
<
void
>
Parameters
...
args
:
any
[]
Returns
Promise
<
void
>
isset
Collection
issetCollection
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
remove
remove
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
remove
Collection
removeCollection
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
remove
One
removeOne
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
toggle
One
toggleOne
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
update
update
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
update
One
updateOne
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
update
One
Or
Add
updateOneOrAdd
(
config
:
VQuery
)
:
Promise
<
boolean
>
Parameters
config
:
VQuery
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
inited
backends
number
Id
primary
Backend
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...