| createPowerSyncPlugin | Create a Vue plugin to define the PowerSync client. Client will be provided app-wide (highest position in component hierarchy). |
| providePowerSync | Provide the PowerSync client for all the caller component's descendants. This function works on a hierarchical basis, meaning that the client provided by providePowerSync in a child component will override the client provided by createPowerSyncPlugin in a parent component. If createPowerSyncPlugin was used to provide an app-wide client, all providePowerSync invocations are below it in the hierarchy. |
| usePowerSync | Retrieve the nearest PowerSync client from the component hierarchy. The client can be provided by using the createPowerSyncPlugin function to provide an app-wide client or by using the providePowerSync function in an ancestor component. If multiple clients are found in the hierarchy, the closest client to the current component will be used. |
| useQuery | A composable to access the results of a watched query. |
| useStatus | Retrieve the current synchronization status of PowerSync. |
| useSyncStream | Creates a PowerSync stream subscription. The subscription is kept alive as long as the Vue component calling this function is mounted. When it unmounts, SyncStreamSubscription.unsubscribe is called |
| useWatchedQuerySubscription | A composable to access and subscribe to the results of an existing WatchedQuery instance. |