| 117 | |
| 118 | /** Types of options */ |
| 119 | export interface QueryOptions { |
| 120 | /** The arguments to be passed to the query */ |
| 121 | args?: QueryArguments; |
| 122 | /** A custom function to override the encoding logic of the arguments passed to the query */ |
| 123 | encoder?: (arg: unknown) => EncodedArg; |
| 124 | /**The name of the query statement */ |
| 125 | name?: string; |
| 126 | // TODO |
| 127 | // Rename to query |
| 128 | /** The query statement to be executed */ |
| 129 | text: string; |
| 130 | } |
| 131 | |
| 132 | /** Options to control the behavior of a Query instance */ |
| 133 | export interface QueryObjectOptions extends QueryOptions { |
nothing calls this directly
no outgoing calls
no test coverage detected