Function: useQuerySQL()
function useQuerySQL(
stack,
sql,
params,
options): object;
Defined in: react/src/hooks/index.ts:47
Parameters
| Parameter | Type | Default value |
|---|---|---|
stack | string | undefined |
sql | string | undefined |
params | any[] | [] |
options | QuerySQLOptions | {} |
Returns
object
| Name | Type | Default value | Defined in |
|---|---|---|---|
error | any | - | react/src/hooks/index.ts:145 |
loading | boolean | - | react/src/hooks/index.ts:145 |
refetch() | () => Promise<void> | runQuery | react/src/hooks/index.ts:145 |
result | object | - | react/src/hooks/index.ts:145 |
result.ast | | ( | SelectAST | UnionAST)[] | null | - | react/src/hooks/index.ts:55 |
result.rows | any[] | - | react/src/hooks/index.ts:55 |