import QuerySubscriptionPool from 'electron-coresqlite/lib/query-subscription-pool.js'QuerySubscriptionPool
The QuerySubscriptionPool maintains a list of all of the query subscriptions in the app. In the future, this class will monitor performance, merge equivalent subscriptions, etc.
Constructor Summary
| Public Constructor | ||
| public |
constructor(database: *) |
|
Method Summary
| Public Methods | ||
| public |
add(query: *, callback: *): * |
|
| public |
addPrivateSubscription(key: *, subscription: *, callback: *): * |
|
| public |
|
|
Public Constructors
public constructor(database: *) source
Params:
| Name | Type | Attribute | Description |
| database | * |
Public Methods
public add(query: *, callback: *): * source
Params:
| Name | Type | Attribute | Description |
| query | * | ||
| callback | * |
Return:
| * |
public addPrivateSubscription(key: *, subscription: *, callback: *): * source
Params:
| Name | Type | Attribute | Description |
| key | * | ||
| subscription | * | ||
| callback | * |
Return:
| * |