@@ -32,8 +32,6 @@ export default class PostgrestQueryBuilder<Table extends GenericTable> {
32
32
* Performs vertical filtering with SELECT.
33
33
*
34
34
* @param columns The columns to retrieve, separated by commas.
35
- * @param head When set to true, select will void data.
36
- * @param count Count algorithm to use to count rows in a table.
37
35
*/
38
36
select <
39
37
Query extends string = '*' ,
@@ -44,7 +42,9 @@ export default class PostgrestQueryBuilder<Table extends GenericTable> {
44
42
head = false ,
45
43
count,
46
44
} : {
45
+ /** When set to true, select will void data. */
47
46
head ?: boolean
47
+ /** Count algorithm to use to count rows in a table. */
48
48
count ?: 'exact' | 'planned' | 'estimated'
49
49
} = { }
50
50
) : PostgrestFilterBuilder < Table [ 'Row' ] , Result > {
@@ -82,16 +82,16 @@ export default class PostgrestQueryBuilder<Table extends GenericTable> {
82
82
* Performs an INSERT into the table.
83
83
*
84
84
* @param values The values to insert.
85
- * @param count Count algorithm to use to count rows in a table.
86
- * @param rollback Rollback the operation
87
85
*/
88
86
insert < Row extends Table [ 'Insert' ] > (
89
87
values : Row | Row [ ] ,
90
88
{
91
89
count,
92
90
rollback = false ,
93
91
} : {
92
+ /** Count algorithm to use to count rows in a table. */
94
93
count ?: 'exact' | 'planned' | 'estimated'
94
+ /** Rollback the operation */
95
95
rollback ?: boolean
96
96
} = { }
97
97
) : PostgrestFilterBuilder < Table [ 'Row' ] , undefined > {
@@ -133,11 +133,6 @@ export default class PostgrestQueryBuilder<Table extends GenericTable> {
133
133
* Performs an UPSERT into the table.
134
134
*
135
135
* @param values The values to insert.
136
- * @param count Count algorithm to use to count rows in a table.
137
- * @param options Named parameters.
138
- * @param options.onConflict By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint.
139
- * @param options.ignoreDuplicates Specifies if duplicate rows should be ignored and not inserted.
140
- * @param rollback Rollback the operation
141
136
*/
142
137
upsert < Row extends Table [ 'Insert' ] > (
143
138
values : Row | Row [ ] ,
@@ -147,9 +142,13 @@ export default class PostgrestQueryBuilder<Table extends GenericTable> {
147
142
ignoreDuplicates = false ,
148
143
rollback = false ,
149
144
} : {
145
+ /** By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint. */
150
146
onConflict ?: string
147
+ /** Count algorithm to use to count rows in a table. */
151
148
count ?: 'exact' | 'planned' | 'estimated'
149
+ /** Specifies if duplicate rows should be ignored and not inserted. */
152
150
ignoreDuplicates ?: boolean
151
+ /** Rollback the operation */
153
152
rollback ?: boolean
154
153
} = { }
155
154
) : PostgrestFilterBuilder < Table [ 'Row' ] , undefined > {
@@ -185,16 +184,16 @@ export default class PostgrestQueryBuilder<Table extends GenericTable> {
185
184
* Performs an UPDATE on the table.
186
185
*
187
186
* @param values The values to update.
188
- * @param count Count algorithm to use to count rows in a table.
189
- * @param rollback Rollback the operation
190
187
*/
191
188
update < Row extends Table [ 'Update' ] > (
192
189
values : Row ,
193
190
{
194
191
count,
195
192
rollback = false ,
196
193
} : {
194
+ /** Count algorithm to use to count rows in a table. */
197
195
count ?: 'exact' | 'planned' | 'estimated'
196
+ /** Rollback the operation */
198
197
rollback ?: boolean
199
198
} = { }
200
199
) : PostgrestFilterBuilder < Table [ 'Row' ] , undefined > {
@@ -225,15 +224,14 @@ export default class PostgrestQueryBuilder<Table extends GenericTable> {
225
224
226
225
/**
227
226
* Performs a DELETE on the table.
228
- *
229
- * @param count Count algorithm to use to count rows in a table.
230
- * @param rollback Rollback the operation
231
227
*/
232
228
delete ( {
233
229
count,
234
230
rollback = false ,
235
231
} : {
232
+ /** Count algorithm to use to count rows in a table. */
236
233
count ?: 'exact' | 'planned' | 'estimated'
234
+ /** Rollback the operation */
237
235
rollback ?: boolean
238
236
} = { } ) : PostgrestFilterBuilder < Table [ 'Row' ] , undefined > {
239
237
const method = 'DELETE'
0 commit comments