Interfaces
micro-db interfaces
MicroDBSerializer
(key: string, value: any) => string
(data: MicroDBData) => string
(raw: string) => MicroDBData
key: json-string
key:{...}
MicroDBWatchable
Provides an interface for subscribing and watching for data changes in a class.
Generic Types:
<Value>: type of the data, that is going to be watched Generic type
<CallbackArguments>: type of extra arguments provided to the callback
Implemented by: MicroDBJanitor
Watch for all upcoming value changes while the subscription is active.
SubscriptionCallback<Value, CallbackArguments>
Partial<SubscriptionOptions<Value>>
Returns: Subscription
Watch for the next value change.
SubscriptionCallback<Value, CallbackArguments>
Partial<SubscriptionOptions<Value>>
Returns: Subscription
MicroDBPropertyWatchable
Extends MicroDBWatchable with methods for subscribing and watching for changes of individual properties of an object.
Generic Types:
<Value>: type of the data, that is going to be watched Generic type
<CallbackArguments>: type of extra arguments provided to the callback
Implemented by: MicroDBBase, MicroDBDriver
$watchProperty()
Watch for all upcoming property changes while the subscription is active.
SubscriptionCallback<Value, CallbackArguments>
Partial<SubscriptionOptions<Value>>
Returns: Subscription
$watchPropertyNext()
Watch for the next property change.
SubscriptionCallback<Value, CallbackArguments>
Partial<SubscriptionOptions<Value>>
Returns: Subscription