Preparing search index...
The search index is not available
debe-workspace
debe-workspace
adapter
DebeBackend
Class DebeBackend<TBase>
Type Parameters
TBase
=
IItem
Hierarchy
DebeDispatcher
DebeBackend
Index
Constructors
constructor
Properties
adapter
chunk
Mode
chunks
collections
db
middlewares
options
Methods
all
close
collection
count
get
initialize
insert
listen
listener
query
remove
run
transform
Item
In
transform
Item
Out
Constructors
constructor
new
Debe
Backend
<
TBase
>
(
adapter
,
collections
,
options
?
)
:
DebeBackend
<
TBase
>
Type Parameters
TBase
=
IItem
Parameters
adapter
:
DebeAdapter
<
IItem
>
collections
:
ICollections
|
IObject
<
ICollection
>
|
ICollectionInput
[]
options
:
IBackendOptions
= {}
Returns
DebeBackend
<
TBase
>
Properties
adapter
adapter
:
DebeAdapter
<
IItem
>
chunk
Mode
chunk
Mode
:
string
= 'parallel'
chunks
chunks
:
number
= 1000000
collections
collections
:
IObject
<
ICollection
>
= {}
db
db
:
Debe
<
IItem
,
DebeDispatcher
<
IItem
>
>
middlewares
middlewares
:
IMiddleware
[]
= []
options
options
:
IBackendOptions
Methods
all
all
<
T
>
(
collection
,
value
)
:
Promise
<
(
T
&
IGetItem
)
[]
>
Type Parameters
T
=
TBase
Parameters
collection
:
string
value
:
IQuery
Returns
Promise
<
(
T
&
IGetItem
)
[]
>
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Private
collection
collection
(
name
)
:
ICollection
Parameters
name
:
string
Returns
ICollection
count
count
(
collection
,
value
)
:
Promise
<
number
>
Parameters
collection
:
string
value
:
IQuery
Returns
Promise
<
number
>
get
get
<
T
>
(
collection
,
value
)
:
Promise
<
T
&
IGetItem
>
Type Parameters
T
=
TBase
Parameters
collection
:
string
value
:
string
Returns
Promise
<
T
&
IGetItem
>
initialize
initialize
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
insert
insert
<
T
>
(
collection
,
value
,
options
)
:
Promise
<
(
T
&
IGetItem
)
[]
>
Type Parameters
T
=
TBase
Parameters
collection
:
string
value
:
(
T
&
IInsertItem
)
[]
options
:
IInsert
Returns
Promise
<
(
T
&
IGetItem
)
[]
>
listen
listen
<
T
>
(
action
,
callback
,
options
)
:
(
(
)
=>
void
)
Type Parameters
T
Parameters
action
:
string
callback
:
(
(
error
,
value
)
=>
void
)
(
error
,
value
)
:
void
Parameters
error
:
any
value
:
T
Returns
void
options
:
IListenerOptions
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
listener
listener
<
T
>
(
type
,
callback
,
options
)
:
(
(
)
=>
void
)
Type Parameters
T
=
TBase
Parameters
type
:
string
callback
:
IObserverCallback
<
T
>
options
:
IListenerOptions
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
Private
query
query
(
collection
,
value
)
:
IQuery
Parameters
collection
:
ICollection
value
:
IQuery
Returns
IQuery
remove
remove
(
collection
,
value
)
:
Promise
<
string
[]
>
Parameters
collection
:
string
value
:
string
[]
Returns
Promise
<
string
[]
>
run
run
(
action
,
collection
,
payload
?
,
options
?
)
:
any
Parameters
action
:
string
collection
:
string
Optional
payload
:
any
Optional
options
:
any
Returns
any
transform
Item
In
transform
Item
In
<
T
>
(
collection
,
item
,
options
)
:
T
Type Parameters
T
=
TBase
Parameters
collection
:
ICollection
item
:
T
options
:
IInsert
Returns
T
transform
Item
Out
transform
Item
Out
<
T
>
(
collection
,
item
)
:
T
Type Parameters
T
=
TBase
Parameters
collection
:
ICollection
item
:
T
Returns
T
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
adapter
chunk
Mode
chunks
collections
db
middlewares
options
all
close
collection
count
get
initialize
insert
listen
listener
query
remove
run
transform
Item
In
transform
Item
Out
debe-
workspace
adapter
Debe
Adapter
Debe
Backend
Emitter
Filter
Reducer
IAdapter
Options
IAdapter
Options
Input
IFilter
Reducer
IListener
Options
IMiddleware
IObject
IObserver
Callback
IUnlisten
add
Middleware
add
Plugin
create
Memory
Filter
generate
has
Middleware
has
Plugin
is
Equal
objectify
pluck
query
To
Array
set
Id
Generator
sort
Array
better-
sqlite3
Better
Sqlite3
Adapter
Better
Sqlite3
Debe
core
Debe
Debe
Dispatcher
ICollection
ICollection
Input
ICollections
IDebe
Use
IGet
Item
IInsert
IInsert
Input
IInsert
Item
IItem
IListener
Options
ILog
IObject
IQuery
IQuery
Input
ILog
Func
IObserver
Callback
IUnlisten
action
Types
field
Type
listen
Types
field
Types
log
types
add
To
Query
and
chunk
Parallel
chunk
Sequencial
chunk
Work
create
Log
ensure
Array
ensure
Collection
ensure
Query
is
In
is
Null
overwrite
Log
delta
IMerge
Plugin
Options
IChange
IChanges
IDelta
delta
Plugin
merge
http
Http
Adapter
Http
Debe
IHandler
Args
IHttp
Debe
Handler
allowed
Methods
batch
Timeout
refetch
Interval
create
Default
Handler
http-
server
Http
Server
idb
IDBAdapter
IDBDebe
memory
Memory
Adapter
Memory
Debe
postgresql
PostgreSQLAdapter
PostgreSQLDebe
react
STOREKEY
TIMEOUT
context
sync
Context
Debe
Provider
await
Loaded
create
Use
get
Unloaded
Keys
make
Store
middleware
reducer
set
Request
Timeout
set
Store
Key
use
All
use
All
Once
use
Collection
use
Connection
State
use
Get
use
Get
Once
react-
server
extract
Cache
socket
AGClient
Socket
Auth
State
Change
Data
Auth
Status
Authenticate
Data
Auto
Reconnect
Options
Client
Options
Close
Data
Connect
Data
Deauthenticate
Data
Kick
Out
Data
Subscribe
Data
Subscribe
Fail
Data
Subscribe
Options
Subscribe
State
Change
Data
Unsubscribe
Data
Any
Function
Auth
States
Call
Id
Generator
Protocol
Versions
States
AGClient
Socket
Socket
Adapter
Socket
Debe
IConnection
State
allowed
Methods
create
socket-
server
AGServer
AGServer
Options
Auth
State
Change
Data
Authentication
Data
Bad
Socket
Auth
Token
Data
Closure
Data
Codec
Engine
Connection
Abort
Data
Connection
Data
Deauthentication
Data
Disconnection
Data
Subscription
Data
Unsubscription
Data
Auth
Engine
Type
Middlewares
handshake
Middleware
Function
inbound
Middleware
Function
inbound
Raw
Middleware
Function
outbound
Middleware
Function
AGServer
Socket
Server
IAGServer
Socket
IExchange
IMiddleware
Action
IMiddleware
Action
Type
IMiddleware
Stream
IMiddleware
Type
attach
sql
SQLCore
SQLJson
Core
sync
Sync
ICount
Initial
Changes
IInitial
Fetch
Changes
IListen
To
Changes
ISync
ISync
Adapter
ISync
Item
IAddress
ISend
Changes
ISend
Delta
CHANNELS
batch
Size
max
Retries
max
Timeout
syncstate
Table
batch
Transfer
default
Interval
get
Bigger
get
Last
Item
Rev
hash
Code
wait
For
sync-
server
Sync
Server
Generated using
TypeDoc