@@ -19,7 +19,7 @@ export class QueryBuilder<Tables, T = any> {
19
19
}
20
20
21
21
/**
22
- * Select 1 or more items from a table
22
+ * select 1 or more items from a table
23
23
* @param {string|string[] } selector
24
24
* @example
25
25
*
@@ -48,7 +48,7 @@ export class QueryBuilder<Tables, T = any> {
48
48
}
49
49
50
50
/**
51
- * Insert data into a table
51
+ * insert data into a table
52
52
* @param tableName The name of the table
53
53
* @param data Data that needs to be inserted
54
54
*/
@@ -64,7 +64,7 @@ export class QueryBuilder<Tables, T = any> {
64
64
}
65
65
66
66
/**
67
- * Update data from a table
67
+ * update data from a table
68
68
* @param tableName The name of the table
69
69
* @param data Data that needs to be updated
70
70
*/
@@ -84,7 +84,7 @@ export class QueryBuilder<Tables, T = any> {
84
84
}
85
85
86
86
/**
87
- * Delete something from the table
87
+ * delete something from the table
88
88
* @param selector The table name
89
89
* @example
90
90
* // delete an item with 'where'
@@ -140,7 +140,7 @@ export class QueryBuilder<Tables, T = any> {
140
140
}
141
141
142
142
/**
143
- * Rename a table
143
+ * rename a table
144
144
* @param oldName The old table name you want to rename
145
145
* @param newName The new name
146
146
*/
@@ -151,7 +151,7 @@ export class QueryBuilder<Tables, T = any> {
151
151
}
152
152
153
153
/**
154
- * Drop a database or a table
154
+ * drop a database or a table
155
155
* @param {string } name The table or database you want to drop
156
156
* @param {"table"|"database" } type `table` or `database`
157
157
* @param {boolean } ifExists Check if the table/database exists when dropping
@@ -170,7 +170,7 @@ export class QueryBuilder<Tables, T = any> {
170
170
}
171
171
172
172
/**
173
- * Delete a column in a database table
173
+ * delete a column in a database table
174
174
* @param tableName The name of the table
175
175
* @param columnName The name of the column you want to drop
176
176
*/
@@ -187,7 +187,7 @@ export class QueryBuilder<Tables, T = any> {
187
187
}
188
188
189
189
/**
190
- * Create a raw query
190
+ * create a raw query
191
191
* @param query The raw query
192
192
* @param values Values that are needed for insert, update, ..
193
193
* @example
@@ -206,7 +206,7 @@ export class QueryBuilder<Tables, T = any> {
206
206
}
207
207
208
208
/**
209
- * Create a table
209
+ * create a table
210
210
* @param name The name of the table
211
211
* @param primary The primary key
212
212
* @param columns The columns that need to be inserted
@@ -230,7 +230,7 @@ export class QueryBuilder<Tables, T = any> {
230
230
}
231
231
232
232
/**
233
- * Same as `QueryBuilder#createTable` but only create the table if it doesn't exist
233
+ * same as `QueryBuilder#createTable` but only create the table if it doesn't exist
234
234
* @see [https://github.com/Dev-CasperTheGhost/mysql.ts/blob/main/docs/Query.md#create-table](https://github.com/Dev-CasperTheGhost/mysql.ts/blob/main/docs/Query.md#create-table)
235
235
*/
236
236
createTableIfNotExists ( name : string , primary : keyof T | undefined , columns : Partial < Record < keyof T , string > > ) {
@@ -243,7 +243,7 @@ export class QueryBuilder<Tables, T = any> {
243
243
}
244
244
245
245
/**
246
- * Add more columns to a table
246
+ * add more columns to a table
247
247
* @param name The name of the table
248
248
* @param columns The columns to add
249
249
* @example
@@ -267,7 +267,7 @@ export class QueryBuilder<Tables, T = any> {
267
267
}
268
268
269
269
/**
270
- * Reset the query string and values
270
+ * reset the query string and values
271
271
*/
272
272
resetQuery ( ) {
273
273
this . query = "" ;
@@ -277,7 +277,7 @@ export class QueryBuilder<Tables, T = any> {
277
277
}
278
278
279
279
/**
280
- * Execute the query
280
+ * execute the query
281
281
*/
282
282
async exec ( options ?: Omit < mysql . QueryOptions , "sql" | "values" > ) : Promise < T [ ] | undefined > {
283
283
if ( this . config . debugExec === true ) {
0 commit comments