proto.io 0.0.166 → 0.0.168

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,6 +95,7 @@ declare class QueryCompiler {
95
95
  _encodeFilter(parent: {
96
96
  className?: string;
97
97
  name: string;
98
+ populates?: Record<string, Populate>;
98
99
  }, filter: QuerySelector): SQL | undefined;
99
100
  private _selectIncludes;
100
101
  _encodeSort(sort: Record<string, 1 | -1> | DecodedSortOption[], parent: {
@@ -118,13 +119,17 @@ interface SqlDialect {
118
119
  encodeType(colname: string, type: TSchema.DataType, value: TValue): SQL;
119
120
  decodeType(type: TSchema.Primitive | 'vector', value: any): TValue;
120
121
  updateOperation(paths: string[], dataType: TSchema.DataType, operation: TUpdateOp): SQL;
121
- selectPopulate(compiler: QueryCompiler, parent: Pick<Populate, 'className' | 'name'>, populate: Populate, field: string): {
122
+ selectPopulate(compiler: QueryCompiler, parent: {
123
+ className: string;
124
+ name: string;
125
+ }, populate: Populate, field: string): {
122
126
  columns: SQL[];
123
127
  join?: SQL;
124
128
  };
125
129
  encodeFieldExpression(compiler: QueryCompiler, parent: {
126
130
  className?: string;
127
131
  name: string;
132
+ populates?: Record<string, Populate>;
128
133
  }, field: string, expr: FieldSelectorExpression): SQL;
129
134
  encodeQueryExpression(compiler: QueryCompiler, parent: {
130
135
  className?: string;