@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.
package/README.md CHANGED
@@ -50,7 +50,7 @@ class AppContext extends DataStore {
50
50
  const ctx = new AppContext();
51
51
 
52
52
  // Add data
53
- await ctx.users.addAsync({ name: "Ada", email: "ada@example.com" });
53
+ await ctx.users.addAsync({ name: "James", email: "james@example.com" });
54
54
  await ctx.saveChangesAsync();
55
55
 
56
56
  // Query with live updates
package/dist/index.cjs CHANGED
@@ -3257,7 +3257,7 @@ var TrampolinePipeline = __webpack_require__(416);
3257
3257
 
3258
3258
 
3259
3259
  },
3260
- 454(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
3260
+ 10(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
3261
3261
 
3262
3262
  // EXPORTS
3263
3263
  __webpack_require__.d(__webpack_exports__, {
@@ -3271,6 +3271,7 @@ __webpack_require__.d(__webpack_exports__, {
3271
3271
  executeJoin: () => (/* reexport */ executeJoin),
3272
3272
  formatExplanation: () => (/* reexport */ formatExplanation),
3273
3273
  serializePersistResult: () => (/* reexport */ serializePersistResult),
3274
+ mappedResultColumns: () => (/* reexport */ mappedResultColumns),
3274
3275
  explainQuery: () => (/* reexport */ explainQuery),
3275
3276
  cosineDistance: () => (/* reexport */ cosineDistance),
3276
3277
  RetryDbPlugin: () => (/* reexport */ RetryDbPlugin),
@@ -3306,6 +3307,18 @@ __webpack_require__.d(__webpack_exports__, {
3306
3307
  deserializeQueryOptions: () => (/* reexport */ deserializeQueryOptions)
3307
3308
  });
3308
3309
 
3310
+ ;// CONCATENATED MODULE: ./src/plugins/resultShape.ts
3311
+ /**
3312
+ * The columns a `map` projection selects.
3313
+ *
3314
+ * Named by `sourceName`, which is what the statement actually emits; the rename to
3315
+ * `destinationName` happens in the translator, after the rows come back. A field with no
3316
+ * `property` is an expression.
3317
+ */ const mappedResultColumns = (fields)=>fields.map((field)=>({
3318
+ name: field.sourceName,
3319
+ property: field.property ?? null
3320
+ }));
3321
+
3309
3322
  ;// CONCATENATED MODULE: ./src/plugins/translators/TranslatedArrayValue.ts
3310
3323
  class TranslatedArrayValue {
3311
3324
  value;
@@ -6815,6 +6828,7 @@ const DEFAULT_MAX_BATCH_SIZE = 100;
6815
6828
 
6816
6829
 
6817
6830
 
6831
+
6818
6832
  },
6819
6833
  198(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
6820
6834
  __webpack_require__.d(__webpack_exports__, {
@@ -13949,6 +13963,7 @@ __webpack_require__.d(__webpack_exports__, {
13949
13963
  loadJoinInnerSide: () => (/* reexport safe */ _plugins__rspack_import_7.loadJoinInnerSide),
13950
13964
  logger: () => (/* reexport safe */ _utilities__rspack_import_10.logger),
13951
13965
  loggerSink: () => (/* reexport safe */ _plugins__rspack_import_7.loggerSink),
13966
+ mappedResultColumns: () => (/* reexport safe */ _plugins__rspack_import_7.mappedResultColumns),
13952
13967
  measure: () => (/* reexport safe */ _performance__rspack_import_5.measure),
13953
13968
  nearestBy: () => (/* reexport safe */ _plugins__rspack_import_7.nearestBy),
13954
13969
  noop: () => (/* reexport safe */ _utilities__rspack_import_10.noop),
@@ -13987,7 +14002,7 @@ __webpack_require__.d(__webpack_exports__, {
13987
14002
  /* import */ var _expressions__rspack_import_4 = __webpack_require__(138);
13988
14003
  /* import */ var _performance__rspack_import_5 = __webpack_require__(971);
13989
14004
  /* import */ var _pipeline__rspack_import_6 = __webpack_require__(314);
13990
- /* import */ var _plugins__rspack_import_7 = __webpack_require__(454);
14005
+ /* import */ var _plugins__rspack_import_7 = __webpack_require__(10);
13991
14006
  /* import */ var _results__rspack_import_8 = __webpack_require__(264);
13992
14007
  /* import */ var _schema__rspack_import_9 = __webpack_require__(755);
13993
14008
  /* import */ var _utilities__rspack_import_10 = __webpack_require__(222);