@ronin/compiler
Advanced tools
Comparing version 0.17.8 to 0.17.9
@@ -272,2 +272,9 @@ /** | ||
}); | ||
/** An extended version of `ModelField`, for internal use within the compiler. */ | ||
type InternalModelField = ModelField & { | ||
/** The path on the final record where the value of the field should be mounted. */ | ||
mountingPath: string; | ||
/** A custom value that was provided in the query, which is not stored in the DB. */ | ||
mountedValue?: unknown; | ||
}; | ||
type ModelIndexField<T extends ModelEntityList<ModelField> = ModelEntityList<ModelField>> = { | ||
@@ -427,2 +434,16 @@ /** The collating sequence used for text placed inside the field. */ | ||
constructor(queries: Array<Query>, options?: TransactionOptions); | ||
/** | ||
* Formats an individual result of a query (each query has one individual result). | ||
* | ||
* @param queryType - The type of query that is being executed. | ||
* @param queryInstructions - The instructions of the query that is being executed. | ||
* @param model - The model for which the query is being executed. | ||
* @param rows - The rows that were returned from the database for the query (in the | ||
* form of an array containing arrays that contain strings). | ||
* @param selectedFields - The model fields that were selected by the query. | ||
* @param single - Whether a single or multiple records are being affected by the query. | ||
* | ||
* @returns A formatted RONIN result for a particular query. | ||
*/ | ||
formatIndividualResult<RecordType>(queryType: QueryType, queryInstructions: CombinedInstructions, model: Model, rows: Array<Array<RawRow>>, selectedFields: Array<InternalModelField>, single: boolean): RegularResult<RecordType>; | ||
formatResults<RecordType>(results: Array<Array<ObjectRow>>, raw?: false): Array<Result<RecordType>>; | ||
@@ -429,0 +450,0 @@ formatResults<RecordType>(results: Array<Array<RawRow>>, raw?: true): Array<Result<RecordType>>; |
{ | ||
"name": "@ronin/compiler", | ||
"version": "0.17.8", | ||
"version": "0.17.9", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Compiles RONIN queries to SQL statements.", |
Sorry, the diff of this file is too big to display
120356
2779