Skip to main content

abstract AbstractQueryProcessor<Data, Settings>

Internal

Performs underlying watching and yields a stream of results.

Extends

  • MetaBaseObserver<WatchedQueryProcessorListener<Data>>

Extended by

Type Parameters

Type ParameterDefault type
Dataunknown[]
Settings extends WatchedQueryOptionsWatchedQueryOptions

Implements

Constructors

new AbstractQueryProcessor()

new AbstractQueryProcessor<Data, Settings>(options): AbstractQueryProcessor<Data, Settings>

Parameters

ParameterType
optionsAbstractQueryProcessorOptions<Data, Settings>

Returns

AbstractQueryProcessor<Data, Settings>

Overrides

MetaBaseObserver<WatchedQueryProcessorListener<Data>>.constructor

Properties

PropertyModifierTypeDescription
statereadonlyWatchedQueryState<Data>Current state of the watched query.

Accessors

closed

Get Signature

get closed(): boolean
Returns

boolean

Implementation of

WatchedQuery.closed


listenerMeta

Get Signature

get listenerMeta(): ListenerMetaManager<Listener>
Returns

ListenerMetaManager<Listener>

Implementation of

WatchedQuery.listenerMeta

Inherited from

MetaBaseObserver.listenerMeta

Methods

close()

close(): Promise<void>

Close the watched query and end all subscriptions.

Returns

Promise<void>

Implementation of

WatchedQuery.close


dispose()

dispose(): void

Returns

void

Inherited from

MetaBaseObserver.dispose

iterateAsyncListeners()

iterateAsyncListeners(cb): Promise<void>

Parameters

ParameterType
cb(listener) => Promise<any>

Returns

Promise<void>

Inherited from

MetaBaseObserver.iterateAsyncListeners

iterateListeners()

iterateListeners(cb): void

Parameters

ParameterType
cb(listener) => any

Returns

void

Inherited from

MetaBaseObserver.iterateListeners

registerListener()

registerListener(listener): () => void

Register a listener for updates to the PowerSync client.

Parameters

ParameterType
listenerPartial<WatchedQueryProcessorListener<Data>>

Returns

Function

Returns

void

Implementation of

WatchedQuery.registerListener

Inherited from

MetaBaseObserver.registerListener

updateSettings()

updateSettings(settings): Promise<void>

Updates the underlying query.

Parameters

ParameterType
settingsSettings

Returns

Promise<void>

Implementation of

WatchedQuery.updateSettings