@@ -132,19 +132,19 @@ export interface QueryObjectOptions extends QueryOptions {
132132 // TODO
133133 // Support multiple case options
134134 /**
135- * Enabling camelcase will transform any snake case field names coming from the database into camel case ones
135+ * Enabling camel case will transform any snake case field names coming from the database into camel case ones
136136 *
137137 * Ex: `SELECT 1 AS my_field` will return `{ myField: 1 }`
138138 *
139139 * This won't have any effect if you explicitly set the field names with the `fields` parameter
140140 */
141- camelcase ?: boolean ;
141+ camelCase ?: boolean ;
142142 /**
143143 * This parameter supersedes query column names coming from the databases in the order they were provided.
144144 * Fields must be unique and be in the range of (a-zA-Z0-9_), otherwise the query will throw before execution.
145145 * A field can not start with a number, just like JavaScript variables
146146 *
147- * This setting overrides the camelcase option
147+ * This setting overrides the camel case option
148148 *
149149 * Ex: `SELECT 'A', 'B' AS my_field` with fields `["field_1", "field_2"]` will return `{ field_1: "A", field_2: "B" }`
150150 */
@@ -324,7 +324,7 @@ export class QueryObjectResult<
324324 this . columns = this . query . fields ;
325325 } else {
326326 let column_names : string [ ] ;
327- if ( this . query . camelcase ) {
327+ if ( this . query . camelCase ) {
328328 column_names = this . rowDescription . columns . map ( ( column ) =>
329329 snakecaseToCamelcase ( column . name )
330330 ) ;
@@ -380,7 +380,7 @@ export class QueryObjectResult<
380380 */
381381export class Query < T extends ResultType > {
382382 public args : EncodedArg [ ] ;
383- public camelcase ?: boolean ;
383+ public camelCase ?: boolean ;
384384 /**
385385 * The explicitly set fields for the query result, they have been validated beforehand
386386 * for duplicates and invalid names
@@ -408,7 +408,7 @@ export class Query<T extends ResultType> {
408408 this . text = config_or_text ;
409409 this . args = args . map ( encodeArgument ) ;
410410 } else {
411- const { camelcase , encoder = encodeArgument , fields } = config_or_text ;
411+ const { camelCase , encoder = encodeArgument , fields } = config_or_text ;
412412 let { args = [ ] , text } = config_or_text ;
413413
414414 // Check that the fields passed are valid and can be used to map
@@ -432,7 +432,7 @@ export class Query<T extends ResultType> {
432432 this . fields = fields ;
433433 }
434434
435- this . camelcase = camelcase ;
435+ this . camelCase = camelCase ;
436436
437437 if ( ! Array . isArray ( args ) ) {
438438 [ text , args ] = objectQueryToQueryArgs ( text , args ) ;
0 commit comments