@ronin/compiler
Advanced tools
Comparing version 0.17.7 to 0.17.8-leo-ron-1099-experimental-395
@@ -120,2 +120,10 @@ /** | ||
type CountQuery = Record<string, Omit<CombinedInstructions, 'to'> | null>; | ||
type AllQueryInstructions = { | ||
for?: string; | ||
}; | ||
type AllQuery = { | ||
all: AllQueryInstructions | null; | ||
}; | ||
type GetAllQuery = AllQuery; | ||
type CountAllQuery = AllQuery; | ||
type GetInstructions = Omit<CombinedInstructions, 'to'>; | ||
@@ -162,7 +170,7 @@ type SetInstructions = Omit<CombinedInstructions, 'to'> & { | ||
type Query = { | ||
get?: GetQuery; | ||
get?: GetQuery | GetAllQuery; | ||
set?: SetQuery; | ||
add?: AddQuery; | ||
remove?: RemoveQuery; | ||
count?: CountQuery; | ||
count?: CountQuery | CountAllQuery; | ||
create?: CreateQuery; | ||
@@ -266,2 +274,9 @@ alter?: AlterQuery; | ||
}); | ||
/** 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>> = { | ||
@@ -421,2 +436,3 @@ /** The collating sequence used for text placed inside the field. */ | ||
constructor(queries: Array<Query>, options?: TransactionOptions); | ||
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>>; | ||
@@ -423,0 +439,0 @@ formatResults<RecordType>(results: Array<Array<RawRow>>, raw?: true): Array<Result<RecordType>>; |
{ | ||
"name": "@ronin/compiler", | ||
"version": "0.17.7", | ||
"version": "0.17.8-leo-ron-1099-experimental-395", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Compiles RONIN queries to SQL statements.", |
Sorry, the diff of this file is too big to display
118938
2753