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