@routier/core 0.5.0 → 0.6.0

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.
@@ -3067,6 +3067,7 @@ __webpack_require__.d(__webpack_exports__, {
3067
3067
  executeJoin: () => (/* reexport */ executeJoin),
3068
3068
  formatExplanation: () => (/* reexport */ formatExplanation),
3069
3069
  serializePersistResult: () => (/* reexport */ serializePersistResult),
3070
+ mappedResultColumns: () => (/* reexport */ mappedResultColumns),
3070
3071
  explainQuery: () => (/* reexport */ explainQuery),
3071
3072
  cosineDistance: () => (/* reexport */ cosineDistance),
3072
3073
  RetryDbPlugin: () => (/* reexport */ RetryDbPlugin),
@@ -3102,6 +3103,18 @@ __webpack_require__.d(__webpack_exports__, {
3102
3103
  deserializeQueryOptions: () => (/* reexport */ deserializeQueryOptions)
3103
3104
  });
3104
3105
 
3106
+ ;// CONCATENATED MODULE: ./src/plugins/resultShape.ts
3107
+ /**
3108
+ * The columns a `map` projection selects.
3109
+ *
3110
+ * Named by `sourceName`, which is what the statement actually emits; the rename to
3111
+ * `destinationName` happens in the translator, after the rows come back. A field with no
3112
+ * `property` is an expression.
3113
+ */ const mappedResultColumns = (fields)=>fields.map((field)=>({
3114
+ name: field.sourceName,
3115
+ property: field.property ?? null
3116
+ }));
3117
+
3105
3118
  ;// CONCATENATED MODULE: ./src/plugins/translators/TranslatedArrayValue.ts
3106
3119
  class TranslatedArrayValue {
3107
3120
  value;
@@ -6610,6 +6623,7 @@ const DEFAULT_MAX_BATCH_SIZE = 100;
6610
6623
 
6611
6624
 
6612
6625
 
6626
+
6613
6627
  })();
6614
6628
 
6615
6629
  module.exports = __webpack_exports__;