usePowerSyncQuery()
function usePowerSyncQuery<T>(
sqlStatement,
parameters,
queryOptions): Result<T>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type | Default value |
---|---|---|
sqlStatement | MaybeRef <string > | undefined |
parameters | MaybeRef <any []> | [] |
queryOptions | QueryOptions | undefined |
Returns
Result
<T
>
Deprecated
use useQuery instead.
A composable to access a single static query. SQL Statement and query Parameters are watched by default. For a result that updates as the source data changes, use usePowerSyncWatchedQuery instead.