@wxn0brp/db-core
Preparing search index...
db/routedStorage
RoutedStorage
Class RoutedStorage
Hierarchy (
View Summary
)
default
RoutedStorage
Index
Constructors
constructor
Properties
_
inited
default
Backend
number
Id
rules
Methods
_
match
Backends
_
with
All
_
with
First
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
RoutedStorage
(
rules
:
RouteEntry
[]
,
defaultBackend
:
default
|
default
[]
,
)
:
RoutedStorage
Parameters
rules
:
RouteEntry
[]
defaultBackend
:
default
|
default
[]
Returns
RoutedStorage
Properties
_
inited
_inited
:
boolean
= true
default
Backend
defaultBackend
:
default
[]
number
Id
numberId
:
boolean
= false
rules
rules
:
RouteEntry
[]
Methods
_
match
Backends
_matchBackends
(
config
:
VQuery
)
:
default
[]
Parameters
config
:
VQuery
Returns
default
[]
_
with
All
_withAll
<
T
>
(
config
:
VQuery
,
fn
:
(
b
:
default
)
=>
Promise
<
T
>
,
gather
?:
boolean
,
)
:
Promise
<
T
>
Type Parameters
T
Parameters
config
:
VQuery
fn
:
(
b
:
default
)
=>
Promise
<
T
>
gather
:
boolean
= false
Returns
Promise
<
T
>
_
with
First
_withFirst
<
T
>
(
config
:
VQuery
,
fn
:
(
b
:
default
)
=>
Promise
<
T
>
)
:
Promise
<
T
>
Type Parameters
T
Parameters
config
:
VQuery
fn
:
(
b
:
default
)
=>
Promise
<
T
>
Returns
Promise
<
T
>
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
default
Backend
number
Id
rules
Methods
_
match
Backends
_
with
All
_
with
First
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...