@nshiab/simple-data-analysis 5.20.7 → 5.20.9

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.
Files changed (1081) hide show
  1. package/esm/class/SimpleDB.d.ts +1 -1
  2. package/esm/class/SimpleDB.js +1 -1
  3. package/esm/class/SimpleTable.d.ts +1 -1
  4. package/esm/class/SimpleTable.js +2 -2
  5. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/Simple.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleDB.d.ts +506 -0
  7. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleDB.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleDB.js +854 -0
  9. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleTable.d.ts +4648 -0
  10. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleTable.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleTable.js +5633 -0
  12. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/accumulateQuery.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/camelCase.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/capitalize.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/checkVssIndexes.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/cleanCache.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/cleanPath.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/cleanSQL.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/concatenateRowQuery.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/convertForJS.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/createDirectory.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/csvFormat.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/dataToArrays.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/extractTypes.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/findGeoColumn.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/formatDate.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/formatNumber.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getCombinations.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getExtension.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getIdenticalColumns.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getName.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/hasGeometryColumn.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/index.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/keepNumericalColumns.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/logData.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/mergeOptions.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/nestQuery.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/parseDuckDBType.d.ts.map +1 -0
  39. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/parseTypes.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/parseValue.d.ts.map +1 -0
  41. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/prettyDuration.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/printTable.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/queryDB.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/repeatRowsQuery.d.ts.map +1 -0
  45. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/rewind.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/runQuery.d.ts.map +1 -0
  47. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/setDbProps.d.ts.map +1 -0
  48. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/stringToArray.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/stringifyDates.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/stringifyDatesInvert.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/unifyColumns.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/unnestQuery.d.ts.map +1 -0
  53. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/wrapString.d.ts.map +1 -0
  54. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/writeDataAsArrays.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/writeGeoData.d.ts.map +1 -0
  56. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/writeIndexes.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/index.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/aggregateGeoQuery.d.ts.map +1 -0
  59. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/aggregateGeoQuery.js +25 -0
  60. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/binsQuery.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/bm25.d.ts.map +1 -0
  62. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/boundingBoxQuery.d.ts.map +1 -0
  63. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/cache.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/capitalizeQuery.d.ts.map +1 -0
  65. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/cloneColumn.d.ts.map +1 -0
  66. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/cloneQuery.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/concatenateQuery.d.ts.map +1 -0
  68. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/convertQuery.d.ts.map +1 -0
  69. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/correlations.d.ts.map +1 -0
  70. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/correlationsQuery.d.ts.map +1 -0
  71. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/createFtsIndex.d.ts.map +1 -0
  72. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/createVssIndex.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/crossJoinQuery.d.ts.map +1 -0
  74. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/distanceQuery.d.ts.map +1 -0
  75. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fill.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fuzzyClean.d.ts.map +1 -0
  77. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fuzzyJoin.d.ts.map +1 -0
  78. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fuzzyJoinQuery.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getBottom.d.ts.map +1 -0
  80. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getColumns.d.ts.map +1 -0
  81. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getDescription.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getFirstRow.d.ts.map +1 -0
  83. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getGeoData.d.ts.map +1 -0
  84. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getLastRow.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMax.d.ts.map +1 -0
  86. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMean.d.ts.map +1 -0
  87. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMedian.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMin.d.ts.map +1 -0
  89. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getNbCharacters.d.ts.map +1 -0
  90. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getNbRows.d.ts.map +1 -0
  91. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getQuantile.d.ts.map +1 -0
  92. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getSkew.d.ts.map +1 -0
  93. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getStdDev.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getSum.d.ts.map +1 -0
  95. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getTableNames.d.ts.map +1 -0
  96. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getTop.d.ts.map +1 -0
  97. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getTypes.d.ts.map +1 -0
  98. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getUniques.d.ts.map +1 -0
  99. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getValues.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getVar.d.ts.map +1 -0
  101. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/insertRowsQuery.d.ts.map +1 -0
  102. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/join.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/joinGeo.d.ts.map +1 -0
  104. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/joinGeoQuery.d.ts.map +1 -0
  105. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/joinQuery.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/keepQuery.d.ts.map +1 -0
  107. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/linearRegressionQuery.d.ts.map +1 -0
  108. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/linearRegressions.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/loadArray.d.ts.map +1 -0
  110. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/loadDataQuery.d.ts.map +1 -0
  111. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/loadSample.d.ts.map +1 -0
  112. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/lowerQuery.d.ts.map +1 -0
  113. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/normalizeQuery.d.ts.map +1 -0
  114. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/normalizeString.d.ts.map +1 -0
  115. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/outliersIQRQuery.d.ts.map +1 -0
  116. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/padQuery.d.ts.map +1 -0
  117. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/proportionsHorizontalQuery.d.ts.map +1 -0
  118. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/proportionsVerticalQuery.d.ts.map +1 -0
  119. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/quantilesQuery.d.ts.map +1 -0
  120. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/randomPointQuery.d.ts.map +1 -0
  121. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/ranksQuery.d.ts.map +1 -0
  122. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeDuplicatesQuery.d.ts.map +1 -0
  123. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeMissing.d.ts.map +1 -0
  124. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeMissingQuery.d.ts.map +1 -0
  125. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeQuery.d.ts.map +1 -0
  126. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/renameColumnQuery.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/replaceNullsQuery.d.ts.map +1 -0
  128. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/replaceQuery.d.ts.map +1 -0
  129. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/rollingQuery.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/roundQuery.d.ts.map +1 -0
  131. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/selectRowsQuery.d.ts.map +1 -0
  132. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/sortQuery.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/splitSpread.d.ts.map +1 -0
  134. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/summarize.d.ts.map +1 -0
  135. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/summarizeQuery.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/trimQuery.d.ts.map +1 -0
  137. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/truncateQuery.d.ts.map +1 -0
  138. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/upperQuery.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/writeDataQuery.d.ts.map +1 -0
  140. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/writeGeoDataQuery.d.ts.map +1 -0
  141. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/zScoreQuery.d.ts.map +1 -0
  142. package/esm/methods/aiRowByRow.js +1 -1
  143. package/esm/methods/aiVectorSimilarity.js +1 -1
  144. package/esm/methods/hybridSearch.js +1 -1
  145. package/package.json +1 -1
  146. package/script/class/SimpleDB.d.ts +1 -1
  147. package/script/class/SimpleDB.js +1 -1
  148. package/script/class/SimpleTable.d.ts +1 -1
  149. package/script/class/SimpleTable.js +2 -2
  150. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/Simple.d.ts.map +1 -0
  151. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleDB.d.ts +506 -0
  152. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleDB.d.ts.map +1 -0
  153. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleDB.js +860 -0
  154. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleTable.d.ts +4648 -0
  155. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleTable.d.ts.map +1 -0
  156. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/class/SimpleTable.js +5639 -0
  157. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/accumulateQuery.d.ts.map +1 -0
  158. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/camelCase.d.ts.map +1 -0
  159. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/capitalize.d.ts.map +1 -0
  160. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/checkVssIndexes.d.ts.map +1 -0
  161. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/cleanCache.d.ts.map +1 -0
  162. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/cleanPath.d.ts.map +1 -0
  163. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/cleanSQL.d.ts.map +1 -0
  164. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/concatenateRowQuery.d.ts.map +1 -0
  165. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/convertForJS.d.ts.map +1 -0
  166. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/createDirectory.d.ts.map +1 -0
  167. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/csvFormat.d.ts.map +1 -0
  168. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/dataToArrays.d.ts.map +1 -0
  169. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/extractTypes.d.ts.map +1 -0
  170. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/findGeoColumn.d.ts.map +1 -0
  171. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/formatDate.d.ts.map +1 -0
  172. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/formatNumber.d.ts.map +1 -0
  173. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getCombinations.d.ts.map +1 -0
  174. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getExtension.d.ts.map +1 -0
  175. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getIdenticalColumns.d.ts.map +1 -0
  176. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/getName.d.ts.map +1 -0
  177. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/hasGeometryColumn.d.ts.map +1 -0
  178. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/index.d.ts.map +1 -0
  179. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/keepNumericalColumns.d.ts.map +1 -0
  180. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/logData.d.ts.map +1 -0
  181. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/mergeOptions.d.ts.map +1 -0
  182. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/nestQuery.d.ts.map +1 -0
  183. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/parseDuckDBType.d.ts.map +1 -0
  184. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/parseTypes.d.ts.map +1 -0
  185. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/parseValue.d.ts.map +1 -0
  186. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/prettyDuration.d.ts.map +1 -0
  187. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/printTable.d.ts.map +1 -0
  188. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/queryDB.d.ts.map +1 -0
  189. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/repeatRowsQuery.d.ts.map +1 -0
  190. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/rewind.d.ts.map +1 -0
  191. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/runQuery.d.ts.map +1 -0
  192. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/setDbProps.d.ts.map +1 -0
  193. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/stringToArray.d.ts.map +1 -0
  194. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/stringifyDates.d.ts.map +1 -0
  195. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/stringifyDatesInvert.d.ts.map +1 -0
  196. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/unifyColumns.d.ts.map +1 -0
  197. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/unnestQuery.d.ts.map +1 -0
  198. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/wrapString.d.ts.map +1 -0
  199. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/writeDataAsArrays.d.ts.map +1 -0
  200. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/writeGeoData.d.ts.map +1 -0
  201. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/helpers/writeIndexes.d.ts.map +1 -0
  202. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/index.d.ts.map +1 -0
  203. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/aggregateGeoQuery.d.ts.map +1 -0
  204. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/aggregateGeoQuery.js +31 -0
  205. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/binsQuery.d.ts.map +1 -0
  206. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/bm25.d.ts.map +1 -0
  207. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/boundingBoxQuery.d.ts.map +1 -0
  208. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/cache.d.ts.map +1 -0
  209. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/capitalizeQuery.d.ts.map +1 -0
  210. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/cloneColumn.d.ts.map +1 -0
  211. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/cloneQuery.d.ts.map +1 -0
  212. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/concatenateQuery.d.ts.map +1 -0
  213. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/convertQuery.d.ts.map +1 -0
  214. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/correlations.d.ts.map +1 -0
  215. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/correlationsQuery.d.ts.map +1 -0
  216. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/createFtsIndex.d.ts.map +1 -0
  217. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/createVssIndex.d.ts.map +1 -0
  218. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/crossJoinQuery.d.ts.map +1 -0
  219. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/distanceQuery.d.ts.map +1 -0
  220. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fill.d.ts.map +1 -0
  221. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fuzzyClean.d.ts.map +1 -0
  222. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fuzzyJoin.d.ts.map +1 -0
  223. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/fuzzyJoinQuery.d.ts.map +1 -0
  224. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getBottom.d.ts.map +1 -0
  225. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getColumns.d.ts.map +1 -0
  226. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getDescription.d.ts.map +1 -0
  227. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getFirstRow.d.ts.map +1 -0
  228. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getGeoData.d.ts.map +1 -0
  229. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getLastRow.d.ts.map +1 -0
  230. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMax.d.ts.map +1 -0
  231. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMean.d.ts.map +1 -0
  232. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMedian.d.ts.map +1 -0
  233. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getMin.d.ts.map +1 -0
  234. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getNbCharacters.d.ts.map +1 -0
  235. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getNbRows.d.ts.map +1 -0
  236. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getQuantile.d.ts.map +1 -0
  237. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getSkew.d.ts.map +1 -0
  238. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getStdDev.d.ts.map +1 -0
  239. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getSum.d.ts.map +1 -0
  240. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getTableNames.d.ts.map +1 -0
  241. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getTop.d.ts.map +1 -0
  242. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getTypes.d.ts.map +1 -0
  243. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getUniques.d.ts.map +1 -0
  244. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getValues.d.ts.map +1 -0
  245. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/getVar.d.ts.map +1 -0
  246. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/insertRowsQuery.d.ts.map +1 -0
  247. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/join.d.ts.map +1 -0
  248. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/joinGeo.d.ts.map +1 -0
  249. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/joinGeoQuery.d.ts.map +1 -0
  250. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/joinQuery.d.ts.map +1 -0
  251. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/keepQuery.d.ts.map +1 -0
  252. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/linearRegressionQuery.d.ts.map +1 -0
  253. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/linearRegressions.d.ts.map +1 -0
  254. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/loadArray.d.ts.map +1 -0
  255. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/loadDataQuery.d.ts.map +1 -0
  256. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/loadSample.d.ts.map +1 -0
  257. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/lowerQuery.d.ts.map +1 -0
  258. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/normalizeQuery.d.ts.map +1 -0
  259. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/normalizeString.d.ts.map +1 -0
  260. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/outliersIQRQuery.d.ts.map +1 -0
  261. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/padQuery.d.ts.map +1 -0
  262. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/proportionsHorizontalQuery.d.ts.map +1 -0
  263. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/proportionsVerticalQuery.d.ts.map +1 -0
  264. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/quantilesQuery.d.ts.map +1 -0
  265. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/randomPointQuery.d.ts.map +1 -0
  266. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/ranksQuery.d.ts.map +1 -0
  267. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeDuplicatesQuery.d.ts.map +1 -0
  268. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeMissing.d.ts.map +1 -0
  269. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeMissingQuery.d.ts.map +1 -0
  270. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/removeQuery.d.ts.map +1 -0
  271. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/renameColumnQuery.d.ts.map +1 -0
  272. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/replaceNullsQuery.d.ts.map +1 -0
  273. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/replaceQuery.d.ts.map +1 -0
  274. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/rollingQuery.d.ts.map +1 -0
  275. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/roundQuery.d.ts.map +1 -0
  276. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/selectRowsQuery.d.ts.map +1 -0
  277. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/sortQuery.d.ts.map +1 -0
  278. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/splitSpread.d.ts.map +1 -0
  279. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/summarize.d.ts.map +1 -0
  280. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/summarizeQuery.d.ts.map +1 -0
  281. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/trimQuery.d.ts.map +1 -0
  282. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/truncateQuery.d.ts.map +1 -0
  283. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/upperQuery.d.ts.map +1 -0
  284. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/writeDataQuery.d.ts.map +1 -0
  285. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/writeGeoDataQuery.d.ts.map +1 -0
  286. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/1.0.1/src/methods/zScoreQuery.d.ts.map +1 -0
  287. package/script/methods/aiRowByRow.js +1 -1
  288. package/script/methods/aiVectorSimilarity.js +1 -1
  289. package/script/methods/hybridSearch.js +1 -1
  290. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/Simple.d.ts.map +0 -1
  291. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleDB.d.ts +0 -482
  292. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleDB.d.ts.map +0 -1
  293. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleDB.js +0 -805
  294. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleTable.d.ts +0 -4636
  295. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleTable.d.ts.map +0 -1
  296. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleTable.js +0 -5614
  297. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/accumulateQuery.d.ts.map +0 -1
  298. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/camelCase.d.ts.map +0 -1
  299. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/capitalize.d.ts.map +0 -1
  300. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/checkVssIndexes.d.ts.map +0 -1
  301. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/cleanCache.d.ts.map +0 -1
  302. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/cleanPath.d.ts.map +0 -1
  303. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/cleanSQL.d.ts.map +0 -1
  304. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/concatenateRowQuery.d.ts.map +0 -1
  305. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/convertForJS.d.ts.map +0 -1
  306. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/createDirectory.d.ts.map +0 -1
  307. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/csvFormat.d.ts.map +0 -1
  308. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/dataToArrays.d.ts.map +0 -1
  309. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/extractTypes.d.ts.map +0 -1
  310. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/findGeoColumn.d.ts.map +0 -1
  311. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/formatDate.d.ts.map +0 -1
  312. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/formatNumber.d.ts.map +0 -1
  313. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getCombinations.d.ts.map +0 -1
  314. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getExtension.d.ts.map +0 -1
  315. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getIdenticalColumns.d.ts.map +0 -1
  316. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getName.d.ts.map +0 -1
  317. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/hasGeometryColumn.d.ts.map +0 -1
  318. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/index.d.ts.map +0 -1
  319. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/keepNumericalColumns.d.ts.map +0 -1
  320. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/logData.d.ts.map +0 -1
  321. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/mergeOptions.d.ts.map +0 -1
  322. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/nestQuery.d.ts.map +0 -1
  323. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/parseDuckDBType.d.ts.map +0 -1
  324. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/parseTypes.d.ts.map +0 -1
  325. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/parseValue.d.ts.map +0 -1
  326. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/prettyDuration.d.ts.map +0 -1
  327. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/printTable.d.ts.map +0 -1
  328. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/queryDB.d.ts.map +0 -1
  329. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/repeatRowsQuery.d.ts.map +0 -1
  330. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/rewind.d.ts.map +0 -1
  331. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/runQuery.d.ts.map +0 -1
  332. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/setDbProps.d.ts.map +0 -1
  333. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/stringToArray.d.ts.map +0 -1
  334. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/stringifyDates.d.ts.map +0 -1
  335. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/stringifyDatesInvert.d.ts.map +0 -1
  336. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/unifyColumns.d.ts.map +0 -1
  337. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/unnestQuery.d.ts.map +0 -1
  338. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/wrapString.d.ts.map +0 -1
  339. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/writeDataAsArrays.d.ts.map +0 -1
  340. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/writeGeoData.d.ts.map +0 -1
  341. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/writeIndexes.d.ts.map +0 -1
  342. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/index.d.ts.map +0 -1
  343. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/aggregateGeoQuery.d.ts.map +0 -1
  344. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/aggregateGeoQuery.js +0 -24
  345. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/binsQuery.d.ts.map +0 -1
  346. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/bm25.d.ts.map +0 -1
  347. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/boundingBoxQuery.d.ts.map +0 -1
  348. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/cache.d.ts.map +0 -1
  349. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/capitalizeQuery.d.ts.map +0 -1
  350. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/cloneColumn.d.ts.map +0 -1
  351. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/cloneQuery.d.ts.map +0 -1
  352. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/concatenateQuery.d.ts.map +0 -1
  353. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/convertQuery.d.ts.map +0 -1
  354. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/correlations.d.ts.map +0 -1
  355. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/correlationsQuery.d.ts.map +0 -1
  356. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/createFtsIndex.d.ts.map +0 -1
  357. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/createVssIndex.d.ts.map +0 -1
  358. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/crossJoinQuery.d.ts.map +0 -1
  359. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/distanceQuery.d.ts.map +0 -1
  360. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fill.d.ts.map +0 -1
  361. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fuzzyClean.d.ts.map +0 -1
  362. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fuzzyJoin.d.ts.map +0 -1
  363. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fuzzyJoinQuery.d.ts.map +0 -1
  364. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getBottom.d.ts.map +0 -1
  365. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getColumns.d.ts.map +0 -1
  366. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getDescription.d.ts.map +0 -1
  367. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getFirstRow.d.ts.map +0 -1
  368. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getGeoData.d.ts.map +0 -1
  369. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getLastRow.d.ts.map +0 -1
  370. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMax.d.ts.map +0 -1
  371. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMean.d.ts.map +0 -1
  372. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMedian.d.ts.map +0 -1
  373. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMin.d.ts.map +0 -1
  374. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getNbCharacters.d.ts.map +0 -1
  375. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getNbRows.d.ts.map +0 -1
  376. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getQuantile.d.ts.map +0 -1
  377. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getSkew.d.ts.map +0 -1
  378. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getStdDev.d.ts.map +0 -1
  379. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getSum.d.ts.map +0 -1
  380. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getTableNames.d.ts.map +0 -1
  381. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getTop.d.ts.map +0 -1
  382. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getTypes.d.ts.map +0 -1
  383. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getUniques.d.ts.map +0 -1
  384. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getValues.d.ts.map +0 -1
  385. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getVar.d.ts.map +0 -1
  386. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/insertRowsQuery.d.ts.map +0 -1
  387. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/join.d.ts.map +0 -1
  388. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/joinGeo.d.ts.map +0 -1
  389. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/joinGeoQuery.d.ts.map +0 -1
  390. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/joinQuery.d.ts.map +0 -1
  391. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/keepQuery.d.ts.map +0 -1
  392. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/linearRegressionQuery.d.ts.map +0 -1
  393. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/linearRegressions.d.ts.map +0 -1
  394. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/loadArray.d.ts.map +0 -1
  395. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/loadDataQuery.d.ts.map +0 -1
  396. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/loadSample.d.ts.map +0 -1
  397. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/lowerQuery.d.ts.map +0 -1
  398. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/normalizeQuery.d.ts.map +0 -1
  399. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/normalizeString.d.ts.map +0 -1
  400. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/outliersIQRQuery.d.ts.map +0 -1
  401. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/padQuery.d.ts.map +0 -1
  402. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/proportionsHorizontalQuery.d.ts.map +0 -1
  403. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/proportionsVerticalQuery.d.ts.map +0 -1
  404. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/quantilesQuery.d.ts.map +0 -1
  405. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/randomPointQuery.d.ts.map +0 -1
  406. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/ranksQuery.d.ts.map +0 -1
  407. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeDuplicatesQuery.d.ts.map +0 -1
  408. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeMissing.d.ts.map +0 -1
  409. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeMissingQuery.d.ts.map +0 -1
  410. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeQuery.d.ts.map +0 -1
  411. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/renameColumnQuery.d.ts.map +0 -1
  412. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/replaceNullsQuery.d.ts.map +0 -1
  413. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/replaceQuery.d.ts.map +0 -1
  414. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/rollingQuery.d.ts.map +0 -1
  415. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/roundQuery.d.ts.map +0 -1
  416. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/selectRowsQuery.d.ts.map +0 -1
  417. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/sortQuery.d.ts.map +0 -1
  418. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/splitSpread.d.ts.map +0 -1
  419. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/summarize.d.ts.map +0 -1
  420. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/summarizeQuery.d.ts.map +0 -1
  421. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/trimQuery.d.ts.map +0 -1
  422. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/truncateQuery.d.ts.map +0 -1
  423. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/upperQuery.d.ts.map +0 -1
  424. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/writeDataQuery.d.ts.map +0 -1
  425. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/writeGeoDataQuery.d.ts.map +0 -1
  426. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/zScoreQuery.d.ts.map +0 -1
  427. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/Simple.d.ts.map +0 -1
  428. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleDB.d.ts +0 -482
  429. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleDB.d.ts.map +0 -1
  430. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleDB.js +0 -811
  431. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleTable.d.ts +0 -4636
  432. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleTable.d.ts.map +0 -1
  433. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/class/SimpleTable.js +0 -5620
  434. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/accumulateQuery.d.ts.map +0 -1
  435. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/camelCase.d.ts.map +0 -1
  436. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/capitalize.d.ts.map +0 -1
  437. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/checkVssIndexes.d.ts.map +0 -1
  438. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/cleanCache.d.ts.map +0 -1
  439. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/cleanPath.d.ts.map +0 -1
  440. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/cleanSQL.d.ts.map +0 -1
  441. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/concatenateRowQuery.d.ts.map +0 -1
  442. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/convertForJS.d.ts.map +0 -1
  443. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/createDirectory.d.ts.map +0 -1
  444. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/csvFormat.d.ts.map +0 -1
  445. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/dataToArrays.d.ts.map +0 -1
  446. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/extractTypes.d.ts.map +0 -1
  447. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/findGeoColumn.d.ts.map +0 -1
  448. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/formatDate.d.ts.map +0 -1
  449. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/formatNumber.d.ts.map +0 -1
  450. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getCombinations.d.ts.map +0 -1
  451. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getExtension.d.ts.map +0 -1
  452. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getIdenticalColumns.d.ts.map +0 -1
  453. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/getName.d.ts.map +0 -1
  454. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/hasGeometryColumn.d.ts.map +0 -1
  455. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/index.d.ts.map +0 -1
  456. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/keepNumericalColumns.d.ts.map +0 -1
  457. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/logData.d.ts.map +0 -1
  458. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/mergeOptions.d.ts.map +0 -1
  459. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/nestQuery.d.ts.map +0 -1
  460. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/parseDuckDBType.d.ts.map +0 -1
  461. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/parseTypes.d.ts.map +0 -1
  462. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/parseValue.d.ts.map +0 -1
  463. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/prettyDuration.d.ts.map +0 -1
  464. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/printTable.d.ts.map +0 -1
  465. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/queryDB.d.ts.map +0 -1
  466. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/repeatRowsQuery.d.ts.map +0 -1
  467. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/rewind.d.ts.map +0 -1
  468. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/runQuery.d.ts.map +0 -1
  469. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/setDbProps.d.ts.map +0 -1
  470. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/stringToArray.d.ts.map +0 -1
  471. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/stringifyDates.d.ts.map +0 -1
  472. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/stringifyDatesInvert.d.ts.map +0 -1
  473. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/unifyColumns.d.ts.map +0 -1
  474. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/unnestQuery.d.ts.map +0 -1
  475. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/wrapString.d.ts.map +0 -1
  476. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/writeDataAsArrays.d.ts.map +0 -1
  477. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/writeGeoData.d.ts.map +0 -1
  478. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/helpers/writeIndexes.d.ts.map +0 -1
  479. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/index.d.ts.map +0 -1
  480. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/aggregateGeoQuery.d.ts.map +0 -1
  481. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/aggregateGeoQuery.js +0 -30
  482. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/binsQuery.d.ts.map +0 -1
  483. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/bm25.d.ts.map +0 -1
  484. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/boundingBoxQuery.d.ts.map +0 -1
  485. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/cache.d.ts.map +0 -1
  486. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/capitalizeQuery.d.ts.map +0 -1
  487. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/cloneColumn.d.ts.map +0 -1
  488. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/cloneQuery.d.ts.map +0 -1
  489. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/concatenateQuery.d.ts.map +0 -1
  490. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/convertQuery.d.ts.map +0 -1
  491. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/correlations.d.ts.map +0 -1
  492. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/correlationsQuery.d.ts.map +0 -1
  493. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/createFtsIndex.d.ts.map +0 -1
  494. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/createVssIndex.d.ts.map +0 -1
  495. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/crossJoinQuery.d.ts.map +0 -1
  496. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/distanceQuery.d.ts.map +0 -1
  497. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fill.d.ts.map +0 -1
  498. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fuzzyClean.d.ts.map +0 -1
  499. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fuzzyJoin.d.ts.map +0 -1
  500. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/fuzzyJoinQuery.d.ts.map +0 -1
  501. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getBottom.d.ts.map +0 -1
  502. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getColumns.d.ts.map +0 -1
  503. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getDescription.d.ts.map +0 -1
  504. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getFirstRow.d.ts.map +0 -1
  505. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getGeoData.d.ts.map +0 -1
  506. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getLastRow.d.ts.map +0 -1
  507. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMax.d.ts.map +0 -1
  508. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMean.d.ts.map +0 -1
  509. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMedian.d.ts.map +0 -1
  510. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getMin.d.ts.map +0 -1
  511. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getNbCharacters.d.ts.map +0 -1
  512. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getNbRows.d.ts.map +0 -1
  513. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getQuantile.d.ts.map +0 -1
  514. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getSkew.d.ts.map +0 -1
  515. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getStdDev.d.ts.map +0 -1
  516. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getSum.d.ts.map +0 -1
  517. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getTableNames.d.ts.map +0 -1
  518. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getTop.d.ts.map +0 -1
  519. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getTypes.d.ts.map +0 -1
  520. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getUniques.d.ts.map +0 -1
  521. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getValues.d.ts.map +0 -1
  522. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/getVar.d.ts.map +0 -1
  523. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/insertRowsQuery.d.ts.map +0 -1
  524. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/join.d.ts.map +0 -1
  525. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/joinGeo.d.ts.map +0 -1
  526. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/joinGeoQuery.d.ts.map +0 -1
  527. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/joinQuery.d.ts.map +0 -1
  528. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/keepQuery.d.ts.map +0 -1
  529. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/linearRegressionQuery.d.ts.map +0 -1
  530. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/linearRegressions.d.ts.map +0 -1
  531. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/loadArray.d.ts.map +0 -1
  532. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/loadDataQuery.d.ts.map +0 -1
  533. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/loadSample.d.ts.map +0 -1
  534. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/lowerQuery.d.ts.map +0 -1
  535. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/normalizeQuery.d.ts.map +0 -1
  536. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/normalizeString.d.ts.map +0 -1
  537. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/outliersIQRQuery.d.ts.map +0 -1
  538. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/padQuery.d.ts.map +0 -1
  539. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/proportionsHorizontalQuery.d.ts.map +0 -1
  540. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/proportionsVerticalQuery.d.ts.map +0 -1
  541. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/quantilesQuery.d.ts.map +0 -1
  542. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/randomPointQuery.d.ts.map +0 -1
  543. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/ranksQuery.d.ts.map +0 -1
  544. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeDuplicatesQuery.d.ts.map +0 -1
  545. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeMissing.d.ts.map +0 -1
  546. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeMissingQuery.d.ts.map +0 -1
  547. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/removeQuery.d.ts.map +0 -1
  548. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/renameColumnQuery.d.ts.map +0 -1
  549. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/replaceNullsQuery.d.ts.map +0 -1
  550. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/replaceQuery.d.ts.map +0 -1
  551. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/rollingQuery.d.ts.map +0 -1
  552. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/roundQuery.d.ts.map +0 -1
  553. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/selectRowsQuery.d.ts.map +0 -1
  554. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/sortQuery.d.ts.map +0 -1
  555. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/splitSpread.d.ts.map +0 -1
  556. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/summarize.d.ts.map +0 -1
  557. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/summarizeQuery.d.ts.map +0 -1
  558. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/trimQuery.d.ts.map +0 -1
  559. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/truncateQuery.d.ts.map +0 -1
  560. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/upperQuery.d.ts.map +0 -1
  561. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/writeDataQuery.d.ts.map +0 -1
  562. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/writeGeoDataQuery.d.ts.map +0 -1
  563. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.5/src/methods/zScoreQuery.d.ts.map +0 -1
  564. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/class/Simple.d.ts +0 -0
  565. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/class/Simple.js +0 -0
  566. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/accumulateQuery.d.ts +0 -0
  567. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/accumulateQuery.js +0 -0
  568. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/camelCase.d.ts +0 -0
  569. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/camelCase.js +0 -0
  570. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/capitalize.d.ts +0 -0
  571. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/capitalize.js +0 -0
  572. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/checkVssIndexes.d.ts +0 -0
  573. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/checkVssIndexes.js +0 -0
  574. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanCache.d.ts +0 -0
  575. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanCache.js +0 -0
  576. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanPath.d.ts +0 -0
  577. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanPath.js +0 -0
  578. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanSQL.d.ts +0 -0
  579. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanSQL.js +0 -0
  580. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/concatenateRowQuery.d.ts +0 -0
  581. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/concatenateRowQuery.js +0 -0
  582. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/convertForJS.d.ts +0 -0
  583. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/convertForJS.js +0 -0
  584. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/createDirectory.d.ts +0 -0
  585. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/createDirectory.js +0 -0
  586. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/csvFormat.d.ts +0 -0
  587. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/csvFormat.js +0 -0
  588. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/dataToArrays.d.ts +0 -0
  589. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/dataToArrays.js +0 -0
  590. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/extractTypes.d.ts +0 -0
  591. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/extractTypes.js +0 -0
  592. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/findGeoColumn.d.ts +0 -0
  593. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/findGeoColumn.js +0 -0
  594. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatDate.d.ts +0 -0
  595. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatDate.js +0 -0
  596. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatNumber.d.ts +0 -0
  597. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatNumber.js +0 -0
  598. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getCombinations.d.ts +0 -0
  599. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getCombinations.js +0 -0
  600. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getExtension.d.ts +0 -0
  601. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getExtension.js +0 -0
  602. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getIdenticalColumns.d.ts +0 -0
  603. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getIdenticalColumns.js +0 -0
  604. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getName.d.ts +0 -0
  605. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getName.js +0 -0
  606. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/hasGeometryColumn.d.ts +0 -0
  607. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/hasGeometryColumn.js +0 -0
  608. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/index.d.ts +0 -0
  609. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/index.js +0 -0
  610. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/keepNumericalColumns.d.ts +0 -0
  611. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/keepNumericalColumns.js +0 -0
  612. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/logData.d.ts +0 -0
  613. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/logData.js +0 -0
  614. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/mergeOptions.d.ts +0 -0
  615. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/mergeOptions.js +0 -0
  616. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/nestQuery.d.ts +0 -0
  617. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/nestQuery.js +0 -0
  618. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseDuckDBType.d.ts +0 -0
  619. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseDuckDBType.js +0 -0
  620. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseTypes.d.ts +0 -0
  621. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseTypes.js +0 -0
  622. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseValue.d.ts +0 -0
  623. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseValue.js +0 -0
  624. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/prettyDuration.d.ts +0 -0
  625. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/prettyDuration.js +0 -0
  626. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/printTable.d.ts +0 -0
  627. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/printTable.js +0 -0
  628. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/queryDB.d.ts +0 -0
  629. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/queryDB.js +0 -0
  630. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/repeatRowsQuery.d.ts +0 -0
  631. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/repeatRowsQuery.js +0 -0
  632. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/rewind.d.ts +0 -0
  633. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/rewind.js +0 -0
  634. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/runQuery.d.ts +0 -0
  635. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/runQuery.js +0 -0
  636. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/setDbProps.d.ts +0 -0
  637. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/setDbProps.js +0 -0
  638. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringToArray.d.ts +0 -0
  639. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringToArray.js +0 -0
  640. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDates.d.ts +0 -0
  641. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDates.js +0 -0
  642. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDatesInvert.d.ts +0 -0
  643. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDatesInvert.js +0 -0
  644. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unifyColumns.d.ts +0 -0
  645. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unifyColumns.js +0 -0
  646. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unnestQuery.d.ts +0 -0
  647. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unnestQuery.js +0 -0
  648. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/wrapString.d.ts +0 -0
  649. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/wrapString.js +0 -0
  650. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeDataAsArrays.d.ts +0 -0
  651. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeDataAsArrays.js +0 -0
  652. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeGeoData.d.ts +0 -0
  653. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeGeoData.js +0 -0
  654. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeIndexes.d.ts +0 -0
  655. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeIndexes.js +0 -0
  656. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/index.d.ts +0 -0
  657. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/index.js +0 -0
  658. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/aggregateGeoQuery.d.ts +0 -0
  659. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/binsQuery.d.ts +0 -0
  660. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/binsQuery.js +0 -0
  661. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/bm25.d.ts +0 -0
  662. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/bm25.js +0 -0
  663. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/boundingBoxQuery.d.ts +0 -0
  664. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/boundingBoxQuery.js +0 -0
  665. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cache.d.ts +0 -0
  666. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cache.js +0 -0
  667. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/capitalizeQuery.d.ts +0 -0
  668. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/capitalizeQuery.js +0 -0
  669. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneColumn.d.ts +0 -0
  670. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneColumn.js +0 -0
  671. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneQuery.d.ts +0 -0
  672. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneQuery.js +0 -0
  673. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/concatenateQuery.d.ts +0 -0
  674. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/concatenateQuery.js +0 -0
  675. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/convertQuery.d.ts +0 -0
  676. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/convertQuery.js +0 -0
  677. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlations.d.ts +0 -0
  678. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlations.js +0 -0
  679. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlationsQuery.d.ts +0 -0
  680. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlationsQuery.js +0 -0
  681. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createFtsIndex.d.ts +0 -0
  682. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createFtsIndex.js +0 -0
  683. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createVssIndex.d.ts +0 -0
  684. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createVssIndex.js +0 -0
  685. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/crossJoinQuery.d.ts +0 -0
  686. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/crossJoinQuery.js +0 -0
  687. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/distanceQuery.d.ts +0 -0
  688. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/distanceQuery.js +0 -0
  689. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fill.d.ts +0 -0
  690. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fill.js +0 -0
  691. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyClean.d.ts +0 -0
  692. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyClean.js +0 -0
  693. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoin.d.ts +0 -0
  694. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoin.js +0 -0
  695. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoinQuery.d.ts +0 -0
  696. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoinQuery.js +0 -0
  697. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getBottom.d.ts +0 -0
  698. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getBottom.js +0 -0
  699. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getColumns.d.ts +0 -0
  700. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getColumns.js +0 -0
  701. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getDescription.d.ts +0 -0
  702. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getDescription.js +0 -0
  703. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getFirstRow.d.ts +0 -0
  704. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getFirstRow.js +0 -0
  705. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getGeoData.d.ts +0 -0
  706. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getGeoData.js +0 -0
  707. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getLastRow.d.ts +0 -0
  708. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getLastRow.js +0 -0
  709. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMax.d.ts +0 -0
  710. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMax.js +0 -0
  711. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMean.d.ts +0 -0
  712. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMean.js +0 -0
  713. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMedian.d.ts +0 -0
  714. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMedian.js +0 -0
  715. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMin.d.ts +0 -0
  716. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMin.js +0 -0
  717. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbCharacters.d.ts +0 -0
  718. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbCharacters.js +0 -0
  719. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbRows.d.ts +0 -0
  720. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbRows.js +0 -0
  721. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getQuantile.d.ts +0 -0
  722. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getQuantile.js +0 -0
  723. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSkew.d.ts +0 -0
  724. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSkew.js +0 -0
  725. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getStdDev.d.ts +0 -0
  726. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getStdDev.js +0 -0
  727. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSum.d.ts +0 -0
  728. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSum.js +0 -0
  729. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTableNames.d.ts +0 -0
  730. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTableNames.js +0 -0
  731. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTop.d.ts +0 -0
  732. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTop.js +0 -0
  733. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTypes.d.ts +0 -0
  734. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTypes.js +0 -0
  735. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getUniques.d.ts +0 -0
  736. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getUniques.js +0 -0
  737. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getValues.d.ts +0 -0
  738. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getValues.js +0 -0
  739. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getVar.d.ts +0 -0
  740. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getVar.js +0 -0
  741. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/insertRowsQuery.d.ts +0 -0
  742. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/insertRowsQuery.js +0 -0
  743. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/join.d.ts +0 -0
  744. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/join.js +0 -0
  745. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeo.d.ts +0 -0
  746. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeo.js +0 -0
  747. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeoQuery.d.ts +0 -0
  748. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeoQuery.js +0 -0
  749. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinQuery.d.ts +0 -0
  750. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinQuery.js +0 -0
  751. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/keepQuery.d.ts +0 -0
  752. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/keepQuery.js +0 -0
  753. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressionQuery.d.ts +0 -0
  754. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressionQuery.js +0 -0
  755. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressions.d.ts +0 -0
  756. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressions.js +0 -0
  757. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadArray.d.ts +0 -0
  758. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadArray.js +0 -0
  759. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadDataQuery.d.ts +0 -0
  760. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadDataQuery.js +0 -0
  761. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadSample.d.ts +0 -0
  762. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadSample.js +0 -0
  763. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/lowerQuery.d.ts +0 -0
  764. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/lowerQuery.js +0 -0
  765. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeQuery.d.ts +0 -0
  766. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeQuery.js +0 -0
  767. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeString.d.ts +0 -0
  768. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeString.js +0 -0
  769. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/outliersIQRQuery.d.ts +0 -0
  770. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/outliersIQRQuery.js +0 -0
  771. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/padQuery.d.ts +0 -0
  772. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/padQuery.js +0 -0
  773. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsHorizontalQuery.d.ts +0 -0
  774. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsHorizontalQuery.js +0 -0
  775. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsVerticalQuery.d.ts +0 -0
  776. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsVerticalQuery.js +0 -0
  777. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/quantilesQuery.d.ts +0 -0
  778. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/quantilesQuery.js +0 -0
  779. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/randomPointQuery.d.ts +0 -0
  780. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/randomPointQuery.js +0 -0
  781. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/ranksQuery.d.ts +0 -0
  782. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/ranksQuery.js +0 -0
  783. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeDuplicatesQuery.d.ts +0 -0
  784. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeDuplicatesQuery.js +0 -0
  785. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissing.d.ts +0 -0
  786. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissing.js +0 -0
  787. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissingQuery.d.ts +0 -0
  788. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissingQuery.js +0 -0
  789. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeQuery.d.ts +0 -0
  790. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeQuery.js +0 -0
  791. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/renameColumnQuery.d.ts +0 -0
  792. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/renameColumnQuery.js +0 -0
  793. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceNullsQuery.d.ts +0 -0
  794. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceNullsQuery.js +0 -0
  795. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceQuery.d.ts +0 -0
  796. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceQuery.js +0 -0
  797. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/rollingQuery.d.ts +0 -0
  798. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/rollingQuery.js +0 -0
  799. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/roundQuery.d.ts +0 -0
  800. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/roundQuery.js +0 -0
  801. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/selectRowsQuery.d.ts +0 -0
  802. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/selectRowsQuery.js +0 -0
  803. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/sortQuery.d.ts +0 -0
  804. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/sortQuery.js +0 -0
  805. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/splitSpread.d.ts +0 -0
  806. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/splitSpread.js +0 -0
  807. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarize.d.ts +0 -0
  808. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarize.js +0 -0
  809. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarizeQuery.d.ts +0 -0
  810. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarizeQuery.js +0 -0
  811. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/trimQuery.d.ts +0 -0
  812. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/trimQuery.js +0 -0
  813. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/truncateQuery.d.ts +0 -0
  814. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/truncateQuery.js +0 -0
  815. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/upperQuery.d.ts +0 -0
  816. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/upperQuery.js +0 -0
  817. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeDataQuery.d.ts +0 -0
  818. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeDataQuery.js +0 -0
  819. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeGeoDataQuery.d.ts +0 -0
  820. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeGeoDataQuery.js +0 -0
  821. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/zScoreQuery.d.ts +0 -0
  822. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/zScoreQuery.js +0 -0
  823. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/class/Simple.d.ts +0 -0
  824. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/class/Simple.js +0 -0
  825. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/accumulateQuery.d.ts +0 -0
  826. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/accumulateQuery.js +0 -0
  827. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/camelCase.d.ts +0 -0
  828. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/camelCase.js +0 -0
  829. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/capitalize.d.ts +0 -0
  830. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/capitalize.js +0 -0
  831. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/checkVssIndexes.d.ts +0 -0
  832. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/checkVssIndexes.js +0 -0
  833. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanCache.d.ts +0 -0
  834. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanCache.js +0 -0
  835. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanPath.d.ts +0 -0
  836. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanPath.js +0 -0
  837. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanSQL.d.ts +0 -0
  838. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/cleanSQL.js +0 -0
  839. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/concatenateRowQuery.d.ts +0 -0
  840. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/concatenateRowQuery.js +0 -0
  841. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/convertForJS.d.ts +0 -0
  842. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/convertForJS.js +0 -0
  843. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/createDirectory.d.ts +0 -0
  844. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/createDirectory.js +0 -0
  845. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/csvFormat.d.ts +0 -0
  846. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/csvFormat.js +0 -0
  847. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/dataToArrays.d.ts +0 -0
  848. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/dataToArrays.js +0 -0
  849. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/extractTypes.d.ts +0 -0
  850. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/extractTypes.js +0 -0
  851. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/findGeoColumn.d.ts +0 -0
  852. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/findGeoColumn.js +0 -0
  853. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatDate.d.ts +0 -0
  854. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatDate.js +0 -0
  855. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatNumber.d.ts +0 -0
  856. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/formatNumber.js +0 -0
  857. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getCombinations.d.ts +0 -0
  858. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getCombinations.js +0 -0
  859. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getExtension.d.ts +0 -0
  860. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getExtension.js +0 -0
  861. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getIdenticalColumns.d.ts +0 -0
  862. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getIdenticalColumns.js +0 -0
  863. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getName.d.ts +0 -0
  864. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/getName.js +0 -0
  865. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/hasGeometryColumn.d.ts +0 -0
  866. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/hasGeometryColumn.js +0 -0
  867. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/index.d.ts +0 -0
  868. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/index.js +0 -0
  869. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/keepNumericalColumns.d.ts +0 -0
  870. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/keepNumericalColumns.js +0 -0
  871. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/logData.d.ts +0 -0
  872. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/logData.js +0 -0
  873. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/mergeOptions.d.ts +0 -0
  874. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/mergeOptions.js +0 -0
  875. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/nestQuery.d.ts +0 -0
  876. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/nestQuery.js +0 -0
  877. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseDuckDBType.d.ts +0 -0
  878. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseDuckDBType.js +0 -0
  879. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseTypes.d.ts +0 -0
  880. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseTypes.js +0 -0
  881. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseValue.d.ts +0 -0
  882. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/parseValue.js +0 -0
  883. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/prettyDuration.d.ts +0 -0
  884. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/prettyDuration.js +0 -0
  885. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/printTable.d.ts +0 -0
  886. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/printTable.js +0 -0
  887. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/queryDB.d.ts +0 -0
  888. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/queryDB.js +0 -0
  889. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/repeatRowsQuery.d.ts +0 -0
  890. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/repeatRowsQuery.js +0 -0
  891. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/rewind.d.ts +0 -0
  892. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/rewind.js +0 -0
  893. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/runQuery.d.ts +0 -0
  894. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/runQuery.js +0 -0
  895. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/setDbProps.d.ts +0 -0
  896. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/setDbProps.js +0 -0
  897. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringToArray.d.ts +0 -0
  898. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringToArray.js +0 -0
  899. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDates.d.ts +0 -0
  900. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDates.js +0 -0
  901. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDatesInvert.d.ts +0 -0
  902. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/stringifyDatesInvert.js +0 -0
  903. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unifyColumns.d.ts +0 -0
  904. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unifyColumns.js +0 -0
  905. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unnestQuery.d.ts +0 -0
  906. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/unnestQuery.js +0 -0
  907. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/wrapString.d.ts +0 -0
  908. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/wrapString.js +0 -0
  909. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeDataAsArrays.d.ts +0 -0
  910. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeDataAsArrays.js +0 -0
  911. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeGeoData.d.ts +0 -0
  912. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeGeoData.js +0 -0
  913. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeIndexes.d.ts +0 -0
  914. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/helpers/writeIndexes.js +0 -0
  915. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/index.d.ts +0 -0
  916. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/index.js +0 -0
  917. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/aggregateGeoQuery.d.ts +0 -0
  918. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/binsQuery.d.ts +0 -0
  919. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/binsQuery.js +0 -0
  920. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/bm25.d.ts +0 -0
  921. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/bm25.js +0 -0
  922. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/boundingBoxQuery.d.ts +0 -0
  923. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/boundingBoxQuery.js +0 -0
  924. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cache.d.ts +0 -0
  925. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cache.js +0 -0
  926. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/capitalizeQuery.d.ts +0 -0
  927. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/capitalizeQuery.js +0 -0
  928. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneColumn.d.ts +0 -0
  929. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneColumn.js +0 -0
  930. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneQuery.d.ts +0 -0
  931. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/cloneQuery.js +0 -0
  932. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/concatenateQuery.d.ts +0 -0
  933. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/concatenateQuery.js +0 -0
  934. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/convertQuery.d.ts +0 -0
  935. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/convertQuery.js +0 -0
  936. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlations.d.ts +0 -0
  937. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlations.js +0 -0
  938. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlationsQuery.d.ts +0 -0
  939. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/correlationsQuery.js +0 -0
  940. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createFtsIndex.d.ts +0 -0
  941. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createFtsIndex.js +0 -0
  942. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createVssIndex.d.ts +0 -0
  943. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/createVssIndex.js +0 -0
  944. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/crossJoinQuery.d.ts +0 -0
  945. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/crossJoinQuery.js +0 -0
  946. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/distanceQuery.d.ts +0 -0
  947. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/distanceQuery.js +0 -0
  948. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fill.d.ts +0 -0
  949. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fill.js +0 -0
  950. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyClean.d.ts +0 -0
  951. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyClean.js +0 -0
  952. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoin.d.ts +0 -0
  953. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoin.js +0 -0
  954. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoinQuery.d.ts +0 -0
  955. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/fuzzyJoinQuery.js +0 -0
  956. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getBottom.d.ts +0 -0
  957. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getBottom.js +0 -0
  958. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getColumns.d.ts +0 -0
  959. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getColumns.js +0 -0
  960. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getDescription.d.ts +0 -0
  961. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getDescription.js +0 -0
  962. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getFirstRow.d.ts +0 -0
  963. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getFirstRow.js +0 -0
  964. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getGeoData.d.ts +0 -0
  965. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getGeoData.js +0 -0
  966. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getLastRow.d.ts +0 -0
  967. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getLastRow.js +0 -0
  968. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMax.d.ts +0 -0
  969. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMax.js +0 -0
  970. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMean.d.ts +0 -0
  971. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMean.js +0 -0
  972. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMedian.d.ts +0 -0
  973. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMedian.js +0 -0
  974. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMin.d.ts +0 -0
  975. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getMin.js +0 -0
  976. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbCharacters.d.ts +0 -0
  977. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbCharacters.js +0 -0
  978. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbRows.d.ts +0 -0
  979. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getNbRows.js +0 -0
  980. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getQuantile.d.ts +0 -0
  981. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getQuantile.js +0 -0
  982. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSkew.d.ts +0 -0
  983. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSkew.js +0 -0
  984. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getStdDev.d.ts +0 -0
  985. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getStdDev.js +0 -0
  986. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSum.d.ts +0 -0
  987. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getSum.js +0 -0
  988. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTableNames.d.ts +0 -0
  989. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTableNames.js +0 -0
  990. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTop.d.ts +0 -0
  991. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTop.js +0 -0
  992. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTypes.d.ts +0 -0
  993. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getTypes.js +0 -0
  994. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getUniques.d.ts +0 -0
  995. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getUniques.js +0 -0
  996. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getValues.d.ts +0 -0
  997. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getValues.js +0 -0
  998. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getVar.d.ts +0 -0
  999. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/getVar.js +0 -0
  1000. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/insertRowsQuery.d.ts +0 -0
  1001. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/insertRowsQuery.js +0 -0
  1002. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/join.d.ts +0 -0
  1003. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/join.js +0 -0
  1004. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeo.d.ts +0 -0
  1005. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeo.js +0 -0
  1006. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeoQuery.d.ts +0 -0
  1007. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinGeoQuery.js +0 -0
  1008. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinQuery.d.ts +0 -0
  1009. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/joinQuery.js +0 -0
  1010. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/keepQuery.d.ts +0 -0
  1011. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/keepQuery.js +0 -0
  1012. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressionQuery.d.ts +0 -0
  1013. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressionQuery.js +0 -0
  1014. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressions.d.ts +0 -0
  1015. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/linearRegressions.js +0 -0
  1016. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadArray.d.ts +0 -0
  1017. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadArray.js +0 -0
  1018. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadDataQuery.d.ts +0 -0
  1019. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadDataQuery.js +0 -0
  1020. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadSample.d.ts +0 -0
  1021. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/loadSample.js +0 -0
  1022. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/lowerQuery.d.ts +0 -0
  1023. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/lowerQuery.js +0 -0
  1024. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeQuery.d.ts +0 -0
  1025. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeQuery.js +0 -0
  1026. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeString.d.ts +0 -0
  1027. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/normalizeString.js +0 -0
  1028. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/outliersIQRQuery.d.ts +0 -0
  1029. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/outliersIQRQuery.js +0 -0
  1030. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/padQuery.d.ts +0 -0
  1031. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/padQuery.js +0 -0
  1032. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsHorizontalQuery.d.ts +0 -0
  1033. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsHorizontalQuery.js +0 -0
  1034. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsVerticalQuery.d.ts +0 -0
  1035. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/proportionsVerticalQuery.js +0 -0
  1036. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/quantilesQuery.d.ts +0 -0
  1037. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/quantilesQuery.js +0 -0
  1038. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/randomPointQuery.d.ts +0 -0
  1039. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/randomPointQuery.js +0 -0
  1040. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/ranksQuery.d.ts +0 -0
  1041. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/ranksQuery.js +0 -0
  1042. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeDuplicatesQuery.d.ts +0 -0
  1043. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeDuplicatesQuery.js +0 -0
  1044. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissing.d.ts +0 -0
  1045. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissing.js +0 -0
  1046. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissingQuery.d.ts +0 -0
  1047. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeMissingQuery.js +0 -0
  1048. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeQuery.d.ts +0 -0
  1049. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/removeQuery.js +0 -0
  1050. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/renameColumnQuery.d.ts +0 -0
  1051. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/renameColumnQuery.js +0 -0
  1052. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceNullsQuery.d.ts +0 -0
  1053. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceNullsQuery.js +0 -0
  1054. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceQuery.d.ts +0 -0
  1055. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/replaceQuery.js +0 -0
  1056. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/rollingQuery.d.ts +0 -0
  1057. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/rollingQuery.js +0 -0
  1058. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/roundQuery.d.ts +0 -0
  1059. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/roundQuery.js +0 -0
  1060. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/selectRowsQuery.d.ts +0 -0
  1061. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/selectRowsQuery.js +0 -0
  1062. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/sortQuery.d.ts +0 -0
  1063. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/sortQuery.js +0 -0
  1064. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/splitSpread.d.ts +0 -0
  1065. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/splitSpread.js +0 -0
  1066. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarize.d.ts +0 -0
  1067. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarize.js +0 -0
  1068. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarizeQuery.d.ts +0 -0
  1069. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/summarizeQuery.js +0 -0
  1070. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/trimQuery.d.ts +0 -0
  1071. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/trimQuery.js +0 -0
  1072. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/truncateQuery.d.ts +0 -0
  1073. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/truncateQuery.js +0 -0
  1074. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/upperQuery.d.ts +0 -0
  1075. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/upperQuery.js +0 -0
  1076. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeDataQuery.d.ts +0 -0
  1077. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeDataQuery.js +0 -0
  1078. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeGeoDataQuery.d.ts +0 -0
  1079. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/writeGeoDataQuery.js +0 -0
  1080. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/zScoreQuery.d.ts +0 -0
  1081. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.1.5 → 1.0.1}/src/methods/zScoreQuery.js +0 -0
@@ -0,0 +1,4648 @@
1
+ import type SimpleDB from "./SimpleDB.js";
2
+ import Simple from "./Simple.js";
3
+ /**
4
+ * IMPORTANT: When extending this class, always use `this.sdb.newTable()` to
5
+ * create new tables instead of `new SimpleTable(...)` directly. This ensures
6
+ * subclasses that override `tableClass` on their parent `SimpleDB` get their
7
+ * own table type back.
8
+ *
9
+ * Represents a table within a SimpleDB database, capable of handling tabular, geospatial, and vector data.
10
+ * SimpleTable instances are typically created via a SimpleDB instance.
11
+ *
12
+ * @category Main
13
+ * @example
14
+ * ```ts
15
+ * // Create a SimpleDB instance (in-memory by default)
16
+ * const sdb = new SimpleDB();
17
+ *
18
+ * // Create a new table named "employees" within the database
19
+ * const employees = sdb.newTable("employees");
20
+ *
21
+ * // Load data from a CSV file into the "employees" table
22
+ * await employees.loadData("./employees.csv");
23
+ *
24
+ * // Log the first few rows of the "employees" table to the console
25
+ * await employees.logTable();
26
+ *
27
+ * // Close the database connection and free up resources
28
+ * await sdb.done();
29
+ * ```
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * // Handling geospatial data
34
+ * // Create a SimpleDB instance
35
+ * const sdb = new SimpleDB();
36
+ *
37
+ * // Create a new table for geospatial data
38
+ * const boundaries = sdb.newTable("boundaries");
39
+ *
40
+ * // Load geospatial data from a GeoJSON file
41
+ * await boundaries.loadGeoData("./boundaries.geojson");
42
+ *
43
+ * // Close the database connection
44
+ * await sdb.done();
45
+ * ```
46
+ */
47
+ export default class SimpleTable extends Simple {
48
+ /**
49
+ * Name of the table in the database.
50
+ *
51
+ * @category Properties
52
+ */
53
+ name: string;
54
+ /**
55
+ * The indexes of the table, if any.
56
+ *
57
+ * @defaultValue `[]`
58
+ * @category Properties
59
+ */
60
+ indexes: string[];
61
+ /**
62
+ * The SimpleDB instance that created this table.
63
+ *
64
+ * @category Properties
65
+ */
66
+ sdb: SimpleDB;
67
+ /**
68
+ * Creates an instance of SimpleTable.
69
+ *
70
+ * @param name - The name of the table.
71
+ * @param simpleDB - The SimpleDB instance that this table belongs to.
72
+ * @param options - An optional object with configuration options:
73
+ * @param options.debug - A boolean indicating whether to enable debug mode.
74
+ * @param options.nbRowsToLog - The number of rows to log when displaying table data.
75
+ * @param options.nbCharactersToLog - The maximum number of characters to log for strings. Useful to avoid logging large text content.
76
+ * @param options.types - A boolean indicating whether to include data types when logging a table.
77
+ * @category Constructor
78
+ */
79
+ constructor(name: string, simpleDB: SimpleDB, options?: {
80
+ debug?: boolean;
81
+ nbRowsToLog?: number;
82
+ nbCharactersToLog?: number;
83
+ types?: boolean;
84
+ });
85
+ /**
86
+ * Renames the current table.
87
+ *
88
+ * @param name - The new name for the table.
89
+ * @returns A promise that resolves when the table has been renamed.
90
+ * @category Table Management
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * // Rename the table to "new_employees"
95
+ * await table.renameTable("new_employees");
96
+ * ```
97
+ */
98
+ renameTable(name: string): Promise<void>;
99
+ /**
100
+ * Sets the data types for columns in a new table. If the table already exists, it will be replaced.
101
+ * To convert the types of an existing table, use the `.convert()` method instead.
102
+ *
103
+ * @param types - An object specifying the column names and their target data types (JavaScript or SQL types).
104
+ * @returns A promise that resolves when the types have been set.
105
+ * @category Table Management
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * // Set types for a new table
110
+ * await table.setTypes({
111
+ * name: "string",
112
+ * salary: "integer",
113
+ * raise: "float",
114
+ * });
115
+ * ```
116
+ */
117
+ setTypes(types: {
118
+ [key: string]: "integer" | "float" | "number" | "string" | "date" | "time" | "datetime" | "datetimeTz" | "bigint" | "double" | "varchar" | "timestamp" | "timestamp with time zone" | "boolean" | `geometry('${string}')` | `GEOMETRY('${string}')`;
119
+ }): Promise<void>;
120
+ /**
121
+ * Loads an array of JavaScript objects into the table.
122
+ *
123
+ * @param arrayOfObjects - An array of objects, where each object represents a row and its properties represent columns.
124
+ * @returns A promise that resolves to the SimpleTable instance after the data has been loaded.
125
+ * @category Importing Data
126
+ *
127
+ * @example
128
+ * ```ts
129
+ * // Load data from an array of objects
130
+ * const data = [
131
+ * { letter: "a", number: 1 },
132
+ * { letter: "b", number: 2 }
133
+ * ];
134
+ * await table.loadArray(data);
135
+ * ```
136
+ */
137
+ loadArray(arrayOfObjects: {
138
+ [key: string]: unknown;
139
+ }[]): Promise<this>;
140
+ /**
141
+ * Loads data from one or more local or remote files into the table.
142
+ * Supported file formats include CSV, JSON, Parquet, and Excel.
143
+ *
144
+ * @param files - The path(s) or URL(s) of the file(s) containing the data to be loaded.
145
+ * @param options - An optional object with configuration options:
146
+ * @param options.fileType - The type of file to load ("csv", "dsv", "json", "parquet", "excel"). Defaults to being inferred from the file extension.
147
+ * @param options.autoDetect - A boolean indicating whether to automatically detect the data format. Defaults to `true`.
148
+ * @param options.limit - A number indicating the maximum number of rows to load. Defaults to all rows.
149
+ * @param options.fileName - A boolean indicating whether to include the file name as a new column in the loaded data. Defaults to `false`.
150
+ * @param options.unifyColumns - A boolean indicating whether to unify columns across multiple files when their structures differ. Missing columns will be filled with `NULL` values. Defaults to `false`.
151
+ * @param options.columnTypes - An object mapping column names to their expected data types. By default, types are inferred.
152
+ * @param options.columns - An array of column names to load. When provided, only the specified columns are loaded, reducing memory usage and improving load times. Not supported for Excel files — combining `columns` with Excel files throws an error. If an invalid column name is provided, DuckDB will throw its native error. An empty array behaves the same as omitting the option (loads all columns). Defaults to loading all columns.
153
+ * @param options.header - A boolean indicating whether the file has a header row. Applicable to CSV files. Defaults to `true`.
154
+ * @param options.allText - A boolean indicating whether all columns should be treated as text. Applicable to CSV files. Defaults to `false`.
155
+ * @param options.delim - The delimiter used in the file. Applicable to CSV and DSV files. By default, the delimiter is inferred.
156
+ * @param options.skip - The number of lines to skip at the beginning of the file. Applicable to CSV files. Defaults to `0`.
157
+ * @param options.nullPadding - If `true`, when a row has fewer columns than expected, the remaining columns on the right will be padded with `NULL` values. Defaults to `false`.
158
+ * @param options.ignoreErrors - If `true`, parsing errors encountered will be ignored, and rows with errors will be skipped. Defaults to `false`.
159
+ * @param options.compression - The compression type of the file. Applicable to CSV files. Defaults to `none`.
160
+ * @param options.strict - If `true`, an error will be thrown when encountering any issues. If `false`, structurally incorrect files will be parsed tentatively. Defaults to `true`.
161
+ * @param options.encoding - The encoding of the file. Applicable to CSV files. Defaults to `utf-8`.
162
+ * @param options.jsonFormat - The format of JSON files ("unstructured", "newlineDelimited", "array"). By default, the format is inferred.
163
+ * @param options.records - A boolean indicating whether each line in a newline-delimited JSON file represents a record. Applicable to JSON files. By default, it's inferred.
164
+ * @param options.sheet - A string indicating a specific sheet to import from an Excel file. By default, the first sheet is imported.
165
+ * @returns A promise that resolves to the SimpleTable instance after the data has been loaded.
166
+ * @category Importing Data
167
+ *
168
+ * @example
169
+ * ```ts
170
+ * // Load data from a single local CSV file
171
+ * await table.loadData("./some-data.csv");
172
+ * ```
173
+ *
174
+ * @example
175
+ * ```ts
176
+ * // Load data from a remote Parquet file
177
+ * await table.loadData("https://some-website.com/some-data.parquet");
178
+ * ```
179
+ *
180
+ * @example
181
+ * ```ts
182
+ * // Load data from multiple local JSON files
183
+ * await table.loadData([
184
+ * "./some-data1.json",
185
+ * "./some-data2.json",
186
+ * "./some-data3.json"
187
+ * ]);
188
+ * ```
189
+ *
190
+ * @example
191
+ * ```ts
192
+ * // Load data from multiple remote Parquet files with column unification
193
+ * await table.loadData([
194
+ * "https://some-website.com/some-data1.parquet",
195
+ * "https://some-website.com/some-data2.parquet",
196
+ * "https://some-website.com/some-data3.parquet"
197
+ * ], { unifyColumns: true });
198
+ * ```
199
+ *
200
+ * @example
201
+ * ```ts
202
+ * // Load only specific columns from a CSV file
203
+ * await table.loadData("./employees.csv", { columns: ["name", "salary"] });
204
+ * ```
205
+ */
206
+ loadData(files: string | string[], options?: {
207
+ fileType?: "csv" | "dsv" | "json" | "parquet" | "excel";
208
+ autoDetect?: boolean;
209
+ limit?: number;
210
+ fileName?: boolean;
211
+ unifyColumns?: boolean;
212
+ columnTypes?: {
213
+ [key: string]: string;
214
+ };
215
+ columns?: string[];
216
+ header?: boolean;
217
+ allText?: boolean;
218
+ delim?: string;
219
+ skip?: number;
220
+ nullPadding?: boolean;
221
+ ignoreErrors?: boolean;
222
+ compression?: "none" | "gzip" | "zstd";
223
+ encoding?: string;
224
+ strict?: boolean;
225
+ jsonFormat?: "unstructured" | "newlineDelimited" | "array";
226
+ records?: boolean;
227
+ sheet?: string;
228
+ }): Promise<this>;
229
+ /**
230
+ * Loads data from all supported files (CSV, JSON, Parquet, Excel) within a local directory into the table.
231
+ *
232
+ * @param directory - The absolute path to the directory containing the data files.
233
+ * @param options - An optional object with configuration options:
234
+ * @param options.fileType - The type of file to load ("csv", "dsv", "json", "parquet", "excel"). Defaults to being inferred from the file extension.
235
+ * @param options.autoDetect - A boolean indicating whether to automatically detect the data format. Defaults to `true`.
236
+ * @param options.limit - A number indicating the maximum number of rows to load. Defaults to all rows.
237
+ * @param options.fileName - A boolean indicating whether to include the file name as a new column in the loaded data. Defaults to `false`.
238
+ * @param options.unifyColumns - A boolean indicating whether to unify columns across multiple files when their structures differ. Missing columns will be filled with `NULL` values. Defaults to `false`.
239
+ * @param options.columnTypes - An object mapping column names to their expected data types. By default, types are inferred.
240
+ * @param options.columns - An array of column names to load. When provided, only the specified columns are loaded, reducing memory usage and improving load times. Not supported for Excel files — combining `columns` with Excel files throws an error. If an invalid column name is provided, DuckDB will throw its native error. An empty array behaves the same as omitting the option (loads all columns). Defaults to loading all columns.
241
+ * @param options.header - A boolean indicating whether the file has a header row. Applicable to CSV files. Defaults to `true`.
242
+ * @param options.allText - A boolean indicating whether all columns should be treated as text. Applicable to CSV files. Defaults to `false`.
243
+ * @param options.delim - The delimiter used in the file. Applicable to CSV and DSV files. By default, the delimiter is inferred.
244
+ * @param options.skip - The number of lines to skip at the beginning of the file. Applicable to CSV files. Defaults to `0`.
245
+ * @param options.nullPadding - If `true`, when a row has fewer columns than expected, the remaining columns on the right will be padded with `NULL` values. Defaults to `false`.
246
+ * @param options.ignoreErrors - If `true`, parsing errors encountered will be ignored, and rows with errors will be skipped. Defaults to `false`.
247
+ * @param options.compression - The compression type of the file. Applicable to CSV files. Defaults to `none`.
248
+ * @param options.strict - If `true`, an error will be thrown when encountering any issues. If `false`, structurally incorrect files will be parsed tentatively. Defaults to `true`.
249
+ * @param options.encoding - The encoding of the files. Applicable to CSV files. Defaults to `utf-8`.
250
+ * @param options.jsonFormat - The format of JSON files ("unstructured", "newlineDelimited", "array"). By default, the format is inferred.
251
+ * @param options.records - A boolean indicating whether each line in a newline-delimited JSON file represents a record. Applicable to JSON files. By default, it's inferred.
252
+ * @param options.sheet - A string indicating a specific sheet to import from an Excel file. By default, the first sheet is imported.
253
+ * @returns A promise that resolves to the SimpleTable instance after the data has been loaded.
254
+ * @category Importing Data
255
+ *
256
+ * @example
257
+ * ```ts
258
+ * // Load all supported data files from the "./data/" directory
259
+ * await table.loadDataFromDirectory("./data/");
260
+ * ```
261
+ *
262
+ * @example
263
+ * ```ts
264
+ * // Load only specific columns from all CSV files in a directory
265
+ * await table.loadDataFromDirectory("./data/", { columns: ["name", "salary"] });
266
+ * ```
267
+ */
268
+ loadDataFromDirectory(directory: string, options?: {
269
+ fileType?: "csv" | "dsv" | "json" | "parquet" | "excel";
270
+ autoDetect?: boolean;
271
+ limit?: number;
272
+ fileName?: boolean;
273
+ unifyColumns?: boolean;
274
+ columnTypes?: {
275
+ [key: string]: string;
276
+ };
277
+ columns?: string[];
278
+ header?: boolean;
279
+ allText?: boolean;
280
+ delim?: string;
281
+ skip?: number;
282
+ nullPadding?: boolean;
283
+ ignoreErrors?: boolean;
284
+ compression?: "none" | "gzip" | "zstd";
285
+ encoding?: "utf-8" | "utf-16" | "latin-1";
286
+ strict?: boolean;
287
+ jsonFormat?: "unstructured" | "newlineDelimited" | "array";
288
+ records?: boolean;
289
+ sheet?: string;
290
+ }): Promise<this>;
291
+ /**
292
+ * Loads geospatial data from an external file or URL into the table.
293
+ *
294
+ * @param file - The URL or absolute path to the external file containing the geospatial data.
295
+ * @param options - An optional object with configuration options:
296
+ * @param options.toWGS84 - If `true`, the method will attempt to reproject the data to WGS84.
297
+ * @returns A promise that resolves to the SimpleTable instance after the geospatial data has been loaded.
298
+ * @category Geospatial
299
+ *
300
+ * @example
301
+ * ```ts
302
+ * // Load geospatial data from a URL
303
+ * await table.loadGeoData("https://some-website.com/some-data.geojson");
304
+ * ```
305
+ *
306
+ * @example
307
+ * ```ts
308
+ * // Load geospatial data from a local file
309
+ * await table.loadGeoData("./some-data.geojson");
310
+ * ```
311
+ *
312
+ * @example
313
+ * ```ts
314
+ * // Load geospatial data from a shapefile (with relevant files in the same folder) and reproject to WGS84
315
+ * await table.loadGeoData("./some-data/some-data.shp", { toWGS84: true });
316
+ * ```
317
+ *
318
+ * @example
319
+ * ```ts
320
+ * // Load geospatial data from a zipped shapefile and reproject to WGS84
321
+ * await table.loadGeoData("./some-data.shp.zip", { toWGS84: true });
322
+ * ```
323
+ */
324
+ loadGeoData(file: string, options?: {
325
+ toWGS84?: boolean;
326
+ }): Promise<this>;
327
+ /**
328
+ * Creates a full-text search (FTS) index on a specified text column using DuckDB's [FTS extension](https://duckdb.org/docs/stable/core_extensions/full_text_search).
329
+ *
330
+ * If an FTS index already exists on the table, this method will skip creation and log a message (when verbose is enabled), unless the `overwrite` option is set to `true`.
331
+ *
332
+ * @param columnId - The name of the column containing unique identifiers for each row.
333
+ * @param columnText - The name of the column containing the text to index.
334
+ * @param options - An optional object with configuration options:
335
+ * @param options.stemmer - The language stemmer to apply for word normalization. Supports multiple languages or "none" to disable stemming. Defaults to 'porter'.
336
+ * @param options.stopwords - The table containing the stopwords to use for the FTS index. Supports multiple languages or "none" to disable stopwords. Defaults to "english".
337
+ * @param options.overwrite - If `true`, recreates the index even if it already exists. Defaults to `false`.
338
+ * @param options.verbose - If `true`, logs additional debugging information, including index creation status. Defaults to `false`.
339
+ * @returns A promise that resolves to the SimpleTable instance for method chaining.
340
+ * @category Text Search
341
+ *
342
+ * @example
343
+ * ```ts
344
+ * // Load a dataset and create an FTS index
345
+ * await table.loadData("recipes.parquet");
346
+ *
347
+ * // Create FTS index for later searches
348
+ * await table.createFtsIndex("Dish", "Recipe");
349
+ * ```
350
+ *
351
+ * @param columnId - The column containing the document identifiers.
352
+ * @param columnText - The column containing the text to search.
353
+ * @param options - An optional object with configuration options:
354
+ * @param options.stemmer - The stemmer to use for the FTS index. Supports multiple languages or "none" to disable stemming. Defaults to "porter".
355
+ * @param options.stopwords - The table containing the stopwords to use for the FTS index. Supports multiple languages or "none" to disable stopwords. Defaults to "english".
356
+ * @param options.ignore - The regular expression of patterns to be ignored. Defaults to "(\\.|[^a-z])+".
357
+ * @param options.stripAccents - A boolean indicating whether to remove accents. Defaults to true.
358
+ * @param options.lower - A boolean indicating whether to convert all text to lowercase. Defaults to true.
359
+ * @param options.overwrite - A boolean indicating whether to overwrite the existing FTS index. Defaults to false.
360
+ * @param options.verbose - A boolean indicating whether to log additional information. Defaults to false.
361
+ *
362
+ * @example
363
+ * ```ts
364
+ * // Create an index with a specific language stemmer
365
+ * await table.createFtsIndex("Dish", "Recipe", {
366
+ * stemmer: "french",
367
+ * });
368
+ * ```
369
+ *
370
+ * @example
371
+ * ```ts
372
+ * // Recreate an existing index with different settings
373
+ * await table.createFtsIndex("Dish", "Recipe", {
374
+ * stemmer: "english",
375
+ * overwrite: true,
376
+ * });
377
+ * ```
378
+ *
379
+ * @example
380
+ * ```ts
381
+ * // Create index with verbose logging
382
+ * await table.createFtsIndex("Dish", "Recipe", {
383
+ * verbose: true,
384
+ * });
385
+ * // Logs: "Creating FTS index on 'Recipe' column..."
386
+ * // Logs: "FTS index created successfully."
387
+ * ```
388
+ */
389
+ createFtsIndex(columnId: string, columnText: string, options?: {
390
+ stemmer?: "arabic" | "basque" | "catalan" | "danish" | "dutch" | "english" | "finnish" | "french" | "german" | "greek" | "hindi" | "hungarian" | "indonesian" | "irish" | "italian" | "lithuanian" | "nepali" | "norwegian" | "porter" | "portuguese" | "romanian" | "russian" | "serbian" | "spanish" | "swedish" | "tamil" | "turkish" | "none";
391
+ stopwords?: string;
392
+ ignore?: string;
393
+ stripAccents?: boolean;
394
+ lower?: boolean;
395
+ overwrite?: boolean;
396
+ verbose?: boolean;
397
+ }): Promise<this>;
398
+ /**
399
+ * Creates a vector similarity search (VSS) index on a specified column using DuckDB's [VSS extension](https://duckdb.org/docs/stable/extensions/vss).
400
+ *
401
+ * If a VSS index already exists on the table, this method will skip creation and log a message (when verbose is enabled), unless the `overwrite` option is set to `true`.
402
+ *
403
+ * @param column - The name of the column containing vector embeddings (must be FLOAT array type).
404
+ * @param options - An optional object with configuration options:
405
+ * @param options.overwrite - If `true`, drops and recreates the index even if it already exists. Defaults to `false`.
406
+ * @param options.verbose - If `true`, logs additional debugging information, including index creation status. Defaults to `false`.
407
+ * @param options.efConstruction - The number of candidate vertices to consider during index construction. Higher values result in more accurate indexes but increase build time. Defaults to 128.
408
+ * @param options.efSearch - The number of candidate vertices to consider during search. Higher values result in more accurate searches but increase search time. Defaults to 64.
409
+ * @param options.M - The maximum number of neighbors to keep for each vertex in the graph. Higher values result in more accurate indexes but increase build time and memory usage. Defaults to 16.
410
+ * @returns A promise that resolves to the SimpleTable instance for method chaining.
411
+ * @category Vector Search
412
+ *
413
+ * @example
414
+ * ```ts
415
+ * // Load data that already contains an embedding column
416
+ * await table.loadData("data.csv");
417
+ *
418
+ * // Create VSS index for fast similarity searches
419
+ * await table.createVssIndex("embedding_column");
420
+ * ```
421
+ *
422
+ * @example
423
+ * ```ts
424
+ * // Recreate an existing index
425
+ * await table.createVssIndex("embedding_column", {
426
+ * overwrite: true,
427
+ * });
428
+ * ```
429
+ *
430
+ * @example
431
+ * ```ts
432
+ * // Create index with verbose logging
433
+ * await table.createVssIndex("embedding_column", {
434
+ * verbose: true,
435
+ * });
436
+ * // Logs: "Creating VSS index on 'embedding_column' column..."
437
+ * // Logs: "VSS index created successfully."
438
+ * ```
439
+ *
440
+ * @example
441
+ * ```ts
442
+ * // Create index with custom HNSW parameters for higher accuracy
443
+ * await table.createVssIndex("embedding_column", {
444
+ * efConstruction: 256,
445
+ * efSearch: 128,
446
+ * M: 32,
447
+ * });
448
+ * ```
449
+ */
450
+ createVssIndex(column: string, options?: {
451
+ overwrite?: boolean;
452
+ verbose?: boolean;
453
+ efConstruction?: number;
454
+ efSearch?: number;
455
+ M?: number;
456
+ }): Promise<this>;
457
+ /**
458
+ * Performs BM25 full-text search on a text column to find the most relevant results. BM25 (Best Matching 25) is a ranking function used in information retrieval that calculates relevance scores based on term frequency and document length normalization.
459
+ *
460
+ * This method creates a full-text search index on the specified text column using DuckDB's [FTS extension](https://duckdb.org/docs/stable/core_extensions/full_text_search). If the index already exists, it will be reused unless the `overwriteIndex` option is set to `true`.
461
+ *
462
+ * @param text - The search query text to match against the text column.
463
+ * @param columnId - The name of the column containing unique identifiers for each row.
464
+ * @param columnText - The name of the column containing the text to search.
465
+ * @param nbResults - The number of top-ranked results to return.
466
+ * @param options - An optional object with configuration options:
467
+ * @param options.outputTable - The name of a new table where the results will be stored. If not provided, the current table will be replaced with the search results.
468
+ * @param options.verbose - If `true`, logs additional debugging information, including FTS index creation status. Defaults to `false`.
469
+ * @param options.k - The BM25 k parameter controlling term frequency saturation. Defaults to 1.2.
470
+ * @param options.b - The BM25 b parameter controlling document length normalization (0-1 range). Defaults to 0.75.
471
+ * @param options.stemmer - The language stemmer to apply for word normalization. Supports multiple languages or "none" to disable stemming. Defaults to 'porter'.
472
+ * @param options.stopwords - The table containing the stopwords to use for the FTS index. Supports multiple languages or "none" to disable stopwords. Defaults to "english".
473
+ * @param options.ignore - The regular expression of patterns to be ignored. Defaults to "(\\.|[^a-z])+".
474
+ * @param options.stripAccents - A boolean indicating whether to remove accents. Defaults to true.
475
+ * @param options.lower - A boolean indicating whether to convert all text to lowercase. Defaults to true.
476
+ * @param options.overwriteIndex - If `true`, drops and recreates the FTS index even if it already exists. Defaults to `false`.
477
+ * @param options.conjunctive - If `true`, all terms in the query string must be present in order for a document to be retrieved. Defaults to `false`.
478
+ * @param options.minScore - A threshold to filter out results with a BM25 score below this value.
479
+ * @param options.scoreColumn - If provided, the BM25 score will be included in the output table under this column name.
480
+ * @returns A promise that resolves to a SimpleTable instance containing the search results, ordered by relevance (best matches first).
481
+ * @category Text Search
482
+ *
483
+ * @example
484
+ * ```ts
485
+ * // Load a dataset of recipes
486
+ * await table.loadData("recipes.parquet");
487
+ *
488
+ * // Search for "italian food" in the Recipe column, return top 5 results
489
+ * await table.bm25("italian food", "Dish", "Recipe", 5);
490
+ *
491
+ * // Check the results
492
+ * const dishes = await table.getValues("Dish");
493
+ * // Returns: ["Carbonara", "Pizza", "Risotto", "Tiramisu", "Escarole Soup"]
494
+ * ```
495
+ *
496
+ * @example
497
+ * ```ts
498
+ * // Search with a specific language stemmer
499
+ * await table.bm25("french food", "Dish", "Recipe", 5, {
500
+ * stemmer: "french",
501
+ * });
502
+ * ```
503
+ *
504
+ * @example
505
+ * ```ts
506
+ * // Recreate the index with different settings and perform search
507
+ * await table.bm25("italian food", "Dish", "Recipe", 5, {
508
+ * stemmer: "english",
509
+ * overwriteIndex: true,
510
+ * });
511
+ * ```
512
+ *
513
+ * @example
514
+ * ```ts
515
+ * // Save results to a new table without modifying the original
516
+ * const italianDishes = await table.bm25("italian food", "Dish", "Recipe", 5, {
517
+ * outputTable: "italian_results",
518
+ * });
519
+ *
520
+ * // Original table remains unchanged
521
+ * const allDishes = await table.getValues("Dish");
522
+ * console.log(allDishes.length); // 336 (all dishes)
523
+ *
524
+ * // New table contains only search results
525
+ * const italianOnly = await italianDishes.getValues("Dish");
526
+ * console.log(italianOnly.length); // 5 (top results)
527
+ * ```
528
+ *
529
+ * @example
530
+ * ```ts
531
+ * // Multiple searches reuse the same index for better performance
532
+ * // The first search creates the index
533
+ * const italian = await table.bm25("italian food", "Dish", "Recipe", 5, {
534
+ * outputTable: "italian",
535
+ * });
536
+ *
537
+ * // The second search reuses the existing index, so it's faster
538
+ * const french = await table.bm25("french food", "Dish", "Recipe", 5, {
539
+ * outputTable: "french",
540
+ * });
541
+ * ```
542
+ * * @example
543
+ * ```ts
544
+ * // Filter results by a minimum BM25 score and include the score in the output
545
+ * await table.bm25("spicy noodles", "Dish", "Recipe", 10, {
546
+ * minScore: 5.5,
547
+ * scoreColumn: "bm25_score"
548
+ * });
549
+ * ```
550
+ *
551
+ * @example
552
+ * ```ts
553
+ * // Use the conjunctive option to require all terms
554
+ * await table.bm25("italian sauce", "Dish", "Recipe", 5, {
555
+ * conjunctive: true,
556
+ * });
557
+ * ```
558
+ */
559
+ bm25(text: string, columnId: string, columnText: string, nbResults: number, options?: {
560
+ outputTable?: string;
561
+ verbose?: boolean;
562
+ k?: number;
563
+ b?: number;
564
+ stemmer?: "arabic" | "basque" | "catalan" | "danish" | "dutch" | "english" | "finnish" | "french" | "german" | "greek" | "hindi" | "hungarian" | "indonesian" | "irish" | "italian" | "lithuanian" | "nepali" | "norwegian" | "porter" | "portuguese" | "romanian" | "russian" | "serbian" | "spanish" | "swedish" | "tamil" | "turkish" | "none";
565
+ stopwords?: string;
566
+ ignore?: string;
567
+ stripAccents?: boolean;
568
+ lower?: boolean;
569
+ overwriteIndex?: boolean;
570
+ conjunctive?: boolean;
571
+ minScore?: number;
572
+ scoreColumn?: string;
573
+ }): Promise<this>;
574
+ /**
575
+ * Inserts rows, provided as an array of JavaScript objects, into the table.
576
+ *
577
+ * @param rows - An array of objects, where each object represents a row to be inserted and its properties correspond to column names.
578
+ * @returns A promise that resolves when the rows have been inserted.
579
+ * @category Importing Data
580
+ *
581
+ * @example
582
+ * ```ts
583
+ * // Insert new rows into the table
584
+ * const newRows = [
585
+ * { letter: "c", number: 3 },
586
+ * { letter: "d", number: 4 }
587
+ * ];
588
+ * await table.insertRows(newRows);
589
+ * ```
590
+ */
591
+ insertRows(rows: {
592
+ [key: string]: unknown;
593
+ }[]): Promise<void>;
594
+ /**
595
+ * Inserts all rows from one or more other tables into this table. If tables do not have the same columns, an error will be thrown unless the `unifyColumns` option is set to `true`.
596
+ *
597
+ * @param tablesToInsert - The name(s) of the table(s) or SimpleTable instance(s) from which rows will be inserted.
598
+ * @param options - An optional object with configuration options:
599
+ * @param options.unifyColumns - A boolean indicating whether to unify the columns of the tables. If `true`, missing columns in a table will be filled with `NULL` values. Defaults to `false`.
600
+ * @returns The table itself, allowing for method chaining.
601
+ * @category Importing Data
602
+ *
603
+ * @example
604
+ * ```ts
605
+ * // Insert all rows from 'tableB' into 'tableA'.
606
+ * await tableA.insertTables("tableB");
607
+ * ```
608
+ *
609
+ * @example
610
+ * ```ts
611
+ * // Insert all rows from 'tableB' and 'tableC' into 'tableA'.
612
+ * await tableA.insertTables(["tableB", "tableC"]);
613
+ * ```
614
+ *
615
+ * @example
616
+ * ```ts
617
+ * // Insert rows from multiple tables, unifying columns. Missing columns will be filled with NULL.
618
+ * await tableA.insertTables(["tableB", "tableC"], { unifyColumns: true });
619
+ * ```
620
+ */
621
+ insertTables(tablesToInsert: SimpleTable | SimpleTable[], options?: {
622
+ unifyColumns?: boolean;
623
+ }): Promise<this>;
624
+ /**
625
+ * Fetches sample data from the simple-data-analysis-core GitHub repository.
626
+ *
627
+ * @param sample - The name of the sample to load.
628
+ *
629
+ * Tabular data:
630
+ * - "fires": [firesCanada2023.csv](https://raw.githubusercontent.com/nshiab/simple-data-analysis-core/refs/heads/main/test/geodata/files/firesCanada2023.csv)
631
+ * - "recipes": [recipes.parquet](https://github.com/nshiab/simple-data-analysis-core/raw/refs/heads/main/test/data/files/recipes.parquet)
632
+ * - "temperatures": [dailyTemperatures.csv](https://raw.githubusercontent.com/nshiab/simple-data-analysis-core/refs/heads/main/test/data/files/dailyTemperatures.csv)
633
+ * - "temperaturesCities": [cities.csv](https://raw.githubusercontent.com/nshiab/simple-data-analysis-core/refs/heads/main/test/data/files/cities.csv)
634
+ *
635
+ * Geospatial data:
636
+ * - "canada": [CanadianProvincesAndTerritories.json](https://raw.githubusercontent.com/nshiab/simple-data-analysis-core/refs/heads/main/test/geodata/files/CanadianProvincesAndTerritories.json)
637
+ * - "firesGeo": [firesCanada2023.geojson](https://raw.githubusercontent.com/nshiab/simple-data-analysis-core/refs/heads/main/test/geodata/files/firesCanada2023.geojson)
638
+ *
639
+ * @category Importing Data
640
+ *
641
+ * @example
642
+ * ```ts
643
+ * // Load the fires sample data
644
+ * await table.loadSample("fires");
645
+ * ```
646
+ */
647
+ loadSample(sample: "fires" | "recipes" | "temperatures" | "temperaturesCities" | "canada" | "firesGeo"): Promise<this>;
648
+ /**
649
+ * Returns a new table with the same structure and data as this table. The data can be optionally filtered, limited to a specific number of rows, and offset.
650
+ *
651
+ * If `conditions`, `nbRows`, and `offset` are all used, they are applied in this order: `conditions` (WHERE clause) first, then `offset`, and finally `nbRows` (LIMIT).
652
+ *
653
+ * Note that cloning large tables can be a slow operation.
654
+ *
655
+ * @param nameOrOptions - Either a string specifying the name of the new table, or an optional object with configuration options. If not provided, a default name (e.g., "table1", "table2") will be generated.
656
+ * @param nameOrOptions.outputTable - The name of the new table to be created in the database. If not provided, a default name (e.g., "table1", "table2") will be generated.
657
+ * @param nameOrOptions.conditions - A SQL `WHERE` clause condition to filter the data during cloning. Defaults to no condition (clones all rows).
658
+ * @param nameOrOptions.columns - An array of column names to include in the cloned table. If not provided, all columns will be included.
659
+ * @param nameOrOptions.nbRows - The number of rows to include in the cloned table. If provided, only the first X rows (potentially after filtering and offset) will be cloned.
660
+ * @param nameOrOptions.offset - The number of rows to skip before starting to clone rows.
661
+ * @returns A promise that resolves to a new table instance containing the cloned data.
662
+ * @category Table Management
663
+ *
664
+ * @example
665
+ * ```ts
666
+ * // Clone tableA to a new table with a default generated name (e.g., "table1")
667
+ * const tableB = await tableA.cloneTable();
668
+ * ```
669
+ *
670
+ * @example
671
+ * ```ts
672
+ * // Clone tableA to a new table named "my_cloned_table" using string parameter
673
+ * const tableB = await tableA.cloneTable("my_cloned_table");
674
+ * ```
675
+ *
676
+ * @example
677
+ * ```ts
678
+ * // Clone tableA to a new table named "my_cloned_table" using options object
679
+ * const tableB = await tableA.cloneTable({ outputTable: "my_cloned_table" });
680
+ * ```
681
+ *
682
+ * @example
683
+ * ```ts
684
+ * // Clone tableA, including only rows where 'column1' is greater than 10
685
+ * const tableB = await tableA.cloneTable({ conditions: `column1 > 10` });
686
+ * ```
687
+ *
688
+ * @example
689
+ * ```ts
690
+ * // Clone tableA with only specific columns
691
+ * const tableB = await tableA.cloneTable({ columns: ["name", "age", "city"] });
692
+ * ```
693
+ *
694
+ * @example
695
+ * ```ts
696
+ * // Clone only the first 10 rows of tableA
697
+ * const tableB = await tableA.cloneTable({ nbRows: 10 });
698
+ * ```
699
+ *
700
+ * @example
701
+ * ```ts
702
+ * // Clone 10 rows after skipping the first 5 rows
703
+ * const tableB = await tableA.cloneTable({ nbRows: 10, offset: 5 });
704
+ * ```
705
+ *
706
+ * @example
707
+ * ```ts
708
+ * // Clone tableA to a specific table name with filtered data, specific columns, and limited rows
709
+ * const tableB = await tableA.cloneTable({
710
+ * outputTable: "filtered_data",
711
+ * conditions: `status = 'active' AND created_date >= '2023-01-01'`,
712
+ * columns: ["name", "status", "created_date"],
713
+ * nbRows: 100
714
+ * });
715
+ * ```
716
+ */
717
+ cloneTable(nameOrOptions?: string | {
718
+ outputTable?: string;
719
+ conditions?: string;
720
+ columns?: string | string[];
721
+ nbRows?: number;
722
+ offset?: number;
723
+ }): Promise<this>;
724
+ /**
725
+ * Clones an existing column in this table, creating a new column with identical values.
726
+ *
727
+ * @param originalColumn - The name of the original column to clone.
728
+ * @param newColumn - The name of the new column to be created.
729
+ * @returns A promise that resolves when the column has been cloned.
730
+ * @category Column Operations
731
+ *
732
+ * @example
733
+ * ```ts
734
+ * // Clone 'firstName' column as 'contactName'
735
+ * await table.cloneColumn("firstName", "contactName");
736
+ * ```
737
+ */
738
+ cloneColumn(originalColumn: string, newColumn: string): Promise<void>;
739
+ /**
740
+ * Clones a column in the table and offsets its values by a specified number of rows.
741
+ * This is useful for time-series analysis or comparing values across different time points.
742
+ *
743
+ * **Important:** The offset is applied based on the current row order in the table. For meaningful results, ensure your data is sorted appropriately (e.g., by date/time for time-series analysis) before calling this method.
744
+ *
745
+ * @param originalColumn - The name of the original column.
746
+ * @param newColumn - The name of the new column to be created with offset values.
747
+ * @param options - An optional object with configuration options:
748
+ * @param options.offset - The number of rows to offset the values. A positive number shifts values downwards (later rows), a negative number shifts values upwards (earlier rows). Defaults to `1`.
749
+ * @param options.categories - A string or an array of strings representing columns to partition the data by. The offset will be applied independently within each category.
750
+ * @returns A promise that resolves when the column has been cloned with offset values.
751
+ * @category Column Operations
752
+ *
753
+ * @example
754
+ * ```ts
755
+ * // Clone 'value' as 'previous_value', offsetting by 1 row (value of row N-1 goes to row N)
756
+ * await table.cloneColumnWithOffset("value", "previous_value");
757
+ * ```
758
+ *
759
+ * @example
760
+ * ```ts
761
+ * // Clone 'sales' as 'sales_2_days_ago', offsetting by 2 rows
762
+ * await table.cloneColumnWithOffset("sales", "sales_2_days_ago", { offset: 2 });
763
+ * ```
764
+ *
765
+ * @example
766
+ * ```ts
767
+ * // Clone 'temperature' as 'prev_temp_by_city', offsetting by 1 row within each 'city' category
768
+ * await table.cloneColumnWithOffset("temperature", "prev_temp_by_city", {
769
+ * offset: 1,
770
+ * categories: "city",
771
+ * });
772
+ * ```
773
+ *
774
+ * @example
775
+ * ```ts
776
+ * // Clone 'stock_price' as 'prev_price_by_stock_and_exchange', offsetting by 1 row within each 'stock_symbol' and 'exchange' category
777
+ * await table.cloneColumnWithOffset("stock_price", "prev_price_by_stock_and_exchange", {
778
+ * offset: 1,
779
+ * categories: ["stock_symbol", "exchange"],
780
+ * });
781
+ * ```
782
+ */
783
+ cloneColumnWithOffset(originalColumn: string, newColumn: string, options?: {
784
+ offset?: number;
785
+ categories?: string | string[];
786
+ }): Promise<void>;
787
+ /**
788
+ * Fills `NULL` values in specified columns. By default, each `NULL` is replaced with the last non-`NULL` value from the preceding row. When `interpolate` is `true`, `NULL` values are replaced using linear interpolation (or extrapolation at the ends). Pass `interpolateBy` with a real numeric or date column name to use it as the X-axis, so that interpolated values are proportional to the actual distances between X-axis values rather than treating every row as equidistant. When `interpolateBy` is set, `interpolate` is automatically assumed `true`.
789
+ *
790
+ * @param columns - The column(s) for which to fill `NULL` values.
791
+ * @param options - An optional object with configuration options:
792
+ * @param options.categories - A string or an array of strings representing columns to partition the data by. The fill will be applied independently within each category.
793
+ * @param options.interpolate - If `true`, replaces `NULL` values with linearly interpolated values using DuckDB's `fill()` window function. When `interpolateBy` is not set, row positions are used as the X-axis, treating rows as equidistant. For `NULL` values at the ends, linear extrapolation is used. Both the column values and the X-axis values must support arithmetic. If `false` or omitted, the previous non-`NULL` value is used instead. Automatically assumed `true` when `interpolateBy` is set.
794
+ * @param options.interpolateBy - A column name to use as the X-axis for interpolation instead of equidistant row positions. When provided, `interpolate` is automatically assumed `true`. Use this when rows are not evenly spaced (e.g., timestamps or non-uniform numeric indices) so that interpolated values are proportional to the actual distance between X-axis values.
795
+ * @returns A promise that resolves when the `NULL` values have been filled.
796
+ * @category Updating Data
797
+ *
798
+ * @example
799
+ * ```ts
800
+ * // Fill NULL values in 'column1' with the previous non-NULL value
801
+ * await table.fill("column1");
802
+ * ```
803
+ *
804
+ * @example
805
+ * ```ts
806
+ * // Fill NULL values in multiple columns
807
+ * await table.fill(["columnA", "columnB"]);
808
+ * ```
809
+ *
810
+ * @example
811
+ * ```ts
812
+ * // Fill NULL values in 'value' independently within each 'group'
813
+ * await table.fill("value", { categories: "group" });
814
+ * ```
815
+ *
816
+ * @example
817
+ * ```ts
818
+ * // Fill NULL values in 'value' using linear interpolation
819
+ * await table.fill("value", { interpolate: true });
820
+ * ```
821
+ *
822
+ * @example
823
+ * ```ts
824
+ * // Fill NULL values in 'value' using linear interpolation, independently within each 'group'
825
+ * await table.fill("value", { categories: "group", interpolate: true });
826
+ * ```
827
+ *
828
+ * @example
829
+ * ```ts
830
+ * // Fill NULL values in 'value' using linear interpolation proportional to 'x' distances
831
+ * await table.fill("value", { interpolate: true, interpolateBy: "x" });
832
+ * ```
833
+ *
834
+ * @example
835
+ * ```ts
836
+ * // interpolateBy implies interpolate: true, so this is equivalent to the previous example
837
+ * await table.fill("value", { interpolateBy: "x" });
838
+ * ```
839
+ */
840
+ fill(columns: string | string[], options?: {
841
+ categories?: string | string[];
842
+ interpolate?: boolean;
843
+ interpolateBy?: string;
844
+ }): Promise<void>;
845
+ /**
846
+ * Sorts the rows of the table based on specified column(s) and order(s).
847
+ * If no columns are specified, all columns are sorted from left to right in ascending order.
848
+ *
849
+ * @param order - An object mapping column names to their sorting order: `"asc"` for ascending or `"desc"` for descending. If `null`, all columns are sorted ascendingly.
850
+ * @param options - An optional object with configuration options:
851
+ * @param options.lang - An object mapping column names to language codes for collation (e.g., `{ column1: "fr" }`). See DuckDB Collations documentation for more details: https://duckdb.org/docs/sql/expressions/collations.
852
+ * @returns A promise that resolves when the table has been sorted.
853
+ * @category Restructuring Data
854
+ *
855
+ * @example
856
+ * ```ts
857
+ * // Sort all columns from left to right in ascending order
858
+ * await table.sort();
859
+ * ```
860
+ *
861
+ * @example
862
+ * ```ts
863
+ * // Sort 'column1' in ascending order
864
+ * await table.sort({ column1: "asc" });
865
+ * ```
866
+ *
867
+ * @example
868
+ * ```ts
869
+ * // Sort 'column1' ascendingly, then 'column2' descendingly
870
+ * await table.sort({ column1: "asc", column2: "desc" });
871
+ * ```
872
+ *
873
+ * @example
874
+ * ```ts
875
+ * // Sort 'column1' considering French accents
876
+ * await table.sort({ column1: "asc" }, { lang: { column1: "fr" } });
877
+ * ```
878
+ */
879
+ sort(order?: {
880
+ [key: string]: "asc" | "desc";
881
+ } | null, options?: {
882
+ lang?: {
883
+ [key: string]: string;
884
+ };
885
+ }): Promise<void>;
886
+ /**
887
+ * Selects specific columns in the table, removing all others.
888
+ *
889
+ * @param columns - The name or an array of names of the columns to be selected.
890
+ * @returns A promise that resolves when the columns have been selected.
891
+ * @category Selecting or Filtering Data
892
+ *
893
+ * @example
894
+ * ```ts
895
+ * // Select only the 'firstName' and 'lastName' columns, removing all other columns.
896
+ * await table.selectColumns(["firstName", "lastName"]);
897
+ * ```
898
+ *
899
+ * @example
900
+ * ```ts
901
+ * // Select only the 'productName' column.
902
+ * await table.selectColumns("productName");
903
+ * ```
904
+ */
905
+ selectColumns(columns: string | string[]): Promise<void>;
906
+ /**
907
+ * Skips the first `n` rows of the table, effectively removing them.
908
+ *
909
+ * @param nbRowsToSkip - The number of rows to skip from the beginning of the table.
910
+ * @returns A promise that resolves when the rows have been skipped.
911
+ * @category Selecting or Filtering Data
912
+ *
913
+ * @example
914
+ * ```ts
915
+ * // Skip the first 10 rows of the table
916
+ * await table.skip(10);
917
+ * ```
918
+ */
919
+ skip(nbRowsToSkip: number): Promise<void>;
920
+ /**
921
+ * Checks if a column with the specified name exists in the table.
922
+ *
923
+ * @param column - The name of the column to check.
924
+ * @returns A promise that resolves to `true` if the column exists, `false` otherwise.
925
+ * @category Column Operations
926
+ *
927
+ * @example
928
+ * ```ts
929
+ * // Check if the table has a column named "age"
930
+ * const hasAgeColumn = await table.hasColumn("age");
931
+ * console.log(hasAgeColumn); // Output: true or false
932
+ * ```
933
+ */
934
+ hasColumn(column: string): Promise<boolean>;
935
+ /**
936
+ * Selects random rows from the table, removing all others. You can optionally specify a seed to ensure repeatable sampling.
937
+ *
938
+ * @param quantity - The number of rows to select (e.g., `100`) or a percentage string (e.g., `"10%"`) specifying the sampling size.
939
+ * @param options - An optional object with configuration options:
940
+ * @param options.seed - A number specifying the seed for repeatable sampling. Using the same seed will always yield the same random rows. Defaults to a random seed.
941
+ * @returns A promise that resolves when the sampling is complete.
942
+ * @category Selecting or Filtering Data
943
+ *
944
+ * @example
945
+ * ```ts
946
+ * // Select 100 random rows from the table
947
+ * await table.sample(100);
948
+ * ```
949
+ *
950
+ * @example
951
+ * ```ts
952
+ * // Select 10% of the rows randomly
953
+ * await table.sample("10%");
954
+ * ```
955
+ *
956
+ * @example
957
+ * ```ts
958
+ * // Select random rows with a specific seed for repeatable results
959
+ * await table.sample("10%", { seed: 123 });
960
+ * ```
961
+ */
962
+ sample(quantity: number | string, options?: {
963
+ seed?: number;
964
+ }): Promise<void>;
965
+ /**
966
+ * Selects a specified number of rows from this table. An offset can be applied to skip initial rows, and the results can be output to a new table.
967
+ *
968
+ * @param count - The number of rows to select.
969
+ * @param options - An optional object with configuration options:
970
+ * @param options.offset - The number of rows to skip from the beginning of the table before selecting. Defaults to `0`.
971
+ * @param options.outputTable - If `true`, the selected rows will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be modified. Defaults to `false`.
972
+ * @returns A promise that resolves to a table instance containing the selected rows (either the modified current table or a new table).
973
+ * @category Selecting or Filtering Data
974
+ *
975
+ * @example
976
+ * ```ts
977
+ * // Select the first 100 rows of the current table
978
+ * await table.selectRows(100);
979
+ * ```
980
+ *
981
+ * @example
982
+ * ```ts
983
+ * // Select 100 rows after skipping the first 50 rows
984
+ * await table.selectRows(100, { offset: 50 });
985
+ * ```
986
+ *
987
+ * @example
988
+ * ```ts
989
+ * // Select 50 rows and store them in a new table with a generated name
990
+ * const newTable = await table.selectRows(50, { outputTable: true });
991
+ * ```
992
+ *
993
+ * @example
994
+ * ```ts
995
+ * // Select 75 rows and store them in a new table named "top_customers"
996
+ * const topCustomersTable = await table.selectRows(75, { outputTable: "top_customers" });
997
+ * ```
998
+ */
999
+ selectRows(count: number | string, options?: {
1000
+ offset?: number;
1001
+ outputTable?: string | boolean;
1002
+ }): Promise<this>;
1003
+ /**
1004
+ * Removes duplicate rows from this table, keeping only unique rows.
1005
+ * Note that the resulting data order might differ from the original.
1006
+ *
1007
+ * @param options - An optional object with configuration options:
1008
+ * @param options.on - A column name or an array of column names to consider when identifying duplicates. If specified, duplicates are determined based only on the values in these columns. If omitted, all columns are considered.
1009
+ * @returns A promise that resolves when the duplicate rows have been removed.
1010
+ * @category Selecting or Filtering Data
1011
+ *
1012
+ * @example
1013
+ * ```ts
1014
+ * // Remove duplicate rows based on all columns
1015
+ * await table.removeDuplicates();
1016
+ * ```
1017
+ *
1018
+ * @example
1019
+ * ```ts
1020
+ * // Remove duplicate rows based only on the 'email' column
1021
+ * await table.removeDuplicates({ on: "email" });
1022
+ * ```
1023
+ *
1024
+ * @example
1025
+ * ```ts
1026
+ * // Remove duplicate rows based on 'firstName' and 'lastName' columns
1027
+ * await table.removeDuplicates({ on: ["firstName", "lastName"] });
1028
+ * ```
1029
+ */
1030
+ removeDuplicates(options?: {
1031
+ on?: string | string[];
1032
+ }): Promise<void>;
1033
+ /**
1034
+ * Removes rows with missing values from this table.
1035
+ * By default, missing values include SQL `NULL`, as well as string representations like `"NULL"`, `"null"`, `"NaN"`, `"undefined"`, and empty strings `""`.
1036
+ *
1037
+ * @param options - An optional object with configuration options:
1038
+ * @param options.columns - A string or an array of strings specifying the columns to consider for missing values. If omitted, all columns are considered.
1039
+ * @param options.missingValues - An array of values to be treated as missing values instead of the default ones. Defaults to `["undefined", "NaN", "null", "NULL", ""]`.
1040
+ * @param options.invert - A boolean indicating whether to invert the condition. If `true`, only rows containing missing values will be kept. Defaults to `false`.
1041
+ * @returns A promise that resolves when the rows with missing values have been removed.
1042
+ * @category Selecting or Filtering Data
1043
+ *
1044
+ * @example
1045
+ * ```ts
1046
+ * // Remove rows with missing values in any column
1047
+ * await table.removeMissing();
1048
+ * ```
1049
+ *
1050
+ * @example
1051
+ * ```ts
1052
+ * // Remove rows with missing values only in 'firstName' or 'lastName' columns
1053
+ * await table.removeMissing({ columns: ["firstName", "lastName"] });
1054
+ * ```
1055
+ *
1056
+ * @example
1057
+ * ```ts
1058
+ * // Keep only rows with missing values in any column
1059
+ * await table.removeMissing({ invert: true });
1060
+ * ```
1061
+ *
1062
+ * @example
1063
+ * ```ts
1064
+ * // Remove rows where 'age' is missing or is equal to -1
1065
+ * await table.removeMissing({ columns: "age", missingValues: [-1] });
1066
+ * ```
1067
+ */
1068
+ removeMissing(options?: {
1069
+ columns?: string | string[];
1070
+ missingValues?: (string | number)[];
1071
+ invert?: boolean;
1072
+ }): Promise<void>;
1073
+ /**
1074
+ * Trims specified characters from the beginning, end, or both sides of string values in the given columns.
1075
+ *
1076
+ * @param columns - The column name or an array of column names to trim.
1077
+ * @param options - An optional object with configuration options:
1078
+ * @param options.character - The string to trim. Defaults to whitespace characters.
1079
+ * @param options.method - The trimming method to apply: `"leftTrim"` (removes from the beginning), `"rightTrim"` (removes from the end), or `"trim"` (removes from both sides). Defaults to `"trim"`.
1080
+ * @returns A promise that resolves when the trimming operation is complete.
1081
+ * @category Updating Data
1082
+ *
1083
+ * @example
1084
+ * ```ts
1085
+ * // Trim whitespace from 'column1'
1086
+ * await table.trim("column1");
1087
+ * ```
1088
+ *
1089
+ * @example
1090
+ * ```ts
1091
+ * // Trim leading and trailing asterisks from 'productCode'
1092
+ * await table.trim("productCode", { character: "*" });
1093
+ * ```
1094
+ *
1095
+ * @example
1096
+ * ```ts
1097
+ * // Right-trim whitespace from 'description' and 'notes' columns
1098
+ * await table.trim(["description", "notes"], { method: "rightTrim" });
1099
+ * ```
1100
+ */
1101
+ trim(columns: string | string[], options?: {
1102
+ character?: string;
1103
+ method?: "leftTrim" | "rightTrim" | "trim";
1104
+ }): Promise<void>;
1105
+ /**
1106
+ * Filters rows from this table based on SQL conditions. Note that it's often faster to use the `removeRows` method for simple removals.
1107
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
1108
+ *
1109
+ * @param conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"column1 > 10 AND column2 = 'value'"`).
1110
+ * @returns A promise that resolves when the rows have been filtered.
1111
+ * @category Selecting or Filtering Data
1112
+ *
1113
+ * @example
1114
+ * ```ts
1115
+ * // Keep only rows where the 'fruit' column is not 'apple'
1116
+ * await table.filter(`fruit != 'apple'`);
1117
+ * ```
1118
+ *
1119
+ * @example
1120
+ * ```ts
1121
+ * // Keep rows where 'price' is greater than 100 AND 'quantity' is greater than 0
1122
+ * await table.filter(`price > 100 && quantity > 0`); // Using JS syntax
1123
+ * ```
1124
+ *
1125
+ * @example
1126
+ * ```ts
1127
+ * // Keep rows where 'category' is 'Electronics' OR 'Appliances'
1128
+ * await table.filter(`category === 'Electronics' || category === 'Appliances'`); // Using JS syntax
1129
+ * ```
1130
+ *
1131
+ * @example
1132
+ * ```ts
1133
+ * // Keep rows where 'lastPurchaseDate' is on or after '2023-01-01'
1134
+ * await table.filter(`lastPurchaseDate >= '2023-01-01'`);
1135
+ * ```
1136
+ */
1137
+ filter(conditions: string): Promise<void>;
1138
+ /**
1139
+ * Keeps rows in this table that have specific values in specified columns, removing all other rows.
1140
+ *
1141
+ * @param columnsAndValues - An object where keys are column names and values are the specific values (or an array of values) to keep in those columns.
1142
+ * @returns A promise that resolves when the rows have been filtered.
1143
+ * @category Selecting or Filtering Data
1144
+ *
1145
+ * @example
1146
+ * ```ts
1147
+ * // Keep only rows where 'job' is 'accountant' or 'developer', AND 'city' is 'Montreal'
1148
+ * await table.keep({ job: ["accountant", "developer"], city: "Montreal" });
1149
+ * ```
1150
+ *
1151
+ * @example
1152
+ * ```ts
1153
+ * // Keep only rows where 'status' is 'active'
1154
+ * await table.keep({ status: "active" });
1155
+ * ```
1156
+ */
1157
+ keep(columnsAndValues: {
1158
+ [key: string]: (number | string | Date | boolean | null)[] | (number | string | Date | boolean | null);
1159
+ }): Promise<void>;
1160
+ /**
1161
+ * Removes rows from this table that have specific values in specified columns.
1162
+ *
1163
+ * @param columnsAndValues - An object where keys are column names and values are the specific values (or an array of values) to remove from those columns.
1164
+ * @returns A promise that resolves when the rows have been removed.
1165
+ * @category Selecting or Filtering Data
1166
+ *
1167
+ * @example
1168
+ * ```ts
1169
+ * // Remove rows where 'job' is 'accountant' or 'developer', AND 'city' is 'Montreal'
1170
+ * await table.remove({ job: ["accountant", "developer"], city: "Montreal" });
1171
+ * ```
1172
+ *
1173
+ * @example
1174
+ * ```ts
1175
+ * // Remove rows where 'status' is 'inactive'
1176
+ * await table.remove({ status: "inactive" });
1177
+ * ```
1178
+ */
1179
+ remove(columnsAndValues: {
1180
+ [key: string]: (number | string | Date | boolean | null)[] | (number | string | Date | boolean | null);
1181
+ }): Promise<void>;
1182
+ /**
1183
+ * Removes rows from this table based on SQL conditions. This method is similar to `filter()`, but removes rows instead of keeping them.
1184
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
1185
+ *
1186
+ * @param conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"fruit = 'apple'"`).
1187
+ * @returns A promise that resolves when the rows have been removed.
1188
+ * @category Selecting or Filtering Data
1189
+ *
1190
+ * @example
1191
+ * ```ts
1192
+ * // Remove rows where the 'fruit' column is 'apple'
1193
+ * await table.removeRows(`fruit = 'apple'`);
1194
+ * ```
1195
+ *
1196
+ * @example
1197
+ * ```ts
1198
+ * // Remove rows where 'quantity' is less than 5
1199
+ * await table.removeRows(`quantity < 5`);
1200
+ * ```
1201
+ *
1202
+ * @example
1203
+ * ```ts
1204
+ * // Remove rows where 'price' is less than 100 AND 'quantity' is 0
1205
+ * await table.removeRows(`price < 100 && quantity === 0`); // Using JS syntax
1206
+ * ```
1207
+ *
1208
+ * @example
1209
+ * ```ts
1210
+ * // Remove rows where 'category' is 'Electronics' OR 'Appliances'
1211
+ * await table.removeRows(`category === 'Electronics' || category === 'Appliances'`); // Using JS syntax
1212
+ * ```
1213
+ */
1214
+ removeRows(conditions: string): Promise<void>;
1215
+ /**
1216
+ * Renames one or more columns in the table.
1217
+ *
1218
+ * @param names - An object mapping old column names to their new column names (e.g., `{ "oldName": "newName", "anotherOld": "anotherNew" }`).
1219
+ * @returns A promise that resolves when the columns have been renamed.
1220
+ * @category Column Operations
1221
+ *
1222
+ * @example
1223
+ * ```ts
1224
+ * // Rename "How old?" to "age" and "Man or woman?" to "sex"
1225
+ * await table.renameColumns({ "How old?": "age", "Man or woman?": "sex" });
1226
+ * ```
1227
+ *
1228
+ * @example
1229
+ * ```ts
1230
+ * // Rename a single column
1231
+ * await table.renameColumns({ "product_id": "productId" });
1232
+ * ```
1233
+ */
1234
+ renameColumns(names: {
1235
+ [key: string]: string;
1236
+ }): Promise<void>;
1237
+ /**
1238
+ * Cleans column names by removing non-alphanumeric characters and formatting them to camel case.
1239
+ *
1240
+ * @returns A promise that resolves when the column names have been cleaned.
1241
+ * @category Column Operations
1242
+ *
1243
+ * @example
1244
+ * ```ts
1245
+ * // Clean all column names in the table
1246
+ * // e.g., "First Name" becomes "firstName", "Product ID" becomes "productId"
1247
+ * await table.cleanColumnNames();
1248
+ * ```
1249
+ */
1250
+ cleanColumnNames(): Promise<void>;
1251
+ /**
1252
+ * Restructures this table by stacking (unpivoting) columns. This is useful for tidying up data from a wide format to a long format.
1253
+ *
1254
+ * For example, given a table showing employee counts per department per year:
1255
+ *
1256
+ * | Department | 2021 | 2022 | 2023 |
1257
+ * | :--------- | :--- | :--- | :--- |
1258
+ * | Accounting | 10 | 9 | 15 |
1259
+ * | Sales | 52 | 75 | 98 |
1260
+ *
1261
+ * We can restructure it by putting all year columns into a new column named `Year` and their corresponding employee counts into a new column named `Employees`.
1262
+ *
1263
+ * @example
1264
+ * ```ts
1265
+ * // Restructure the table by stacking year columns into 'year' and 'employees'
1266
+ * await table.longer(["2021", "2022", "2023"], "year", "employees");
1267
+ * ```
1268
+ *
1269
+ * The table will then look like this:
1270
+ *
1271
+ * | Department | Year | Employees |
1272
+ * | :--------- | :--- | :-------- |
1273
+ * | Accounting | 2021 | 10 |
1274
+ * | Accounting | 2022 | 9 |
1275
+ * | Accounting | 2023 | 15 |
1276
+ * | Sales | 2021 | 52 |
1277
+ * | Sales | 2022 | 75 |
1278
+ * | Sales | 2023 | 98 |
1279
+ *
1280
+ * @param columns - An array of strings representing the names of the columns to be stacked (unpivoted).
1281
+ * @param columnsTo - The name of the new column that will contain the original column names (e.g., "Year").
1282
+ * @param valuesTo - The name of the new column that will contain the values from the stacked columns (e.g., "Employees").
1283
+ * @returns A promise that resolves when the table has been restructured.
1284
+ * @category Restructuring Data
1285
+ */
1286
+ longer(columns: string[], columnsTo: string, valuesTo: string): Promise<void>;
1287
+ /**
1288
+ * Restructures this table by unstacking (pivoting) values, transforming data from a long format to a wide format.
1289
+ *
1290
+ * For example, given a table showing employee counts per department per year:
1291
+ *
1292
+ * | Department | Year | Employees |
1293
+ * | :--------- | :--- | :-------- |
1294
+ * | Accounting | 2021 | 10 |
1295
+ * | Accounting | 2022 | 9 |
1296
+ * | Accounting | 2023 | 15 |
1297
+ * | Sales | 2021 | 52 |
1298
+ * | Sales | 2022 | 75 |
1299
+ * | Sales | 2023 | 98 |
1300
+ *
1301
+ * We can restructure it by creating new columns for each year, with the associated employee counts as values.
1302
+ *
1303
+ * @example
1304
+ * ```ts
1305
+ * // Restructure the table by pivoting 'Year' into new columns with 'Employees' as values
1306
+ * await table.wider("Year", "Employees");
1307
+ * ```
1308
+ *
1309
+ * The table will then look like this:
1310
+ *
1311
+ * | Department | 2021 | 2022 | 2023 |
1312
+ * | :--------- | :--- | :--- | :--- |
1313
+ * | Accounting | 10 | 9 | 15 |
1314
+ * | Sales | 52 | 75 | 98 |
1315
+ *
1316
+ * @param columnsFrom - The name of the column containing the values that will be transformed into new column headers (e.g., "Year").
1317
+ * @param valuesFrom - The name of the column containing the values to be spread across the new columns (e.g., "Employees").
1318
+ * @returns A promise that resolves when the table has been restructured.
1319
+ * @category Restructuring Data
1320
+ */
1321
+ wider(columnsFrom: string, valuesFrom: string): Promise<void>;
1322
+ /**
1323
+ * Converts data types of specified columns to target types (JavaScript or SQL types).
1324
+ *
1325
+ * When converting timestamps, dates, or times to/from strings, you must provide a `datetimeFormat` option using [DuckDB's format specifiers](https://duckdb.org/docs/sql/functions/dateformat).
1326
+ *
1327
+ * When converting timestamps, dates, or times to/from numbers, the numerical representation will be in milliseconds since the Unix epoch (1970-01-01 00:00:00 UTC).
1328
+ *
1329
+ * When converting strings to numbers, commas (often used as thousand separators) will be automatically removed before conversion.
1330
+ *
1331
+ * @param types - An object mapping column names to their target data types for conversion.
1332
+ * @param options - An optional object with configuration options:
1333
+ * @param options.try - If `true`, values that cannot be converted will be replaced by `NULL` instead of throwing an error. Defaults to `false`.
1334
+ * @param options.datetimeFormat - A string specifying the format for date and time conversions. Uses `strftime` and `strptime` functions from DuckDB. For format specifiers, see [DuckDB's documentation](https://duckdb.org/docs/sql/functions/dateformat).
1335
+ * @returns A promise that resolves when the column types have been converted.
1336
+ * @category Updating Data
1337
+ *
1338
+ * @example
1339
+ * ```ts
1340
+ * // Convert 'column1' to string and 'column2' to integer (JavaScript types)
1341
+ * await table.convert({ column1: "string", column2: "integer" });
1342
+ * ```
1343
+ *
1344
+ * @example
1345
+ * ```ts
1346
+ * // Convert 'column1' to VARCHAR and 'column2' to BIGINT (SQL types)
1347
+ * await table.convert({ column1: "varchar", column2: "bigint" });
1348
+ * ```
1349
+ *
1350
+ * @example
1351
+ * ```ts
1352
+ * // Convert strings in 'column3' to datetime using a specific format
1353
+ * await table.convert({ column3: "datetime" }, { datetimeFormat: "%Y-%m-%d" });
1354
+ * ```
1355
+ *
1356
+ * @example
1357
+ * ```ts
1358
+ * // Convert datetime values in 'column3' to strings using a specific format
1359
+ * await table.convert({ column3: "string" }, { datetimeFormat: "%Y-%m-%d %H:%M:%S" });
1360
+ * ```
1361
+ *
1362
+ * @example
1363
+ * ```ts
1364
+ * // Convert 'amount' to float, replacing unconvertible values with NULL
1365
+ * await table.convert({ amount: "float" }, { try: true });
1366
+ * ```
1367
+ */
1368
+ convert(types: {
1369
+ [key: string]: "integer" | "float" | "number" | "string" | "date" | "time" | "datetime" | "datetimeTz" | "bigint" | "double" | "varchar" | "timestamp" | "timestamp with time zone" | "boolean";
1370
+ }, options?: {
1371
+ try?: boolean;
1372
+ datetimeFormat?: string;
1373
+ }): Promise<void>;
1374
+ /**
1375
+ * Removes the table from the database. After this operation, invoking methods on this SimpleTable instance will result in an error.
1376
+ *
1377
+ * @returns A promise that resolves when the table has been removed.
1378
+ * @category Table Management
1379
+ *
1380
+ * @example
1381
+ * ```ts
1382
+ * // Remove the current table from the database
1383
+ * await table.removeTable();
1384
+ * ```
1385
+ */
1386
+ removeTable(): Promise<void>;
1387
+ /**
1388
+ * Removes one or more columns from this table.
1389
+ *
1390
+ * @param columns - The name or an array of names of the columns to be removed.
1391
+ * @returns A promise that resolves when the columns have been removed.
1392
+ * @category Column Operations
1393
+ *
1394
+ * @example
1395
+ * ```ts
1396
+ * // Remove 'column1' and 'column2' from the table
1397
+ * await table.removeColumns(["column1", "column2"]);
1398
+ * ```
1399
+ *
1400
+ * @example
1401
+ * ```ts
1402
+ * // Remove a single column named 'tempColumn'
1403
+ * await table.removeColumns("tempColumn");
1404
+ * ```
1405
+ */
1406
+ removeColumns(columns: string | string[]): Promise<void>;
1407
+ /**
1408
+ * Adds a new column to the table based on a specified data type (JavaScript or SQL types) and a SQL definition.
1409
+ *
1410
+ * @param newColumn - The name of the new column to be added.
1411
+ * @param type - The data type for the new column. Can be a JavaScript type (e.g., `"number"`, `"string"`) or a SQL type (e.g., `"integer"`, `"varchar"`).
1412
+ * @param definition - A SQL expression defining how the values for the new column should be computed (e.g., `"column1 + column2"`, `"ST_Centroid(geom_column)"`).
1413
+ * @param options - An optional object with configuration options:
1414
+ * @returns A promise that resolves when the new column has been added.
1415
+ * @category Column Operations
1416
+ *
1417
+ * @example
1418
+ * ```ts
1419
+ * // Add a new column 'total' as a float, calculated from 'column1' and 'column2'
1420
+ * await table.addColumn("total", "float", "column1 + column2");
1421
+ * ```
1422
+ *
1423
+ * @example
1424
+ * ```ts
1425
+ * // Add a new geometry column 'centroid' using the centroid of an existing 'country' geometry column
1426
+ * await table.addColumn("centroid", "geometry('EPSG:4326')", `ST_Centroid("country")`);
1427
+ * ```
1428
+ */
1429
+ addColumn(newColumn: string, type: "integer" | "float" | "number" | "string" | "date" | "time" | "datetime" | "datetimeTz" | "bigint" | "double" | "varchar" | "timestamp" | "timestamp with time zone" | "boolean" | `geometry('${string}')` | `GEOMETRY('${string}')`, definition: string): Promise<void>;
1430
+ /**
1431
+ * Adds a new column to the table containing the row number, starting at 0 (like an index).
1432
+ *
1433
+ * @param newColumn - The name of the new column that will store the row number.
1434
+ * @param options - An optional object with configuration options:
1435
+ * @param options.categories - A string or an array of strings representing columns to partition the data by. The row number will restart at 0 for each unique combination of values in these columns.
1436
+ * @returns A promise that resolves when the row number column has been added.
1437
+ * @category Column Operations
1438
+ *
1439
+ * @example
1440
+ * ```ts
1441
+ * // Add a new column named 'rowNumber' with the row number for each row
1442
+ * await table.addRowNumber("rowNumber");
1443
+ * ```
1444
+ *
1445
+ * @example
1446
+ * ```ts
1447
+ * // Add a new column named 'rowNumber' with the row number for each 'category'
1448
+ * await table.addRowNumber("rowNumber", { categories: "category" });
1449
+ * ```
1450
+ */
1451
+ addRowNumber(newColumn: string, options?: {
1452
+ categories?: string | string[];
1453
+ }): Promise<void>;
1454
+ /**
1455
+ * Performs a cross join operation with another table. A cross join returns the Cartesian product of the rows from both tables, meaning all possible pairs of rows will be in the resulting table.
1456
+ * This means that if the left table has `n` rows and the right table has `m` rows, the result will have `n * m` rows.
1457
+ *
1458
+ * @param rightTable - The SimpleTable instance to cross join with.
1459
+ * @param options - An optional object with configuration options:
1460
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
1461
+ * @returns A promise that resolves to a table instance containing the cross-joined data (either the modified current table or a new table).
1462
+ * @category Table Operations
1463
+ *
1464
+ * @example
1465
+ * ```ts
1466
+ * // Perform a cross join with 'tableB', overwriting the current table (tableA)
1467
+ * await tableA.crossJoin(tableB);
1468
+ * ```
1469
+ *
1470
+ * @example
1471
+ * ```ts
1472
+ * // Perform a cross join with 'tableB' and store the results in a new table with a generated name
1473
+ * const tableC = await tableA.crossJoin(tableB, { outputTable: true });
1474
+ * ```
1475
+ *
1476
+ * @example
1477
+ * ```ts
1478
+ * // Perform a cross join with 'tableB' and store the results in a new table named 'tableC'
1479
+ * const tableC = await tableA.crossJoin(tableB, { outputTable: "tableC" });
1480
+ * ```
1481
+ */
1482
+ crossJoin(rightTable: SimpleTable, options?: {
1483
+ outputTable?: string | boolean;
1484
+ }): Promise<this>;
1485
+ /**
1486
+ * Merges the data of this table (considered the left table) with another table (the right table) based on a common column or multiple columns.
1487
+ * Note that the order of rows in the returned data is not guaranteed to be the same as in the original tables.
1488
+ * This operation might create temporary files in a `.tmp` folder; consider adding `.tmp` to your `.gitignore`.
1489
+ *
1490
+ * @param rightTable - The SimpleTable instance to be joined with this table.
1491
+ * @param options - An optional object with configuration options:
1492
+ * @param options.commonColumn - The common column(s) used for the join operation. If omitted, the method automatically searches for a column name that exists in both tables. Can be a single string or an array of strings for multiple join keys.
1493
+ * @param options.type - The type of join operation to perform. Possible values are `"inner"`, `"left"` (default), `"right"`, or `"full"`.
1494
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
1495
+ * @returns A promise that resolves to a table instance containing the joined data (either the modified current table or a new table).
1496
+ * @category Table Operations
1497
+ *
1498
+ * @example
1499
+ * ```ts
1500
+ * // Perform a left join with 'tableB' on a common column (auto-detected), overwriting tableA
1501
+ * await tableA.join(tableB);
1502
+ * ```
1503
+ *
1504
+ * @example
1505
+ * ```ts
1506
+ * // Perform an inner join with 'tableB' on the 'id' column, storing results in a new table named 'tableC'
1507
+ * const tableC = await tableA.join(tableB, { commonColumn: 'id', type: 'inner', outputTable: "tableC" });
1508
+ * ```
1509
+ *
1510
+ * @example
1511
+ * ```ts
1512
+ * // Perform a join on multiple columns ('name' and 'category')
1513
+ * await tableA.join(tableB, { commonColumn: ['name', 'category'] });
1514
+ * ```
1515
+ */
1516
+ join(rightTable: SimpleTable, options?: {
1517
+ commonColumn?: string | string[];
1518
+ type?: "inner" | "left" | "right" | "full";
1519
+ outputTable?: string | boolean;
1520
+ }): Promise<this>;
1521
+ /**
1522
+ * Performs a fuzzy left join between this table (considered the left table) and another table
1523
+ * (the right table) based on string similarity between two text columns. Uses the
1524
+ * [rapidfuzz](https://query.farm/duckdb_extension_rapidfuzz) DuckDB community extension.
1525
+ *
1526
+ * If a similarity score column is added to the results, the rows will be ordered alphabetically by the left column, and then by descending similarity score within each group of identical left column values. Otherwise, the rows will be order alphabetically by the left column and then by the right column.
1527
+ *
1528
+ * This operation might create temporary files in a `.tmp` folder; consider adding `.tmp` to your `.gitignore`.
1529
+ *
1530
+ * @param rightTable - The SimpleTable instance to be joined with this table.
1531
+ * @param leftColumn - The name of the column in this (left) table containing the text to compare.
1532
+ * @param rightColumn - The name of the column in the right table containing the text to compare.
1533
+ * @param threshold - The minimum similarity score (0–100) required for two rows to be joined. For `method: "ratio"`, a length-based pre-filter is automatically applied based on the threshold to improve performance without losing accuracy.
1534
+ * @param options - An optional object with configuration options:
1535
+ * @param options.method - The rapidfuzz similarity algorithm to use. Defaults to `"ratio"`.
1536
+ * - `"ratio"`: Overall similarity (Levenshtein-based).
1537
+ * - `"partial_ratio"`: Best partial/substring similarity.
1538
+ * - `"token_sort_ratio"`: Similarity after sorting tokens (words), useful for reordered words.
1539
+ * - `"token_set_ratio"`: Similarity based on sets of tokens, ignoring duplicates and word order.
1540
+ * @param options.similarityColumn - If provided, a column with this name is added to the result containing the similarity score (0–100). If omitted, the score is not included in the output.
1541
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
1542
+ * @param options.preFilterPrefixLen - An optional prefix length. Only strings sharing the same first N characters are compared. Note that prefix filtering is lossy (e.g. "John" vs. "Phon" will not match despite high similarity).
1543
+ * @returns A promise that resolves to a table instance containing the fuzzy-joined data (either the modified current table or a new table).
1544
+ * @category Table Operations
1545
+ *
1546
+ * @example
1547
+ * ```ts
1548
+ * // Fuzzy left join tableA with tableB on 'name' (left) and 'standardName' (right) with a threshold of 80
1549
+ * // A length-based pre-filter is automatically applied.
1550
+ * await tableA.fuzzyJoin(tableB, "name", "standardName", 80);
1551
+ * ```
1552
+ *
1553
+ * @example
1554
+ * ```ts
1555
+ * // Fuzzy join with a prefix-based pre-filter and a threshold of 80
1556
+ * await tableA.fuzzyJoin(tableB, "name", "standardName", 80, {
1557
+ * preFilterPrefixLen: 3, // Must share the same first 3 characters
1558
+ * });
1559
+ * ```
1560
+ *
1561
+ * @example
1562
+ * ```ts
1563
+ * // Fuzzy join with a custom threshold and method, storing results in a new table
1564
+ * const tableC = await tableA.fuzzyJoin(tableB, "name", "standardName", 90, {
1565
+ * method: "token_sort_ratio",
1566
+ * outputTable: "tableC",
1567
+ * });
1568
+ * ```
1569
+ *
1570
+ * @example
1571
+ * ```ts
1572
+ * // Fuzzy join with a custom similarity column name and a threshold of 80
1573
+ * await tableA.fuzzyJoin(tableB, "name", "standardName", 80, {
1574
+ * similarityColumn: "matchScore",
1575
+ * });
1576
+ * ```
1577
+ */
1578
+ fuzzyJoin(rightTable: SimpleTable, leftColumn: string, rightColumn: string, threshold: number, options?: {
1579
+ method?: "ratio" | "partial_ratio" | "token_sort_ratio" | "token_set_ratio";
1580
+ similarityColumn?: string;
1581
+ outputTable?: string | boolean;
1582
+ preFilterPrefixLen?: number;
1583
+ }): Promise<this>;
1584
+ /**
1585
+ * Normalizes string values in a column by detecting fuzzy duplicates and replacing them with a single canonical value.
1586
+ *
1587
+ * Similar strings are grouped into clusters. Matching is transitive: if `"New York"` is similar to `"New Yorke"` and
1588
+ * `"New Yorke"` is similar to `"New Yorkk"`, all three land in the same cluster even if `"New York"` and `"New Yorkk"`
1589
+ * would not match directly. Each cluster is then collapsed to one representative value based on the `keep` strategy.
1590
+ *
1591
+ * Similarity is computed using the [rapidfuzz](https://query.farm/duckdb_extension_rapidfuzz) DuckDB community extension,
1592
+ * which is installed and loaded automatically.
1593
+ *
1594
+ * @param column - The name of the column containing the strings to normalize.
1595
+ * @param newColumn - The name of the column to write the normalized values to. Use the same name as `column` to normalize in-place.
1596
+ * @param threshold - The minimum similarity score (0–100) for two strings to be considered duplicates. For `method: "ratio"`, a length-based pre-filter is automatically applied based on the threshold to improve performance without losing accuracy.
1597
+ * @param options - An optional object with configuration options:
1598
+ * @param options.method - The rapidfuzz similarity algorithm to use. Defaults to `"ratio"`.
1599
+ * - `"ratio"`: Overall similarity.
1600
+ * - `"partial_ratio"`: Best partial/substring similarity.
1601
+ * - `"token_sort_ratio"`: Similarity after sorting tokens (words), useful for reordered words.
1602
+ * - `"token_set_ratio"`: Similarity based on sets of tokens, ignoring duplicates and word order.
1603
+ * @param options.keep - The strategy for choosing the canonical value within each cluster of similar strings. Defaults to `"mostCommon"`.
1604
+ * - `"mostCommon"`: Keep the value that appears most frequently in the original column.
1605
+ * - `"longestString"`: Keep the longest string in the cluster.
1606
+ * - `"shortestString"`: Keep the shortest string in the cluster.
1607
+ * - `"mostCentral"`: Keep the string with the highest total similarity score to all other cluster members (the most "central" string).
1608
+ * - `"maxScore"`: Keep the string that participates in the single highest-scoring pairwise match within the cluster.
1609
+ * @param options.preFilterPrefixLen - An optional prefix length. Only strings sharing the same first N characters are compared. Note that prefix filtering is lossy (e.g. "John" vs. "Phon" will not match despite high similarity).
1610
+ * @returns A promise that resolves when the column has been normalized.
1611
+ * @category Updating Data
1612
+ *
1613
+ * @example
1614
+ * ```ts
1615
+ * // Normalize 'city' into a new 'cityClean' column, keeping the most common string per cluster with a threshold of 80
1616
+ * // A length-based pre-filter is automatically applied.
1617
+ * await table.fuzzyClean("city", "cityClean", 80);
1618
+ * ```
1619
+ *
1620
+ * @example
1621
+ * ```ts
1622
+ * // Normalize with a prefix-based pre-filter and a threshold of 80
1623
+ * await table.fuzzyClean("city", "cityClean", 80, {
1624
+ * preFilterPrefixLen: 5, // Must share the same first 5 characters
1625
+ * });
1626
+ * ```
1627
+ *
1628
+ * @example
1629
+ * ```ts
1630
+ * // Normalize 'companyName' into a new column using token_sort_ratio and a threshold of 90
1631
+ * await table.fuzzyClean("companyName", "companyNameClean", 90, { method: "token_sort_ratio" });
1632
+ * ```
1633
+ *
1634
+ * @example
1635
+ * ```ts
1636
+ * // Normalize 'category' in-place, keeping the longest string in each cluster and a threshold of 80
1637
+ * await table.fuzzyClean("category", "category", 80, { keep: "longestString" });
1638
+ * ```
1639
+ */
1640
+ fuzzyClean(column: string, newColumn: string, threshold: number, options?: {
1641
+ method?: "ratio" | "partial_ratio" | "token_sort_ratio" | "token_set_ratio";
1642
+ keep?: "mostCommon" | "longestString" | "shortestString" | "mostCentral" | "maxScore";
1643
+ preFilterPrefixLen?: number;
1644
+ }): Promise<void>;
1645
+ /**
1646
+ * Replaces specified strings in the selected columns.
1647
+ *
1648
+ * @param columns - The column name, an array of column names, or `"all"` to apply the replacement to every column in the table.
1649
+ * @param strings - An object mapping old strings to new strings (e.g., `{ "oldValue": "newValue" }`).
1650
+ * @param options - An optional object with configuration options:
1651
+ * @param options.entireString - A boolean indicating whether the entire cell content must match the `oldString` for replacement to occur. Defaults to `false` (replaces substrings).
1652
+ * @param options.regex - A boolean indicating whether the `oldString` should be treated as a regular expression for global replacement. Cannot be used with `entireString: true`. Defaults to `false`.
1653
+ * @returns A promise that resolves when the string replacements are complete.
1654
+ * @category Updating Data
1655
+ *
1656
+ * @example
1657
+ * ```ts
1658
+ * // Replace all occurrences of "kilograms" with "kg" in 'column1'
1659
+ * await table.replace("column1", { "kilograms": "kg" });
1660
+ * ```
1661
+ *
1662
+ * @example
1663
+ * ```ts
1664
+ * // Replace "kilograms" with "kg" and "liters" with "l" in 'column1' and 'column2'
1665
+ * await table.replace(["column1", "column2"], { "kilograms": "kg", "liters": "l" });
1666
+ * ```
1667
+ *
1668
+ * @example
1669
+ * ```ts
1670
+ * // Replace only if the entire string in 'column1' is "kilograms"
1671
+ * await table.replace("column1", { "kilograms": "kg" }, { entireString: true });
1672
+ * ```
1673
+ *
1674
+ * @example
1675
+ * ```ts
1676
+ * // Replace any sequence of one or more digits with a hyphen in 'column1' using regex
1677
+ * await table.replace("column1", { "\d+": "-" }, { regex: true });
1678
+ * ```
1679
+ *
1680
+ * @example
1681
+ * ```ts
1682
+ * // Replace "%" with "" in all columns
1683
+ * await table.replace("all", { "%": "" });
1684
+ * ```
1685
+ */
1686
+ replace(columns: "all" | string | string[], strings: {
1687
+ [key: string]: string;
1688
+ }, options?: {
1689
+ entireString?: boolean;
1690
+ regex?: boolean;
1691
+ }): Promise<void>;
1692
+ /**
1693
+ * Converts string values in the specified columns to lowercase.
1694
+ *
1695
+ * @param columns - The column name or an array of column names to be converted to lowercase.
1696
+ * @returns A promise that resolves when the strings have been converted to lowercase.
1697
+ * @category Updating Data
1698
+ *
1699
+ * @example
1700
+ * ```ts
1701
+ * // Convert strings in 'column1' to lowercase
1702
+ * await table.lower("column1");
1703
+ * ```
1704
+ *
1705
+ * @example
1706
+ * ```ts
1707
+ * // Convert strings in 'column1' and 'column2' to lowercase
1708
+ * await table.lower(["column1", "column2"]);
1709
+ * ```
1710
+ */
1711
+ lower(columns: string | string[]): Promise<void>;
1712
+ /**
1713
+ * Converts string values in the specified columns to uppercase.
1714
+ *
1715
+ * @param columns - The column name or an array of column names to be converted to uppercase.
1716
+ * @returns A promise that resolves when the strings have been converted to uppercase.
1717
+ * @category Updating Data
1718
+ *
1719
+ * @example
1720
+ * ```ts
1721
+ * // Convert strings in 'column1' to uppercase
1722
+ * await table.upper("column1");
1723
+ * ```
1724
+ *
1725
+ * @example
1726
+ * ```ts
1727
+ * // Convert strings in 'column1' and 'column2' to uppercase
1728
+ * await table.upper(["column1", "column2"]);
1729
+ * ```
1730
+ */
1731
+ upper(columns: string | string[]): Promise<void>;
1732
+ /**
1733
+ * Capitalizes the first letter of each string in the specified columns and converts the rest of the string to lowercase.
1734
+ *
1735
+ * @param columns - The column name or an array of column names to be capitalized.
1736
+ * @returns A promise that resolves when the strings have been capitalized.
1737
+ * @category Updating Data
1738
+ *
1739
+ * @example
1740
+ * ```ts
1741
+ * // Capitalize strings in 'column1' (e.g., "hello world" becomes "Hello world")
1742
+ * await table.capitalize("column1");
1743
+ * ```
1744
+ *
1745
+ * @example
1746
+ * ```ts
1747
+ * // Capitalize strings in 'column1' and 'column2'
1748
+ * await table.capitalize(["column1", "column2"]);
1749
+ * ```
1750
+ */
1751
+ capitalize(columns: string | string[]): Promise<void>;
1752
+ /**
1753
+ * Truncates string values in a specified column to a maximum number of characters.
1754
+ *
1755
+ * @param column - The column name containing strings to be truncated.
1756
+ * @param length - The maximum number of characters to keep.
1757
+ * @returns A promise that resolves when the strings have been truncated.
1758
+ * @category Updating Data
1759
+ *
1760
+ * @example
1761
+ * ```ts
1762
+ * // Truncate strings in 'description' column to 50 characters
1763
+ * await table.truncate("description", 50);
1764
+ * ```
1765
+ *
1766
+ * @example
1767
+ * ```ts
1768
+ * // Truncate strings in 'name' column to 10 characters
1769
+ * await table.truncate("name", 10);
1770
+ * ```
1771
+ */
1772
+ truncate(column: string, length: number): Promise<void>;
1773
+ /**
1774
+ * Pads the strings in the specified columns to a target length.
1775
+ *
1776
+ * The columns must contain string (VARCHAR) values. An error is thrown if any
1777
+ * column is of a different type. `null` values remain `null`. If any string
1778
+ * already exceeds the target length, an error is thrown (no silent truncation).
1779
+ *
1780
+ * @param columns - The column name(s) containing strings to be padded.
1781
+ * @param length - The target length of the padded strings.
1782
+ * @param options - An optional object with configuration options:
1783
+ * @param options.method - Which side to pad. `'left'` (default) or `'right'`.
1784
+ * @param options.char - The character to use for padding. Defaults to `'0'`.
1785
+ * @returns A promise that resolves when the padding operation is complete.
1786
+ * @throws {Error} If any column is not of string (VARCHAR) type.
1787
+ * @throws {Error} If any string value exceeds the target length.
1788
+ * @category Updating Data
1789
+ *
1790
+ * @example
1791
+ * ```ts
1792
+ * // Left-pad 'id' column to 3 characters with zeros (default)
1793
+ * await table.pad("id", 3);
1794
+ * // Result: '1' -> '001', '23' -> '023', null -> null
1795
+ * ```
1796
+ *
1797
+ * @example
1798
+ * ```ts
1799
+ * // Right-pad 'code' column to 5 characters with spaces
1800
+ * await table.pad("code", 5, { method: "right", char: " " });
1801
+ * // Result: '123' -> '123 ', '45' -> '45 ', null -> null
1802
+ * ```
1803
+ *
1804
+ * @example
1805
+ * ```ts
1806
+ * // Left-pad multiple columns to 5 characters with dashes
1807
+ * await table.pad(["id", "code"], 5, { method: "left", char: "-" });
1808
+ * // Result: '1' -> '----1', '23' -> '---23'
1809
+ * ```
1810
+ */
1811
+ pad(columns: string | string[], length: number, options?: {
1812
+ method?: "left" | "right";
1813
+ char?: string;
1814
+ }): Promise<void>;
1815
+ /**
1816
+ * Splits strings in a specified column by a separator and extracts a substring at a given index, storing the result in a new or existing column.
1817
+ * If the index is out of bounds, an empty string will be returned for that row.
1818
+ *
1819
+ * @param column - The name of the column containing the strings to be split.
1820
+ * @param separator - The substring to use as a delimiter for splitting the strings.
1821
+ * @param index - The zero-based index of the substring to extract after splitting. For example, `0` for the first part, `1` for the second, etc.
1822
+ * @param newColumn - The name of the column where the extracted substrings will be stored. To overwrite the original column, use the same name as `column`.
1823
+ * @returns A promise that resolves when the strings have been split and extracted.
1824
+ * @category Updating Data
1825
+ *
1826
+ * @example
1827
+ * ```ts
1828
+ * // Split 'address' by comma and extract the second part (index 1) into a new 'city' column
1829
+ * // e.g., "123 Main St, Anytown, USA" -> "Anytown"
1830
+ * await table.splitExtract("address", ",", 1, "city");
1831
+ * ```
1832
+ *
1833
+ * @example
1834
+ * ```ts
1835
+ * // Split 'fileName' by dot and extract the first part (index 0), overwriting 'fileName'
1836
+ * // e.g., "document.pdf" -> "document"
1837
+ * await table.splitExtract("fileName", ".", 0, "fileName");
1838
+ * ```
1839
+ */
1840
+ splitExtract(column: string, separator: string, index: number, newColumn: string): Promise<void>;
1841
+ /**
1842
+ * Splits strings in a specified column by a separator and spreads the resulting parts into multiple new columns.
1843
+ *
1844
+ * Each part of the split string will be stored in a separate column. The number of columns created is determined by the length of the `newColumns` array.
1845
+ * If a row has fewer parts than the number of new columns, a warning will be logged and the extra columns will contain empty strings (unless `noCheck` is set to true).
1846
+ * If a row has more parts than the number of new columns, an error will be thrown unless `noCheck` is set to true.
1847
+ *
1848
+ * @param column - The name of the column containing the strings to be split.
1849
+ * @param separator - The substring to use as a delimiter for splitting the strings.
1850
+ * @param newColumns - An array of column names for the extracted parts.
1851
+ * @param options - Optional configuration.
1852
+ * @param options.noCheck - If true, skips all validation checks (both max and min parts). Default is false.
1853
+ * @returns A promise that resolves when the strings have been split and spread into new columns.
1854
+ * @category Updating Data
1855
+ *
1856
+ * @example
1857
+ * ```ts
1858
+ * // Split 'fullName' by comma and spread into 'lastName' and 'firstName'
1859
+ * // e.g., "Shiab, Nael" -> lastName: "Shiab", firstName: "Nael"
1860
+ * await table.splitSpread("fullName", ",", ["lastName", "firstName"]);
1861
+ * ```
1862
+ *
1863
+ * @example
1864
+ * ```ts
1865
+ * // Split 'address' by comma and spread into three columns
1866
+ * // e.g., "123 Main St, Anytown, USA" -> street: "123 Main St", city: "Anytown", country: "USA"
1867
+ * await table.splitSpread("address", ",", ["street", "city", "country"]);
1868
+ * ```
1869
+ *
1870
+ * @example
1871
+ * ```ts
1872
+ * // Skip validation for performance with noCheck option
1873
+ * await table.splitSpread("data", "|", ["col1", "col2"], { noCheck: true });
1874
+ * ```
1875
+ */
1876
+ splitSpread(column: string, separator: string, newColumns: string[], options?: {
1877
+ noCheck?: boolean;
1878
+ }): Promise<void>;
1879
+ /**
1880
+ * Extracts a specific number of characters from the beginning (left side) of string values in the specified column.
1881
+ *
1882
+ * @param column - The name of the column containing the strings to be modified.
1883
+ * @param numberOfCharacters - The number of characters to extract from the left side of each string.
1884
+ * @returns A promise that resolves when the strings have been updated.
1885
+ * @category Updating Data
1886
+ *
1887
+ * @example
1888
+ * ```ts
1889
+ * // Replace strings in 'productCode' with their first two characters
1890
+ * // e.g., "ABC-123" becomes "AB"
1891
+ * await table.left("productCode", 2);
1892
+ * ```
1893
+ */
1894
+ left(column: string, numberOfCharacters: number): Promise<void>;
1895
+ /**
1896
+ * Extracts a specific number of characters from the end (right side) of string values in the specified column.
1897
+ *
1898
+ * @param column - The name of the column containing the strings to be modified.
1899
+ * @param numberOfCharacters - The number of characters to extract from the right side of each string.
1900
+ * @returns A promise that resolves when the strings have been updated.
1901
+ * @category Updating Data
1902
+ *
1903
+ * @example
1904
+ * ```ts
1905
+ * // Replace strings in 'productCode' with their last two characters
1906
+ * // e.g., "ABC-123" becomes "23"
1907
+ * await table.right("productCode", 2);
1908
+ * ```
1909
+ */
1910
+ right(column: string, numberOfCharacters: number): Promise<void>;
1911
+ /**
1912
+ * Replaces `NULL` values in the specified columns with a given value.
1913
+ *
1914
+ * @param columns - The column name, an array of column names, or `"all"` to apply the replacement to every column in the table.
1915
+ * @param value - The value to replace `NULL` occurrences with.
1916
+ * @returns A promise that resolves when the `NULL` values have been replaced.
1917
+ * @category Updating Data
1918
+ *
1919
+ * @example
1920
+ * ```ts
1921
+ * // Replace NULL values in 'column1' with 0
1922
+ * await table.replaceNulls("column1", 0);
1923
+ * ```
1924
+ *
1925
+ * @example
1926
+ * ```ts
1927
+ * // Replace NULL values in 'columnA' and 'columnB' with the string "N/A"
1928
+ * await table.replaceNulls(["columnA", "columnB"], "N/A");
1929
+ * ```
1930
+ *
1931
+ * @example
1932
+ * ```ts
1933
+ * // Replace NULL values in 'dateColumn' with a specific date
1934
+ * await table.replaceNulls("dateColumn", new Date("2023-01-01"));
1935
+ * ```
1936
+ *
1937
+ * @example
1938
+ * ```ts
1939
+ * // Replace NULL values in all columns with 0
1940
+ * await table.replaceNulls("all", 0);
1941
+ * ```
1942
+ */
1943
+ replaceNulls(columns: "all" | string | string[], value: number | string | Date | boolean): Promise<void>;
1944
+ /**
1945
+ * Concatenates values from specified columns into a new column.
1946
+ *
1947
+ * @param columns - An array of column names whose values will be concatenated.
1948
+ * @param newColumn - The name of the new column to store the concatenated values.
1949
+ * @param options - An optional object with configuration options:
1950
+ * @param options.separator - The string used to separate concatenated values. Defaults to an empty string (`""`).
1951
+ * @returns A promise that resolves when the concatenation is complete.
1952
+ * @category Updating Data
1953
+ *
1954
+ * @example
1955
+ * ```ts
1956
+ * // Concatenate 'firstName' and 'lastName' into a new 'fullName' column
1957
+ * await table.concatenate(["firstName", "lastName"], "fullName");
1958
+ * ```
1959
+ *
1960
+ * @example
1961
+ * ```ts
1962
+ * // Concatenate 'city' and 'country' into 'location', separated by a comma and space
1963
+ * await table.concatenate(["city", "country"], "location", { separator: ", " });
1964
+ * ```
1965
+ */
1966
+ concatenate(columns: string[], newColumn: string, options?: {
1967
+ separator?: string;
1968
+ }): Promise<void>;
1969
+ /**
1970
+ * Concatenates values from multiple columns into a new column with labeled rows.
1971
+ *
1972
+ * This method creates a new column where each value is a concatenation of the specified columns,
1973
+ * with each column value prefixed by its column name and a colon, followed by a newline.
1974
+ * Column entries are separated by double newlines ("\n\n").
1975
+ *
1976
+ * All values must be string, otherwise an error will be thrown. Use the `convert()` method first to convert non-string columns to string.
1977
+ *
1978
+ * If a column value is `NULL`, it will be replaced by `'Unknown'` in the concatenated result.
1979
+ *
1980
+ * @param columns - An array of column names whose values will be concatenated with labels.
1981
+ * @param newColumn - The name of the new column to create with the concatenated values.
1982
+ * @returns A promise that resolves when the concatenation is complete.
1983
+ * @category Updating Data
1984
+ *
1985
+ * @example
1986
+ * ```ts
1987
+ * // Concatenate multiple string columns into a labeled text field
1988
+ * await table.concatenateRow(
1989
+ * ["summary", "findings", "context", "date", "quote"],
1990
+ * "fullText"
1991
+ * );
1992
+ * // Result in "fullText" will look like:
1993
+ * // summary:
1994
+ * // [value]
1995
+ * //
1996
+ * // findings:
1997
+ * // [value]
1998
+ * //
1999
+ * // context:
2000
+ * // [value]
2001
+ * //
2002
+ * // date:
2003
+ * // [value]
2004
+ * //
2005
+ * // quote:
2006
+ * // [value]
2007
+ * ```
2008
+ *
2009
+ * @example
2010
+ * ```ts
2011
+ * // Convert numeric columns to strings first, then concatenate
2012
+ * // NULL values will appear as 'Unknown'
2013
+ * await table.convert({ age: "string", salary: "string" });
2014
+ * await table.concatenateRow(["name", "age", "salary"], "profile");
2015
+ * ```
2016
+ */
2017
+ concatenateRow(columns: string[], newColumn: string): Promise<void>;
2018
+ /**
2019
+ * Unnests (expands) rows by splitting a column's string values into multiple rows based on a separator.
2020
+ *
2021
+ * Each value in the specified column is split using the provided separator, and a new row is created for each resulting substring. All other column values are duplicated across the newly created rows.
2022
+ *
2023
+ * @param column - The name of the column containing string values to be split and unnested.
2024
+ * @param separator - The delimiter string used to split the column values.
2025
+ * @returns A promise that resolves when the unnesting is complete.
2026
+ * @category Updating Data
2027
+ *
2028
+ * @example
2029
+ * ```ts
2030
+ * // Unnest 'tags' column separated by commas
2031
+ * // Before: [{ id: 1, tags: "red,blue,green" }]
2032
+ * // After: [{ id: 1, tags: "red" }, { id: 1, tags: "blue" }, { id: 1, tags: "green" }]
2033
+ * await table.unnest("tags", ",");
2034
+ * ```
2035
+ *
2036
+ * @example
2037
+ * ```ts
2038
+ * // Unnest 'neighborhoods' column separated by " / "
2039
+ * // Before: [{ city: "Montreal", neighborhoods: "Old Montreal / Chinatown / Griffintown" }]
2040
+ * // After: [{ city: "Montreal", neighborhoods: "Old Montreal" },
2041
+ * // { city: "Montreal", neighborhoods: "Chinatown" },
2042
+ * // { city: "Montreal", neighborhoods: "Griffintown" }]
2043
+ * await table.unnest("neighborhoods", " / ");
2044
+ * ```
2045
+ */
2046
+ unnest(column: string, separator: string): Promise<void>;
2047
+ /**
2048
+ * Repeats rows based on the values in a column.
2049
+ *
2050
+ * If a row has a value of 3 in the specified column, it will be repeated 3 times. If the value is 0 or negative, the row will be removed.
2051
+ *
2052
+ * @param column - The name of the column containing the number of times each row should be repeated.
2053
+ * @param options - An optional object with configuration options:
2054
+ * @param options.index - The name of a new column to store the index of the repeated row (starting at 0).
2055
+ * @category Updating Data
2056
+ *
2057
+ * @example
2058
+ * ```ts
2059
+ * // Before: [{ id: 1, count: 2, category: "A" }, { id: 2, count: 3, category: "B" }]
2060
+ * await table.repeatRows("count");
2061
+ * // After: [{ id: 1, count: 2, category: "A" }, { id: 1, count: 2, category: "A" },
2062
+ * // { id: 2, count: 3, category: "B" }, { id: 2, count: 3, category: "B" }, { id: 2, count: 3, category: "B" }]
2063
+ * ```
2064
+ *
2065
+ * @example
2066
+ * ```ts
2067
+ * // With an index column
2068
+ * await table.repeatRows("count", { index: "copyId" });
2069
+ * // After: [{ id: 1, count: 2, category: "A", copyId: 0 }, { id: 1, count: 2, category: "A", copyId: 1 },
2070
+ * // { id: 2, count: 3, category: "B", copyId: 0 }, { id: 2, count: 3, category: "B", copyId: 1 }, { id: 2, count: 3, category: "B", copyId: 2 }]
2071
+ * ```
2072
+ */
2073
+ repeatRows(column: string, options?: {
2074
+ index?: string;
2075
+ }): Promise<void>;
2076
+ /**
2077
+ * Nests (collapses) rows by aggregating a column's values into a single string per group, separated by a delimiter.
2078
+ *
2079
+ * This is the inverse operation of `unnest()`. Multiple rows are combined into fewer rows by grouping on specified category columns and concatenating the target column values with a separator.
2080
+ *
2081
+ * @param column - The name of the column whose values will be aggregated and concatenated.
2082
+ * @param separator - The delimiter string used to join the column values.
2083
+ * @param categories - The column name or an array of column names to group by.
2084
+ * @returns A promise that resolves when the nesting is complete.
2085
+ * @category Updating Data
2086
+ *
2087
+ * @example
2088
+ * ```ts
2089
+ * // Nest 'neighborhoods' column separated by " / " for each city
2090
+ * // Before: [{ city: "Montreal", neighborhoods: "Old Montreal" },
2091
+ * // { city: "Montreal", neighborhoods: "Chinatown" },
2092
+ * // { city: "Montreal", neighborhoods: "Griffintown" }]
2093
+ * // After: [{ city: "Montreal", neighborhoods: "Old Montreal / Chinatown / Griffintown" }]
2094
+ * await table.nest("neighborhoods", " / ", "city");
2095
+ * ```
2096
+ *
2097
+ * @example
2098
+ * ```ts
2099
+ * // Nest with multiple category columns
2100
+ * // Before: [{ country: "Canada", city: "Montreal", tags: "red" },
2101
+ * // { country: "Canada", city: "Montreal", tags: "blue" }]
2102
+ * // After: [{ country: "Canada", city: "Montreal", tags: "red,blue" }]
2103
+ * await table.nest("tags", ",", ["country", "city"]);
2104
+ * ```
2105
+ */
2106
+ nest(column: string, separator: string, categories: string | string[]): Promise<void>;
2107
+ /**
2108
+ * Rounds numeric values in specified columns.
2109
+ *
2110
+ * @param columns - The column name or an array of column names containing numeric values to be rounded.
2111
+ * @param options - An optional object with configuration options:
2112
+ * @param options.decimals - The number of decimal places to round to. Defaults to `0` (rounds to the nearest integer).
2113
+ * @param options.method - The rounding method to use: `"round"` (rounds to the nearest integer, with halves rounding up), `"ceiling"` (rounds up to the nearest integer), or `"floor"` (rounds down to the nearest integer). Defaults to `"round"`.
2114
+ * @returns A promise that resolves when the numeric values have been rounded.
2115
+ * @category Updating Data
2116
+ *
2117
+ * @example
2118
+ * ```ts
2119
+ * // Round 'column1' values to the nearest integer
2120
+ * await table.round("column1");
2121
+ * ```
2122
+ *
2123
+ * @example
2124
+ * ```ts
2125
+ * // Round 'column1' values to 2 decimal places
2126
+ * await table.round("column1", { decimals: 2 });
2127
+ * ```
2128
+ *
2129
+ * @example
2130
+ * ```ts
2131
+ * // Round 'column1' values down to the nearest integer (floor)
2132
+ * await table.round("column1", { method: "floor" });
2133
+ * ```
2134
+ *
2135
+ * @example
2136
+ * ```ts
2137
+ * // Round 'columnA' and 'columnB' values to 1 decimal place using ceiling method
2138
+ * await table.round(["columnA", "columnB"], { decimals: 1, method: "ceiling" });
2139
+ * ```
2140
+ *
2141
+ * @example
2142
+ * ```ts
2143
+ * // Round 'column1' values to 2 decimal places using the shorthand
2144
+ * await table.round("column1", 2);
2145
+ * ```
2146
+ */
2147
+ round(columns: string | string[], options?: number | {
2148
+ decimals?: number;
2149
+ method?: "round" | "ceiling" | "floor";
2150
+ }): Promise<void>;
2151
+ /**
2152
+ * Updates values in a specified column using a SQL expression.
2153
+ *
2154
+ * @param column - The name of the column to be updated.
2155
+ * @param definition - The SQL expression used to set the new values in the column (e.g., `"column1 * 2"`, `"UPPER(column_name)"`).
2156
+ * @returns A promise that resolves when the column has been updated.
2157
+ * @category Updating Data
2158
+ *
2159
+ * @example
2160
+ * ```ts
2161
+ * // Update 'column1' with the left 5 characters of 'column2'
2162
+ * await table.updateColumn("column1", `LEFT(column2, 5)`);
2163
+ * ```
2164
+ *
2165
+ * @example
2166
+ * ```ts
2167
+ * // Double the values in 'price' column
2168
+ * await table.updateColumn("price", `price * 2`);
2169
+ * ```
2170
+ *
2171
+ * @example
2172
+ * ```ts
2173
+ * // Set 'status' to 'active' where 'isActive' is true
2174
+ * await table.updateColumn("status", `CASE WHEN isActive THEN 'active' ELSE 'inactive' END`);
2175
+ * ```
2176
+ */
2177
+ updateColumn(column: string, definition: string): Promise<void>;
2178
+ /**
2179
+ * Assigns ranks to rows in a new column based on the values of a specified column.
2180
+ *
2181
+ * @param values - The column containing the values to be used for ranking.
2182
+ * @param newColumn - The name of the new column where the ranks will be stored.
2183
+ * @param options - An optional object with configuration options:
2184
+ * @param options.order - The order of values for ranking: `"asc"` for ascending (default) or `"desc"` for descending.
2185
+ * @param options.categories - The column name or an array of column names that define categories for ranking. Ranks will be assigned independently within each category.
2186
+ * @param options.noGaps - A boolean indicating whether to assign ranks without gaps (dense ranking). If `true`, ranks will be consecutive integers (e.g., 1, 2, 2, 3). If `false` (default), ranks might have gaps (e.g., 1, 2, 2, 4).
2187
+ * @returns A promise that resolves when the ranks have been assigned.
2188
+ * @category Analyzing Data
2189
+ *
2190
+ * @example
2191
+ * ```ts
2192
+ * // Compute ranks in a new 'rank' column based on 'score' values (ascending)
2193
+ * await table.ranks("score", "rank");
2194
+ * ```
2195
+ *
2196
+ * @example
2197
+ * ```ts
2198
+ * // Compute ranks in a new 'descRank' column based on 'score' values (descending)
2199
+ * await table.ranks("score", "descRank", { order: "desc" });
2200
+ * ```
2201
+ *
2202
+ * @example
2203
+ * ```ts
2204
+ * // Compute ranks within 'department' categories, based on 'salary' values, without gaps
2205
+ * await table.ranks("salary", "salaryRank", { categories: "department", noGaps: true });
2206
+ * ```
2207
+ *
2208
+ * @example
2209
+ * ```ts
2210
+ * // Compute ranks within multiple categories ('department' and 'city')
2211
+ * await table.ranks("sales", "salesRank", { categories: ["department", "city"] });
2212
+ * ```
2213
+ */
2214
+ ranks(values: string, newColumn: string, options?: {
2215
+ order?: "asc" | "desc";
2216
+ categories?: string | string[];
2217
+ noGaps?: boolean;
2218
+ }): Promise<void>;
2219
+ /**
2220
+ * Assigns quantiles to rows in a new column based on specified column values.
2221
+ *
2222
+ * @param values - The column containing values from which quantiles will be assigned.
2223
+ * @param nbQuantiles - The number of quantiles to divide the data into (e.g., `4` for quartiles, `10` for deciles).
2224
+ * @param newColumn - The name of the new column where the assigned quantiles will be stored.
2225
+ * @param options - An optional object with configuration options:
2226
+ * @param options.categories - The column name or an array of column names that define categories for computing quantiles. Quantiles will be assigned independently within each category.
2227
+ * @returns A promise that resolves when the quantiles have been assigned.
2228
+ * @category Analyzing Data
2229
+ *
2230
+ * @example
2231
+ * ```ts
2232
+ * // Assigns a quantile from 1 to 10 for each row in a new 'quantiles' column, based on 'column1' values.
2233
+ * await table.quantiles("column1", 10, "quantiles");
2234
+ * ```
2235
+ *
2236
+ * @example
2237
+ * ```ts
2238
+ * // Assigns quantiles within 'column2' categories, based on 'column1' values.
2239
+ * await table.quantiles("column1", 10, "quantiles", { categories: "column2" });
2240
+ * ```
2241
+ *
2242
+ * @example
2243
+ * ```ts
2244
+ * // Assigns quartiles (4 quantiles) to 'sales' data, storing results in 'salesQuartile'
2245
+ * await table.quantiles("sales", 4, "salesQuartile");
2246
+ * ```
2247
+ */
2248
+ quantiles(values: string, nbQuantiles: number, newColumn: string, options?: {
2249
+ categories?: string | string[];
2250
+ }): Promise<void>;
2251
+ /**
2252
+ * Assigns bins for specified column values based on an interval size.
2253
+ *
2254
+ * @param values - The column containing values from which bins will be computed.
2255
+ * @param interval - The interval size for binning the values.
2256
+ * @param newColumn - The name of the new column where the bins will be stored.
2257
+ * @param options - An optional object with configuration options:
2258
+ * @param options.startValue - The starting value for binning. Defaults to the minimum value in the specified column.
2259
+ * @returns A promise that resolves when the bins have been assigned.
2260
+ * @category Analyzing Data
2261
+ *
2262
+ * @example
2263
+ * ```ts
2264
+ * // Assigns a bin for each row in a new 'bins' column based on 'column1' values, with an interval of 10.
2265
+ * // If the minimum value in 'column1' is 5, the bins will follow this pattern: "[5-14]", "[15-24]", etc.
2266
+ * await table.bins("column1", 10, "bins");
2267
+ * ```
2268
+ *
2269
+ * @example
2270
+ * ```ts
2271
+ * // Assigns bins starting at a specific value (0) with an interval of 10.
2272
+ * // The bins will follow this pattern: "[0-9]", "[10-19]", "[20-29]", etc.
2273
+ * await table.bins("column1", 10, "bins", { startValue: 0 });
2274
+ * ```
2275
+ */
2276
+ bins(values: string, interval: number, newColumn: string, options?: {
2277
+ startValue?: number;
2278
+ }): Promise<void>;
2279
+ /**
2280
+ * Computes proportions horizontally across specified columns for each row.
2281
+ *
2282
+ * For example, given a table showing counts of men, women, and non-binary individuals per year:
2283
+ *
2284
+ * | Year | Men | Women | NonBinary |
2285
+ * | :--- | :-- | :---- | :-------- |
2286
+ * | 2021 | 564 | 685 | 145 |
2287
+ * | 2022 | 354 | 278 | 56 |
2288
+ * | 2023 | 856 | 321 | 221 |
2289
+ *
2290
+ * This method computes the proportion of men, women, and non-binary individuals on each row, adding new columns for these proportions.
2291
+ *
2292
+ * @example
2293
+ * ```ts
2294
+ * // Compute horizontal proportions for 'Men', 'Women', and 'NonBinary' columns, rounded to 2 decimal places
2295
+ * await table.proportionsHorizontal(["Men", "Women", "NonBinary"], { decimals: 2 });
2296
+ * ```
2297
+ *
2298
+ * The table will then look like this:
2299
+ *
2300
+ * | Year | Men | Women | NonBinary | MenPerc | WomenPerc | NonBinaryPerc |
2301
+ * | :--- | :-- | :---- | :-------- | :------ | :-------- | :------------ |
2302
+ * | 2021 | 564 | 685 | 145 | 0.4 | 0.49 | 0.10 |
2303
+ * | 2022 | 354 | 278 | 56 | 0.51 | 0.4 | 0.08 |
2304
+ * | 2023 | 856 | 321 | 221 | 0.61 | 0.23 | 0.16 |
2305
+ *
2306
+ * By default, the new columns will be named with a suffix of `"Perc"`. You can customize this suffix using the `suffix` option.
2307
+ *
2308
+ * @example
2309
+ * ```ts
2310
+ * // Compute horizontal proportions with a custom suffix "Prop"
2311
+ * await table.proportionsHorizontal(["Men", "Women", "NonBinary"], { suffix: "Prop", decimals: 2 });
2312
+ * ```
2313
+ *
2314
+ * The table will then look like this:
2315
+ *
2316
+ * | Year | Men | Women | NonBinary | MenProp | WomenProp | NonBinaryProp |
2317
+ * | :--- | :-- | :---- | :-------- | :------ | :-------- | :------------ |
2318
+ * | 2021 | 564 | 685 | 145 | 0.4 | 0.49 | 0.10 |
2319
+ * | 2022 | 354 | 278 | 56 | 0.51 | 0.4 | 0.08 |
2320
+ * | 2023 | 856 | 321 | 221 | 0.61 | 0.23 | 0.16 |
2321
+ *
2322
+ * @param columns - An array of column names for which proportions will be computed on each row.
2323
+ * @param options - An optional object with configuration options:
2324
+ * @param options.suffix - A string suffix to append to the names of the new columns storing the computed proportions. Defaults to `"Perc"`.
2325
+ * @param options.decimals - The number of decimal places to round the computed proportions. Defaults to `undefined` (no rounding).
2326
+ * @returns A promise that resolves when the horizontal proportions have been computed.
2327
+ * @category Analyzing Data
2328
+ */
2329
+ proportionsHorizontal(columns: string[], options?: {
2330
+ suffix?: string;
2331
+ decimals?: number;
2332
+ }): Promise<void>;
2333
+ /**
2334
+ * Computes proportions vertically over a column's values, relative to the sum of all values in that column (or within specified categories).
2335
+ *
2336
+ * @param column - The column containing values for which proportions will be computed. The proportions are calculated based on the sum of values in the specified column.
2337
+ * @param newColumn - The name of the new column where the proportions will be stored.
2338
+ * @param options - An optional object with configuration options:
2339
+ * @param options.categories - The column name or an array of column names that define categories for computing proportions. Proportions will be calculated independently within each category.
2340
+ * @param options.decimals - The number of decimal places to round the computed proportions. Defaults to `undefined` (no rounding).
2341
+ * @returns A promise that resolves when the vertical proportions have been computed.
2342
+ * @category Analyzing Data
2343
+ *
2344
+ * @example
2345
+ * ```ts
2346
+ * // Add a new column 'perc' with each 'column1' value divided by the sum of all 'column1' values
2347
+ * await table.proportionsVertical("column1", "perc");
2348
+ * ```
2349
+ *
2350
+ * @example
2351
+ * ```ts
2352
+ * // Compute proportions for 'column1' within 'column2' categories, rounded to two decimal places
2353
+ * await table.proportionsVertical("column1", "perc", { categories: "column2", decimals: 2 });
2354
+ * ```
2355
+ *
2356
+ * @example
2357
+ * ```ts
2358
+ * // Compute proportions for 'sales' within 'region' and 'product_type' categories
2359
+ * await table.proportionsVertical("sales", "sales_proportion", { categories: ["region", "product_type"] });
2360
+ * ```
2361
+ */
2362
+ proportionsVertical(column: string, newColumn: string, options?: {
2363
+ categories?: string | string[];
2364
+ decimals?: number;
2365
+ }): Promise<void>;
2366
+ /**
2367
+ * Creates a summary table based on specified values, categories, and summary operations.
2368
+ * This method allows you to aggregate data, calculate statistics (e.g., count, mean, sum), and group results by categorical columns.
2369
+ *
2370
+ * @param options - An object with configuration options for summarization:
2371
+ * @param options.values - The column name or an array of column names whose values will be summarized. If omitted, all columns will be summarized.
2372
+ * @param options.categories - The column name or an array of column names that define categories for the summarization. Results will be grouped by these categories.
2373
+ * @param options.summaries - The summary operations to be performed. Can be a single operation (e.g., `"mean"`), an array of operations (e.g., `["min", "max"]`), or an object mapping new column names to operations (e.g., `{ avgSalary: "mean" }`). Supported operations include: `"count"`, `"countUnique"`, `"countNull"`, `"min"`, `"max"`, `"mean"`, `"median"`, `"sum"`, `"skew"`, `"stdDev"`, `"var"`.
2374
+ * @param options.decimals - The number of decimal places to round the summarized values. Defaults to `undefined` (no rounding).
2375
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
2376
+ * @param options.toMs - If `true`, timestamps, dates, and times will be converted to milliseconds before summarizing. This is useful when summarizing mixed data types (numbers and dates) as values must be of the same type for aggregation.
2377
+ * @param options.noColumnValue - If `true`, the default `value` column will be removed. This option only works when summarizing a single column without categories. Defaults to `false`.
2378
+ * @returns A promise that resolves to a table instance containing the summarized data (either the modified current table or a new table).
2379
+ * @category Analyzing Data
2380
+ *
2381
+ * @example
2382
+ * ```ts
2383
+ * // Summarize all columns with all available summary operations, overwriting the current table
2384
+ * const columns = await table.getColumns();
2385
+ * await table.summarize({ values: columns });
2386
+ * ```
2387
+ *
2388
+ * @example
2389
+ * ```ts
2390
+ * // Summarize all columns and store the results in a new table with a generated name
2391
+ * const columns = await table.getColumns();
2392
+ * const summaryTable = await table.summarize({ values: columns, outputTable: true });
2393
+ * ```
2394
+ *
2395
+ * @example
2396
+ * ```ts
2397
+ * // Summarize all columns and store the results in a new table named 'mySummary'
2398
+ * const columns = await table.getColumns();
2399
+ * const mySummaryTable = await table.summarize({ values: columns, outputTable: "mySummary" });
2400
+ * ```
2401
+ *
2402
+ * @example
2403
+ * ```ts
2404
+ * // Summarize a single column ('sales') with all available summary operations
2405
+ * await table.summarize({ values: "sales" });
2406
+ * ```
2407
+ *
2408
+ * @example
2409
+ * ```ts
2410
+ * // Summarize multiple columns ('sales' and 'profit') with all available summary operations
2411
+ * await table.summarize({ values: ["sales", "profit"] });
2412
+ * ```
2413
+ *
2414
+ * @example
2415
+ * ```ts
2416
+ * // Summarize 'sales' by 'region' (single category)
2417
+ * await table.summarize({ values: "sales", categories: "region" });
2418
+ * ```
2419
+ *
2420
+ * @example
2421
+ * ```ts
2422
+ * // Summarize 'sales' by 'region' and 'product_type' (multiple categories)
2423
+ * await table.summarize({ values: "sales", categories: ["region", "product_type"] });
2424
+ * ```
2425
+ *
2426
+ * @example
2427
+ * ```ts
2428
+ * // Summarize 'sales' by 'region' with a specific summary operation (mean)
2429
+ * await table.summarize({ values: "sales", categories: "region", summaries: "mean" });
2430
+ * ```
2431
+ *
2432
+ * @example
2433
+ * ```ts
2434
+ * // Summarize 'sales' by 'region' with specific summary operations (mean and sum)
2435
+ * await table.summarize({ values: "sales", categories: "region", summaries: ["mean", "sum"] });
2436
+ * ```
2437
+ *
2438
+ * @example
2439
+ * ```ts
2440
+ * // Summarize 'sales' by 'region' with custom named summary operations
2441
+ * await table.summarize({ values: "sales", categories: "region", summaries: { averageSales: "mean", totalSales: "sum" } });
2442
+ * ```
2443
+ *
2444
+ * @example
2445
+ * ```ts
2446
+ * // Summarize 'price' and 'cost', rounding aggregated values to 2 decimal places
2447
+ * await table.summarize({ values: ["price", "cost"], decimals: 2 });
2448
+ * ```
2449
+ *
2450
+ * @example
2451
+ * ```ts
2452
+ * // Summarize 'timestamp_column' by converting to milliseconds first
2453
+ * await table.summarize({ values: "timestamp_column", toMs: true, summaries: "mean" });
2454
+ * ```
2455
+ *
2456
+ * @example
2457
+ * ```ts
2458
+ * // Summarize a single column 'value_column' without the default 'value' column in the output
2459
+ * await table.summarize({ values: "value_column", noColumnValue: true });
2460
+ * ```
2461
+ */
2462
+ summarize(options?: {
2463
+ values?: string | string[];
2464
+ categories?: string | string[];
2465
+ summaries?: ("count" | "countUnique" | "countNull" | "min" | "max" | "mean" | "median" | "sum" | "skew" | "stdDev" | "var") | ("count" | "countUnique" | "countNull" | "min" | "max" | "mean" | "median" | "sum" | "skew" | "stdDev" | "var")[] | {
2466
+ [key: string]: "count" | "countUnique" | "countNull" | "min" | "max" | "mean" | "median" | "sum" | "skew" | "stdDev" | "var";
2467
+ };
2468
+ decimals?: number;
2469
+ outputTable?: string | boolean;
2470
+ toMs?: boolean;
2471
+ noColumnValue?: boolean;
2472
+ }): Promise<this>;
2473
+ /**
2474
+ * Computes the cumulative sum of values in a column. For this method to work properly, ensure your data is sorted first.
2475
+ *
2476
+ * @param column - The name of the column storing the values to be accumulated.
2477
+ * @param newColumn - The name of the new column in which the computed cumulative values will be stored.
2478
+ * @param options - An optional object with configuration options:
2479
+ * @param options.categories - The column name or an array of column names that define categories for the accumulation. Accumulation will be performed independently within each category.
2480
+ * @returns A promise that resolves when the cumulative sum has been computed.
2481
+ * @category Analyzing Data
2482
+ *
2483
+ * @example
2484
+ * ```ts
2485
+ * // Compute the cumulative sum of 'sales' in a new 'cumulativeSales' column
2486
+ * // Ensure the table is sorted by a relevant column (e.g., date) before calling this method.
2487
+ * await table.accumulate("sales", "cumulativeSales");
2488
+ * ```
2489
+ *
2490
+ * @example
2491
+ * ```ts
2492
+ * // Compute the cumulative sum of 'orders' within 'customer_id' categories
2493
+ * // Ensure the table is sorted by 'customer_id' and then by a relevant order column (e.g., order_date).
2494
+ * await table.accumulate("orders", "cumulativeOrders", { categories: "customer_id" });
2495
+ * ```
2496
+ *
2497
+ * @example
2498
+ * ```ts
2499
+ * // Compute the cumulative sum of 'revenue' within 'region' and 'product_category' categories
2500
+ * await table.accumulate("revenue", "cumulativeRevenue", { categories: ["region", "product_category"] });
2501
+ * ```
2502
+ */
2503
+ accumulate(column: string, newColumn: string, options?: {
2504
+ categories?: string | string[];
2505
+ }): Promise<void>;
2506
+ /**
2507
+ * Computes rolling aggregations (e.g., rolling average, min, max) over a specified column.
2508
+ * For rows without enough preceding or following rows to form a complete window, `NULL` will be returned.
2509
+ * For this method to work properly, ensure your data is sorted by the relevant column(s) first.
2510
+ *
2511
+ * @param column - The name of the column storing the values to be aggregated.
2512
+ * @param newColumn - The name of the new column in which the computed rolling values will be stored.
2513
+ * @param summary - The aggregation function to apply: `"min"`, `"max"`, `"mean"`, `"median"`, or `"sum"`.
2514
+ * @param preceding - The number of preceding rows to include in the rolling window.
2515
+ * @param following - The number of following rows to include in the rolling window.
2516
+ * @param options - An optional object with configuration options:
2517
+ * @param options.categories - The column name or an array of column names that define categories for the aggregation. Rolling aggregations will be computed independently within each category.
2518
+ * @param options.decimals - The number of decimal places to round the aggregated values. Defaults to `undefined` (no rounding).
2519
+ * @returns A promise that resolves when the rolling aggregation is complete.
2520
+ * @category Analyzing Data
2521
+ *
2522
+ * @example
2523
+ * ```ts
2524
+ * // Compute a 7-day rolling average of 'sales' with 3 preceding and 3 following rows
2525
+ * // (total window size of 7: 3 preceding + current + 3 following)
2526
+ * await table.rolling("sales", "rollingAvgSales", "mean", 3, 3);
2527
+ * ```
2528
+ *
2529
+ * @example
2530
+ * ```ts
2531
+ * // Compute a rolling sum of 'transactions' within 'customer_id' categories
2532
+ * await table.rolling("transactions", "rollingSumTransactions", "sum", 5, 0, { categories: "customer_id" });
2533
+ * ```
2534
+ *
2535
+ * @example
2536
+ * ```ts
2537
+ * // Compute a rolling maximum of 'temperature' rounded to 1 decimal place
2538
+ * await table.rolling("temperature", "rollingMaxTemp", "max", 2, 2, { decimals: 1 });
2539
+ * ```
2540
+ */
2541
+ rolling(column: string, newColumn: string, summary: "min" | "max" | "mean" | "median" | "sum", preceding: number, following: number, options?: {
2542
+ categories?: string | string[];
2543
+ decimals?: number;
2544
+ }): Promise<void>;
2545
+ /**
2546
+ * Calculates correlations between columns. If no `x` and `y` columns are specified, the method computes the correlations for all numeric column combinations.
2547
+ * Note that correlation is symmetrical: the correlation of `x` with `y` is the same as `y` with `x`.
2548
+ *
2549
+ * @param options - An optional object with configuration options:
2550
+ * @param options.x - The name of the column for the x-values. If omitted, correlations will be computed for all numeric columns.
2551
+ * @param options.y - The name of the column for the y-values. If omitted, correlations will be computed for all numeric columns.
2552
+ * @param options.categories - The column name or an array of column names that define categories. Correlation calculations will be performed independently for each category.
2553
+ * @param options.decimals - The number of decimal places to round the correlation values. Defaults to `undefined` (no rounding).
2554
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
2555
+ * @returns A promise that resolves to a table instance containing the correlation results (either the modified current table or a new table).
2556
+ * @category Analyzing Data
2557
+ *
2558
+ * @example
2559
+ * ```ts
2560
+ * // Compute correlations between all numeric columns, overwriting the current table
2561
+ * await table.correlations();
2562
+ * ```
2563
+ *
2564
+ * @example
2565
+ * ```ts
2566
+ * // Compute correlations between 'column1' and all other numeric columns
2567
+ * await table.correlations({ x: "column1" });
2568
+ * ```
2569
+ *
2570
+ * @example
2571
+ * ```ts
2572
+ * // Compute the correlation between 'column1' and 'column2'
2573
+ * await table.correlations({ x: "column1", y: "column2" });
2574
+ * ```
2575
+ *
2576
+ * @example
2577
+ * ```ts
2578
+ * // Compute correlations within 'categoryColumn' and store results in a new table
2579
+ * const correlationTable = await table.correlations({ categories: "categoryColumn", outputTable: true });
2580
+ * ```
2581
+ *
2582
+ * @example
2583
+ * ```ts
2584
+ * // Compute correlations, rounded to 2 decimal places
2585
+ * await table.correlations({ decimals: 2 });
2586
+ * ```
2587
+ */
2588
+ correlations(options?: {
2589
+ x?: string;
2590
+ y?: string;
2591
+ categories?: string | string[];
2592
+ decimals?: number;
2593
+ outputTable?: string | boolean;
2594
+ }): Promise<this>;
2595
+ /**
2596
+ * Performs linear regression analysis. The results include the slope, the y-intercept, and the R-squared value.
2597
+ * If no `x` and `y` columns are specified, the method computes linear regression analysis for all numeric column permutations.
2598
+ * Note that linear regression analysis is asymmetrical: the linear regression of `x` over `y` is not the same as `y` over `x`.
2599
+ *
2600
+ * @param options - An optional object with configuration options:
2601
+ * @param options.x - The name of the column for the independent variable (x-values). If omitted, linear regressions will be computed for all numeric columns as x.
2602
+ * @param options.y - The name of the column for the dependent variable (y-values). If omitted, linear regressions will be computed for all numeric columns as y.
2603
+ * @param options.categories - The column name or an array of column names that define categories. Linear regression analysis will be performed independently for each category.
2604
+ * @param options.decimals - The number of decimal places to round the regression values (slope, intercept, r-squared). Defaults to `undefined` (no rounding).
2605
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
2606
+ * @returns A promise that resolves to a table instance containing the linear regression results (either the modified current table or a new table).
2607
+ * @category Analyzing Data
2608
+ *
2609
+ * @example
2610
+ * ```ts
2611
+ * // Compute all linear regressions between all numeric columns, overwriting the current table
2612
+ * await table.linearRegressions();
2613
+ * ```
2614
+ *
2615
+ * @example
2616
+ * ```ts
2617
+ * // Compute linear regressions with 'column1' as the independent variable and all other numeric columns as dependent variables
2618
+ * await table.linearRegressions({ x: "column1" });
2619
+ * ```
2620
+ *
2621
+ * @example
2622
+ * ```ts
2623
+ * // Compute the linear regression of 'sales' (y) over 'advertising' (x)
2624
+ * await table.linearRegressions({ x: "advertising", y: "sales" });
2625
+ * ```
2626
+ *
2627
+ * @example
2628
+ * ```ts
2629
+ * // Compute linear regressions within 'region' categories and store results in a new table
2630
+ * const regressionTable = await table.linearRegressions({ categories: "region", outputTable: true });
2631
+ * ```
2632
+ *
2633
+ * @example
2634
+ * ```ts
2635
+ * // Compute linear regressions, rounded to 3 decimal places
2636
+ * await table.linearRegressions({ decimals: 3 });
2637
+ * ```
2638
+ */
2639
+ linearRegressions(options?: {
2640
+ x?: string;
2641
+ y?: string;
2642
+ categories?: string | string[];
2643
+ decimals?: number;
2644
+ outputTable?: string | boolean;
2645
+ }): Promise<this>;
2646
+ /**
2647
+ * Identifies outliers in a specified column using the Interquartile Range (IQR) method.
2648
+ *
2649
+ * @param column - The name of the column in which outliers will be identified.
2650
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for outlier, `FALSE` otherwise) will be stored.
2651
+ * @param options - An optional object with configuration options:
2652
+ * @param options.categories - The column name or an array of column names that define categories. Outlier detection will be performed independently within each category.
2653
+ * @returns A promise that resolves when the outliers have been identified.
2654
+ * @category Analyzing Data
2655
+ *
2656
+ * @example
2657
+ * ```ts
2658
+ * // Look for outliers in the 'age' column and store results in a new 'isOutlier' column
2659
+ * await table.outliersIQR("age", "isOutlier");
2660
+ * ```
2661
+ *
2662
+ * @example
2663
+ * ```ts
2664
+ * // Look for outliers in 'salary' within 'gender' categories
2665
+ * await table.outliersIQR("salary", "salaryOutlier", { categories: "gender" });
2666
+ * ```
2667
+ */
2668
+ outliersIQR(column: string, newColumn: string, options?: {
2669
+ categories?: string | string[];
2670
+ }): Promise<void>;
2671
+ /**
2672
+ * Computes the Z-score for values in a specified column.
2673
+ *
2674
+ * @param column - The name of the column for which Z-scores will be calculated.
2675
+ * @param newColumn - The name of the new column where the computed Z-scores will be stored.
2676
+ * @param options - An optional object with configuration options:
2677
+ * @param options.categories - The column name or an array of column names that define categories. Z-scores will be calculated independently within each category.
2678
+ * @param options.decimals - The number of decimal places to round the Z-score values. Defaults to `undefined` (no rounding).
2679
+ * @returns A promise that resolves when the Z-scores have been computed.
2680
+ * @category Analyzing Data
2681
+ *
2682
+ * @example
2683
+ * ```ts
2684
+ * // Calculate the Z-score for 'age' values and store results in a new 'ageZScore' column
2685
+ * await table.zScore("age", "ageZScore");
2686
+ * ```
2687
+ *
2688
+ * @example
2689
+ * ```ts
2690
+ * // Calculate Z-scores for 'salary' within 'department' categories
2691
+ * await table.zScore("salary", "salaryZScore", { categories: "department" });
2692
+ * ```
2693
+ *
2694
+ * @example
2695
+ * ```ts
2696
+ * // Calculate Z-scores for 'score', rounded to 2 decimal places
2697
+ * await table.zScore("score", "scoreZScore", { decimals: 2 });
2698
+ * ```
2699
+ */
2700
+ zScore(column: string, newColumn: string, options?: {
2701
+ categories?: string | string[];
2702
+ decimals?: number;
2703
+ }): Promise<void>;
2704
+ /**
2705
+ * Normalizes the values in a column using min-max normalization.
2706
+ *
2707
+ * @param column - The name of the column in which values will be normalized.
2708
+ * @param newColumn - The name of the new column where normalized values will be stored.
2709
+ * @param options - An optional object with configuration options:
2710
+ * @param options.categories - The column name or an array of column names that define categories for the normalization. Normalization will be performed independently within each category.
2711
+ * @param options.decimals - The number of decimal places to round the normalized values. Defaults to `undefined` (no rounding).
2712
+ * @returns A promise that resolves when the values have been normalized.
2713
+ * @category Analyzing Data
2714
+ *
2715
+ * @example
2716
+ * ```ts
2717
+ * // Normalize the values in 'column1' and store them in a new 'normalizedColumn1' column
2718
+ * await table.normalize("column1", "normalizedColumn1");
2719
+ * ```
2720
+ *
2721
+ * @example
2722
+ * ```ts
2723
+ * // Normalize 'value' within 'group' categories
2724
+ * await table.normalize("value", "normalizedValue", { categories: "group" });
2725
+ * ```
2726
+ *
2727
+ * @example
2728
+ * ```ts
2729
+ * // Normalize 'data' values, rounded to 2 decimal places
2730
+ * await table.normalize("data", "normalizedData", { decimals: 2 });
2731
+ * ```
2732
+ */
2733
+ normalize(column: string, newColumn: string, options?: {
2734
+ categories?: string | string[];
2735
+ decimals?: number;
2736
+ }): Promise<void>;
2737
+ /**
2738
+ * Updates data in the table using a JavaScript function. The function receives the existing rows as an array of objects and must return the modified rows as an array of objects.
2739
+ * This method offers high flexibility for data manipulation but can be slow for large tables as it involves transferring data between DuckDB and JavaScript.
2740
+ * This method does not work with tables containing geometries.
2741
+ *
2742
+ * @param dataModifier - A synchronous or asynchronous function that takes the existing rows (as an array of objects) and returns the modified rows (as an array of objects).
2743
+ * @returns A promise that resolves when the data has been updated.
2744
+ * @category Updating Data
2745
+ *
2746
+ * @example
2747
+ * ```ts
2748
+ * // Add 1 to values in 'column1'. If values are not numbers, they are replaced by null.
2749
+ * await table.updateWithJS((rows) => {
2750
+ * const modifiedRows = rows.map(d => ({
2751
+ * ...d,
2752
+ * column1: typeof d.column1 === "number" ? d.column1 + 1 : null,
2753
+ * }));
2754
+ * return modifiedRows;
2755
+ * });
2756
+ * ```
2757
+ *
2758
+ * @example
2759
+ * ```ts
2760
+ * // Convert a date string to a Date object in 'dateColumn'
2761
+ * await table.updateWithJS((rows) => {
2762
+ * const modifiedRows = rows.map(d => ({
2763
+ * ...d,
2764
+ * dateColumn: typeof d.dateColumn === "string" ? new Date(d.dateColumn) : d.dateColumn,
2765
+ * }));
2766
+ * return modifiedRows;
2767
+ * });
2768
+ * ```
2769
+ */
2770
+ updateWithJS(dataModifier: ((rows: {
2771
+ [key: string]: number | string | Date | boolean | null;
2772
+ }[]) => Promise<{
2773
+ [key: string]: number | string | Date | boolean | null;
2774
+ }[]>) | ((rows: {
2775
+ [key: string]: number | string | Date | boolean | null;
2776
+ }[]) => {
2777
+ [key: string]: number | string | Date | boolean | null;
2778
+ }[])): Promise<void>;
2779
+ /**
2780
+ * Returns the schema of the table, including column names and their data types.
2781
+ *
2782
+ * @returns A promise that resolves to an array of objects, where each object represents a column with its name and data type.
2783
+ * @category Getting Data
2784
+ *
2785
+ * @example
2786
+ * ```ts
2787
+ * // Get the schema of the table
2788
+ * const schema = await table.getSchema();
2789
+ * console.table(schema); // Log the schema in a readable table format
2790
+ * ```
2791
+ */
2792
+ getSchema(): Promise<{
2793
+ [key: string]: string | null;
2794
+ }[]>;
2795
+ /**
2796
+ * Returns descriptive statistical information about the columns, including details like data types, number of null values, and distinct values.
2797
+ *
2798
+ * @returns A promise that resolves to an array of objects, each representing descriptive statistics for a column.
2799
+ * @category Getting Data
2800
+ *
2801
+ * @example
2802
+ * ```ts
2803
+ * // Get and log descriptive information about the table's columns
2804
+ * const description = await table.getDescription();
2805
+ * console.table(description);
2806
+ * ```
2807
+ */
2808
+ getDescription(): Promise<{
2809
+ [key: string]: unknown;
2810
+ }[]>;
2811
+ /**
2812
+ * Returns the name of the table.
2813
+ *
2814
+ * @returns The name of the table as a string.
2815
+ * @category Getting Data
2816
+ *
2817
+ * @example
2818
+ * ```ts
2819
+ * // Get the table name
2820
+ * const tableName = table.getTableName();
2821
+ * console.log(tableName); // e.g., "employees"
2822
+ * ```
2823
+ */
2824
+ getTableName(): string;
2825
+ /**
2826
+ * Returns a list of all column names in the table.
2827
+ *
2828
+ * @returns A promise that resolves to an array of strings, where each string is a column name.
2829
+ * @category Getting Data
2830
+ *
2831
+ * @example
2832
+ * ```ts
2833
+ * // Get all column names from the table
2834
+ * const columns = await table.getColumns();
2835
+ * console.log(columns); // e.g., ["id", "name", "age"]
2836
+ * ```
2837
+ */
2838
+ getColumns(): Promise<string[]>;
2839
+ /**
2840
+ * Normalizes string values in a column by:
2841
+ * 1. Stripping accents
2842
+ * 2. Optionally stripping punctuation (default: true)
2843
+ * 3. Converting to lowercase
2844
+ * 4. Normalizing whitespace (multiple spaces/tabs/newlines → single space)
2845
+ * 5. Trimming leading/trailing whitespace
2846
+ *
2847
+ * Produces identical output to `journalism-format`'s `normalizeString()` function
2848
+ * for all common cases including accented Latin characters.
2849
+ *
2850
+ * @param column The column containing the text to normalize
2851
+ * @param newColumn The column to store the normalized results
2852
+ * @param options Configuration options
2853
+ * @param options.stripPunctuation Strip punctuation and underscores (default: true)
2854
+ *
2855
+ * @returns A promise that resolves when the operation is complete
2856
+ *
2857
+ * @example
2858
+ * ```ts
2859
+ * // Normalize text column and store in new column
2860
+ * await table.normalizeString("recipeName", "recipeNameNormalized");
2861
+ * // "Épicerie Parisienne!" → "epicerie parisienne"
2862
+ * ```
2863
+ *
2864
+ * @example
2865
+ * ```ts
2866
+ * // Keep punctuation for emails and URLs
2867
+ * await table.normalizeString("email", "emailNormalized", { stripPunctuation: false });
2868
+ * // "User@Example.com" → "user@example.com"
2869
+ * await table.normalizeString("url", "urlNormalized", { stripPunctuation: false });
2870
+ * // "https://Example.com/path" → "https://example.com/path"
2871
+ * ```
2872
+ *
2873
+ * @category Text Processing
2874
+ */
2875
+ normalizeString(column: string, newColumn: string, options?: {
2876
+ stripPunctuation?: boolean;
2877
+ }): Promise<void>;
2878
+ /**
2879
+ * Returns the number of columns in the table.
2880
+ *
2881
+ * @returns A promise that resolves to a number representing the total count of columns.
2882
+ * @category Getting Data
2883
+ *
2884
+ * @example
2885
+ * ```ts
2886
+ * // Get the number of columns in the table
2887
+ * const nbColumns = await table.getNbColumns();
2888
+ * console.log(nbColumns); // e.g., 3
2889
+ * ```
2890
+ */
2891
+ getNbColumns(): Promise<number>;
2892
+ /**
2893
+ * Returns the total number of characters in a column storing strings.
2894
+ *
2895
+ * @param column - The name of the string column to count characters from.
2896
+ * @returns A promise that resolves to the total number of characters across all rows in the specified column.
2897
+ * @category Getting Data
2898
+ *
2899
+ * @example
2900
+ * ```ts
2901
+ * // Get the total number of characters in the 'name' column
2902
+ * const totalChars = await table.getNbCharacters("name");
2903
+ * console.log(totalChars); // e.g., 523
2904
+ * ```
2905
+ */
2906
+ getNbCharacters(column: string): Promise<number>;
2907
+ /**
2908
+ * Returns the number of rows in the table.
2909
+ *
2910
+ * @param options - An optional object with configuration options:
2911
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
2912
+ * @returns A promise that resolves to a number representing the total count of rows.
2913
+ * @category Getting Data
2914
+ *
2915
+ * @example
2916
+ * ```ts
2917
+ * // Get the number of rows in the table
2918
+ * const nbRows = await table.getNbRows();
2919
+ * console.log(nbRows); // e.g., 100
2920
+ * ```
2921
+ *
2922
+ * @example
2923
+ * ```ts
2924
+ * // Get the number of rows where 'category' is 'Book'
2925
+ * const nbBooks = await table.getNbRows({ conditions: "category = 'Book'" });
2926
+ * console.log(nbBooks);
2927
+ * ```
2928
+ */
2929
+ getNbRows(options?: {
2930
+ conditions?: string;
2931
+ }): Promise<number>;
2932
+ /**
2933
+ * Returns the total number of values in the table (number of columns multiplied by the number of rows).
2934
+ *
2935
+ * @returns A promise that resolves to a number representing the total count of values.
2936
+ * @category Getting Data
2937
+ *
2938
+ * @example
2939
+ * ```ts
2940
+ * // Get the total number of values in the table
2941
+ * const nbValues = await table.getNbValues();
2942
+ * console.log(nbValues); // e.g., 300 (if 3 columns and 100 rows)
2943
+ * ```
2944
+ */
2945
+ getNbValues(): Promise<number>;
2946
+ /**
2947
+ * Returns the data types of all columns in the table.
2948
+ *
2949
+ * @returns A promise that resolves to an object where keys are column names and values are their corresponding data types (e.g., `{ "id": "BIGINT", "name": "VARCHAR" }`).
2950
+ * @category Getting Data
2951
+ *
2952
+ * @example
2953
+ * ```ts
2954
+ * // Get the data types of all columns
2955
+ * const dataTypes = await table.getTypes();
2956
+ * console.log(dataTypes);
2957
+ * ```
2958
+ */
2959
+ getTypes(): Promise<{
2960
+ [key: string]: string;
2961
+ }>;
2962
+ /**
2963
+ * Returns all values from a specific column.
2964
+ *
2965
+ * @param column - The name of the column from which to retrieve values.
2966
+ * @returns A promise that resolves to an array containing all values from the specified column.
2967
+ * @category Getting Data
2968
+ *
2969
+ * @example
2970
+ * ```ts
2971
+ * // Get all values from the 'productName' column
2972
+ * const productNames = await table.getValues("productName");
2973
+ * console.log(productNames); // e.g., ["Laptop", "Mouse", "Keyboard"]
2974
+ * ```
2975
+ */
2976
+ getValues(column: string): Promise<(string | number | boolean | Date | null)[]>;
2977
+ /**
2978
+ * Returns the minimum value from a specific column.
2979
+ *
2980
+ * @param column - The name of the column from which to retrieve the minimum value.
2981
+ * @returns A promise that resolves to the minimum value of the specified column.
2982
+ * @category Getting Data
2983
+ *
2984
+ * @example
2985
+ * ```ts
2986
+ * // Get the minimum value from the 'price' column
2987
+ * const minPrice = await table.getMin("price");
2988
+ * console.log(minPrice); // e.g., 10.50
2989
+ * ```
2990
+ */
2991
+ getMin(column: string): Promise<string | number | boolean | Date | null>;
2992
+ /**
2993
+ * Returns the maximum value from a specific column.
2994
+ *
2995
+ * @param column - The name of the column from which to retrieve the maximum value.
2996
+ * @returns A promise that resolves to the maximum value of the specified column.
2997
+ * @category Getting Data
2998
+ *
2999
+ * @example
3000
+ * ```ts
3001
+ * // Get the maximum value from the 'price' column
3002
+ * const maxPrice = await table.getMax("price");
3003
+ * console.log(maxPrice); // e.g., 99.99
3004
+ * ```
3005
+ */
3006
+ getMax(column: string): Promise<string | number | boolean | Date | null>;
3007
+ /**
3008
+ * Returns the extent (minimum and maximum values) of a specific column as an array.
3009
+ *
3010
+ * @param column - The name of the column from which to retrieve the extent.
3011
+ * @returns A promise that resolves to an array `[min, max]` containing the minimum and maximum values of the specified column.
3012
+ * @category Getting Data
3013
+ *
3014
+ * @example
3015
+ * ```ts
3016
+ * // Get the extent of the 'temperature' column
3017
+ * const tempExtent = await table.getExtent("temperature");
3018
+ * console.log(tempExtent); // e.g., [15.2, 30.1]
3019
+ * ```
3020
+ */
3021
+ getExtent(column: string): Promise<[
3022
+ string | number | boolean | Date | null,
3023
+ string | number | boolean | Date | null
3024
+ ]>;
3025
+ /**
3026
+ * Returns the mean (average) value from a specific numeric column.
3027
+ *
3028
+ * @param column - The name of the numeric column from which to retrieve the mean value.
3029
+ * @param options - An optional object with configuration options:
3030
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3031
+ * @returns A promise that resolves to the mean value of the specified column.
3032
+ * @category Getting Data
3033
+ *
3034
+ * @example
3035
+ * ```ts
3036
+ * // Get the mean of the 'age' column
3037
+ * const meanAge = await table.getMean("age");
3038
+ * console.log(meanAge); // e.g., 35.75
3039
+ * ```
3040
+ *
3041
+ * @example
3042
+ * ```ts
3043
+ * // Get the mean of the 'salary' column, rounded to 2 decimal places
3044
+ * const meanSalary = await table.getMean("salary", { decimals: 2 });
3045
+ * console.log(meanSalary); // e.g., 55000.23
3046
+ * ```
3047
+ */
3048
+ getMean(column: string, options?: {
3049
+ decimals?: number;
3050
+ }): Promise<number>;
3051
+ /**
3052
+ * Returns the median value from a specific numeric column.
3053
+ *
3054
+ * @param column - The name of the numeric column from which to retrieve the median value.
3055
+ * @param options - An optional object with configuration options:
3056
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3057
+ * @returns A promise that resolves to the median value of the specified column.
3058
+ * @category Getting Data
3059
+ *
3060
+ * @example
3061
+ * ```ts
3062
+ * // Get the median of the 'age' column
3063
+ * const medianAge = await table.getMedian("age");
3064
+ * console.log(medianAge); // e.g., 30
3065
+ * ```
3066
+ *
3067
+ * @example
3068
+ * ```ts
3069
+ * // Get the median of the 'salary' column, rounded to 2 decimal places
3070
+ * const medianSalary = await table.getMedian("salary", { decimals: 2 });
3071
+ * console.log(medianSalary); // e.g., 50000.00
3072
+ * ```
3073
+ */
3074
+ getMedian(column: string, options?: {
3075
+ decimals?: number;
3076
+ }): Promise<number>;
3077
+ /**
3078
+ * Returns the sum of values from a specific numeric column.
3079
+ *
3080
+ * @param column - The name of the numeric column from which to retrieve the sum.
3081
+ * @returns A promise that resolves to the sum of values in the specified column.
3082
+ * @category Getting Data
3083
+ *
3084
+ * @example
3085
+ * ```ts
3086
+ * // Get the sum of the 'quantity' column
3087
+ * const totalQuantity = await table.getSum("quantity");
3088
+ * console.log(totalQuantity); // e.g., 1250
3089
+ * ```
3090
+ */
3091
+ getSum(column: string): Promise<number>;
3092
+ /**
3093
+ * Returns the skewness of values from a specific numeric column.
3094
+ *
3095
+ * @param column - The name of the numeric column from which to retrieve the skewness.
3096
+ * @param options - An optional object with configuration options:
3097
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3098
+ * @returns A promise that resolves to the skewness value of the specified column.
3099
+ * @category Getting Data
3100
+ *
3101
+ * @example
3102
+ * ```ts
3103
+ * // Get the skewness of the 'data' column
3104
+ * const dataSkew = await table.getSkew("data");
3105
+ * console.log(dataSkew); // e.g., 0.5
3106
+ * ```
3107
+ *
3108
+ * @example
3109
+ * ```ts
3110
+ * // Get the skewness of the 'values' column, rounded to 2 decimal places
3111
+ * const valuesSkew = await table.getSkew("values", { decimals: 2 });
3112
+ * console.log(valuesSkew); // e.g., -0.25
3113
+ * ```
3114
+ */
3115
+ getSkew(column: string, options?: {
3116
+ decimals?: number;
3117
+ }): Promise<number>;
3118
+ /**
3119
+ * Returns the standard deviation of values from a specific numeric column.
3120
+ *
3121
+ * @param column - The name of the numeric column from which to retrieve the standard deviation.
3122
+ * @param options - An optional object with configuration options:
3123
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3124
+ * @returns A promise that resolves to the standard deviation value of the specified column.
3125
+ * @category Getting Data
3126
+ *
3127
+ * @example
3128
+ * ```ts
3129
+ * // Get the standard deviation of the 'height' column
3130
+ * const heightStdDev = await table.getStdDev("height");
3131
+ * console.log(heightStdDev); // e.g., 5.2
3132
+ * ```
3133
+ *
3134
+ * @example
3135
+ * ```ts
3136
+ * // Get the standard deviation of the 'score' column, rounded to 3 decimal places
3137
+ * const scoreStdDev = await table.getStdDev("score", { decimals: 3 });
3138
+ * console.log(scoreStdDev); // e.g., 12.345
3139
+ * ```
3140
+ */
3141
+ getStdDev(column: string, options?: {
3142
+ decimals?: number;
3143
+ }): Promise<number>;
3144
+ /**
3145
+ * Returns the variance of values from a specific numeric column.
3146
+ *
3147
+ * @param column - The name of the numeric column from which to retrieve the variance.
3148
+ * @param options - An optional object with configuration options:
3149
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3150
+ * @returns A promise that resolves to the variance value of the specified column.
3151
+ * @category Getting Data
3152
+ *
3153
+ * @example
3154
+ * ```ts
3155
+ * // Get the variance of the 'data' column
3156
+ * const dataVariance = await table.getVar("data");
3157
+ * console.log(dataVariance); // e.g., 25.5
3158
+ * ```
3159
+ *
3160
+ * @example
3161
+ * ```ts
3162
+ * // Get the variance of the 'values' column, rounded to 2 decimal places
3163
+ * const valuesVariance = await table.getVar("values", { decimals: 2 });
3164
+ * console.log(valuesVariance); // e.g., 10.23
3165
+ * ```
3166
+ */
3167
+ getVar(column: string, options?: {
3168
+ decimals?: number;
3169
+ }): Promise<number>;
3170
+ /**
3171
+ * Returns the value of a specific quantile from the values in a given numeric column.
3172
+ *
3173
+ * @param column - The name of the numeric column from which to calculate the quantile.
3174
+ * @param quantile - The quantile to calculate, expressed as a number between 0 and 1 (e.g., `0.25` for the first quartile, `0.5` for the median, `0.75` for the third quartile).
3175
+ * @param options - An optional object with configuration options:
3176
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3177
+ * @returns A promise that resolves to the quantile value of the specified column.
3178
+ * @category Getting Data
3179
+ *
3180
+ * @example
3181
+ * ```ts
3182
+ * // Get the first quartile (25th percentile) of 'column1'
3183
+ * const firstQuartile = await table.getQuantile("column1", 0.25);
3184
+ * console.log(firstQuartile); // e.g., 15.7
3185
+ * ```
3186
+ *
3187
+ * @example
3188
+ * ```ts
3189
+ * // Get the 90th percentile of 'score' values, rounded to 2 decimal places
3190
+ * const ninetiethPercentile = await table.getQuantile("score", 0.9, { decimals: 2 });
3191
+ * console.log(ninetiethPercentile); // e.g., 88.55
3192
+ * ```
3193
+ */
3194
+ getQuantile(column: string, quantile: number, options?: {
3195
+ decimals?: number;
3196
+ }): Promise<number>;
3197
+ /**
3198
+ * Returns unique values from a specific column. The values are returned in ascending order.
3199
+ *
3200
+ * @param column - The name of the column from which to retrieve unique values.
3201
+ * @returns A promise that resolves to an array containing the unique values from the specified column, sorted in ascending order.
3202
+ * @category Getting Data
3203
+ *
3204
+ * @example
3205
+ * ```ts
3206
+ * // Get unique values from the 'category' column
3207
+ * const uniqueCategories = await table.getUniques("category");
3208
+ * console.log(uniqueCategories); // e.g., ["Books", "Clothing", "Electronics"]
3209
+ * ```
3210
+ */
3211
+ getUniques(column: string): Promise<(string | number | boolean | Date | null)[]>;
3212
+ /**
3213
+ * Returns the first row of the table, optionally filtered by SQL conditions.
3214
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3215
+ *
3216
+ * @param options - An optional object with configuration options:
3217
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3218
+ * @returns A promise that resolves to an object representing the first row, or `null` if no rows match the conditions.
3219
+ * @category Getting Data
3220
+ *
3221
+ * @example
3222
+ * ```ts
3223
+ * // Get the very first row of the table
3224
+ * const firstRow = await table.getFirstRow();
3225
+ * console.log(firstRow);
3226
+ * ```
3227
+ *
3228
+ * @example
3229
+ * ```ts
3230
+ * // Get the first row where the 'category' is 'Book'
3231
+ * const firstRowBooks = await table.getFirstRow({ conditions: `category === 'Book'` }); // Using JS syntax
3232
+ * console.log(firstRowBooks);
3233
+ * ```
3234
+ */
3235
+ getFirstRow(options?: {
3236
+ conditions?: string;
3237
+ }): Promise<{
3238
+ [key: string]: string | number | boolean | Date | null;
3239
+ }>;
3240
+ /**
3241
+ * Returns the last row of the table, optionally filtered by SQL conditions.
3242
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3243
+ *
3244
+ * @param options - An optional object with configuration options:
3245
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3246
+ * @returns A promise that resolves to an object representing the last row, or `null` if no rows match the conditions.
3247
+ * @category Getting Data
3248
+ *
3249
+ * @example
3250
+ * ```ts
3251
+ * // Get the very last row of the table
3252
+ * const lastRow = await table.getLastRow();
3253
+ * console.log(lastRow);
3254
+ * ```
3255
+ *
3256
+ * @example
3257
+ * ```ts
3258
+ * // Get the last row where the 'category' is 'Book'
3259
+ * const lastRowBooks = await table.getLastRow({ conditions: `category === 'Book'` }); // Using JS syntax
3260
+ * console.log(lastRowBooks);
3261
+ * ```
3262
+ */
3263
+ getLastRow(options?: {
3264
+ conditions?: string;
3265
+ }): Promise<{
3266
+ [key: string]: string | number | boolean | Date | null;
3267
+ }>;
3268
+ /**
3269
+ * Returns the top `n` rows of the table, optionally filtered by SQL conditions.
3270
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3271
+ *
3272
+ * @param count - The number of rows to return from the top of the table.
3273
+ * @param options - An optional object with configuration options:
3274
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Books'"`).
3275
+ * @returns A promise that resolves to an array of objects representing the top `n` rows.
3276
+ * @category Getting Data
3277
+ *
3278
+ * @example
3279
+ * ```ts
3280
+ * // Get the first 10 rows of the table
3281
+ * const top10 = await table.getTop(10);
3282
+ * console.log(top10);
3283
+ * ```
3284
+ *
3285
+ * @example
3286
+ * ```ts
3287
+ * // Get the first 5 rows where the 'category' is 'Books'
3288
+ * const top5Books = await table.getTop(5, { conditions: `category === 'Books'` }); // Using JS syntax
3289
+ * console.log(top5Books);
3290
+ * ```
3291
+ */
3292
+ getTop(count: number, options?: {
3293
+ conditions?: string;
3294
+ }): Promise<{
3295
+ [key: string]: string | number | boolean | Date | null;
3296
+ }[]>;
3297
+ /**
3298
+ * Returns the bottom `n` rows of the table, optionally filtered by SQL conditions.
3299
+ * By default, the last row will be returned first. To preserve the original order, use the `originalOrder` option.
3300
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3301
+ *
3302
+ * @param count - The number of rows to return from the bottom of the table.
3303
+ * @param options - An optional object with configuration options:
3304
+ * @param options.originalOrder - A boolean indicating whether the rows should be returned in their original order (`true`) or in reverse order (last row first, `false`). Defaults to `false`.
3305
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Books'"`).
3306
+ * @returns A promise that resolves to an array of objects representing the bottom `n` rows.
3307
+ * @category Getting Data
3308
+ *
3309
+ * @example
3310
+ * ```ts
3311
+ * // Get the last 10 rows (last row first)
3312
+ * const bottom10 = await table.getBottom(10);
3313
+ * console.log(bottom10);
3314
+ * ```
3315
+ *
3316
+ * @example
3317
+ * ```ts
3318
+ * // Get the last 10 rows in their original order
3319
+ * const bottom10OriginalOrder = await table.getBottom(10, { originalOrder: true });
3320
+ * console.log(bottom10OriginalOrder);
3321
+ * ```
3322
+ *
3323
+ * @example
3324
+ * ```ts
3325
+ * // Get the last 5 rows where the 'category' is 'Books' (using JS syntax)
3326
+ * const bottom5Books = await table.getBottom(5, { conditions: `category === 'Books'` });
3327
+ * console.log(bottom5Books);
3328
+ * ```
3329
+ */
3330
+ getBottom(count: number, options?: {
3331
+ originalOrder?: boolean;
3332
+ conditions?: string;
3333
+ }): Promise<{
3334
+ [key: string]: string | number | boolean | Date | null;
3335
+ }[]>;
3336
+ /**
3337
+ * Returns a single row that matches the specified conditions. If no row matches or if more than one row matches, an error is thrown by default.
3338
+ * You can also use JavaScript syntax for conditions (e.g., `AND`, `||`, `===`, `!==`).
3339
+ *
3340
+ * @param conditions - The conditions to match, specified as a SQL `WHERE` clause.
3341
+ * @param options - Optional settings:
3342
+ * @param options.noCheck - If `true`, no error will be thrown when no row or more than one row match the condition. Defaults to `false`.
3343
+ * @returns A promise that resolves to an object representing the matched row.
3344
+ * @throws {Error} If `noCheck` is `false` and no row or more than one row matches the conditions.
3345
+ * @category Getting Data
3346
+ *
3347
+ * @example
3348
+ * ```ts
3349
+ * // Get a row where 'name' is 'John'
3350
+ * const johnsRow = await table.getRow(`name = 'John'`);
3351
+ * console.log(johnsRow);
3352
+ * ```
3353
+ *
3354
+ * @example
3355
+ * ```ts
3356
+ * // Get a row where 'id' is 123 (using JS syntax)
3357
+ * const rowById = await table.getRow(`id === 123`);
3358
+ * console.log(rowById);
3359
+ * ```
3360
+ *
3361
+ * @example
3362
+ * ```ts
3363
+ * // Get a row without throwing an error if multiple matches or no match
3364
+ * const flexibleRow = await table.getRow(`status = 'pending'`, { noCheck: true });
3365
+ * console.log(flexibleRow);
3366
+ * ```
3367
+ */
3368
+ getRow(conditions: string, options?: {
3369
+ noCheck?: boolean;
3370
+ }): Promise<{
3371
+ [key: string]: string | number | boolean | Date | null;
3372
+ } | undefined>;
3373
+ /**
3374
+ * Returns the data from the table as an array of objects, optionally filtered by SQL conditions.
3375
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3376
+ *
3377
+ * @param options - An optional object with configuration options:
3378
+ * @param options.columns - An array of column names to include in the result. If omitted, all columns will be included.
3379
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3380
+ * @returns A promise that resolves to an array of objects, where each object represents a row in the table.
3381
+ * @category Getting Data
3382
+ *
3383
+ * @example
3384
+ * ```ts
3385
+ * // Get all data from the table
3386
+ * const allData = await table.getData();
3387
+ * console.log(allData);
3388
+ * ```
3389
+ *
3390
+ * @example
3391
+ * ```ts
3392
+ * // Get data filtered by a condition (using JS or SQL syntax)
3393
+ * const booksData = await table.getData({ conditions: `category === 'Book'` });
3394
+ * console.log(booksData);
3395
+ * ```
3396
+ *
3397
+ * @example
3398
+ * ```ts
3399
+ * // Get data filtered by a condition and specific columns
3400
+ * const booksData = await table.getData({ columns: ["title", "author"], conditions: `category === 'Book'` });
3401
+ * console.log(booksData);
3402
+ * ```
3403
+ */
3404
+ getData(options?: {
3405
+ columns?: string | string[];
3406
+ conditions?: string;
3407
+ }): Promise<{
3408
+ [key: string]: string | number | boolean | Date | null;
3409
+ }[]>;
3410
+ /**
3411
+ * Returns the data from the table as a CSV string, optionally filtered by SQL conditions.
3412
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3413
+ *
3414
+ * @param options - An optional object with configuration options:
3415
+ * @param options.columns - An array of column names to include in the CSV. If omitted, all columns will be included.
3416
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3417
+ * @returns A promise that resolves to a CSV-formatted string representation of the table data.
3418
+ * @category Getting Data
3419
+ *
3420
+ * @example
3421
+ * ```ts
3422
+ * // Get all data from the table as CSV
3423
+ * const allDataCSV = await table.getDataAsCSV();
3424
+ * console.log(allDataCSV);
3425
+ * ```
3426
+ *
3427
+ * @example
3428
+ * ```ts
3429
+ * // Get data filtered by a condition (using JS syntax or SQL syntax) as CSV
3430
+ * const booksDataCSV = await table.getDataAsCSV({ conditions: `category === 'Book'` });
3431
+ * console.log(booksDataCSV);
3432
+ * ```
3433
+ *
3434
+ * @example
3435
+ * ```ts
3436
+ * // Get data filtered by a condition and specific columns as CSV
3437
+ * const booksDataCSV = await table.getDataAsCSV({ columns: ["title", "author"], conditions: `category === 'Book'` });
3438
+ * console.log(booksDataCSV);
3439
+ * ```
3440
+ */
3441
+ getDataAsCSV(options?: {
3442
+ columns?: string | string[];
3443
+ conditions?: string;
3444
+ }): Promise<string>;
3445
+ /**
3446
+ * Creates point geometries from latitude and longitude columns.
3447
+ *
3448
+ * @param columnLat - The name of the column storing the latitude values.
3449
+ * @param columnLon - The name of the column storing the longitude values.
3450
+ * @param newColumn - The name of the new column where the point geometries will be stored.
3451
+ * @returns A promise that resolves when the point geometries have been created.
3452
+ * @category Geospatial
3453
+ *
3454
+ * @example
3455
+ * ```ts
3456
+ * // Create point geometries in a new 'geom' column using 'lat' and 'lon' columns
3457
+ * await table.points("lat", "lon", "geom");
3458
+ * ```
3459
+ */
3460
+ points(columnLat: string, columnLon: string, newColumn: string): Promise<void>;
3461
+ /**
3462
+ * Adds a column with boolean values indicating the validity of geometries.
3463
+ *
3464
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for valid, `FALSE` for invalid) will be stored.
3465
+ * @param options - An optional object with configuration options:
3466
+ * @param options.column - The name of the column storing the geometries to be checked. If omitted, the method will automatically attempt to find a geometry column.
3467
+ * @returns A promise that resolves when the validity check is complete.
3468
+ * @category Geospatial
3469
+ *
3470
+ * @example
3471
+ * ```ts
3472
+ * // Check if geometries are valid and store results in a new 'isValid' column
3473
+ * // The method will automatically detect the geometry column.
3474
+ * await table.isValidGeo("isValid");
3475
+ * ```
3476
+ *
3477
+ * @example
3478
+ * ```ts
3479
+ * // Check validity of geometries in a specific column named 'myGeom'
3480
+ * await table.isValidGeo("isValidMyGeom", { column: "myGeom" });
3481
+ * ```
3482
+ */
3483
+ isValidGeo(newColumn: string, options?: {
3484
+ column?: string;
3485
+ }): Promise<void>;
3486
+ /**
3487
+ * Adds a column with the number of vertices (points) in each geometry.
3488
+ *
3489
+ * @param newColumn - The name of the new column where the vertex counts will be stored.
3490
+ * @param options - An optional object with configuration options:
3491
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3492
+ * @returns A promise that resolves when the vertex counts have been added.
3493
+ * @category Geospatial
3494
+ *
3495
+ * @example
3496
+ * ```ts
3497
+ * // Add a new column 'vertexCount' with the number of vertices for each geometry
3498
+ * // The method will automatically detect the geometry column.
3499
+ * await table.nbVertices("vertexCount");
3500
+ * ```
3501
+ *
3502
+ * @example
3503
+ * ```ts
3504
+ * // Add vertex counts for geometries in a specific column named 'myGeom'
3505
+ * await table.nbVertices("myGeomVertices", { column: "myGeom" });
3506
+ * ```
3507
+ */
3508
+ nbVertices(newColumn: string, options?: {
3509
+ column?: string;
3510
+ }): Promise<void>;
3511
+ /**
3512
+ * Attempts to make invalid geometries valid without removing any vertices.
3513
+ *
3514
+ * @param column - The name of the column storing the geometries to be fixed. If omitted, the method will automatically attempt to find a geometry column.
3515
+ * @returns A promise that resolves when the geometries have been processed.
3516
+ * @category Geospatial
3517
+ *
3518
+ * @example
3519
+ * ```ts
3520
+ * // Fix invalid geometries in the default geometry column
3521
+ * await table.fixGeo();
3522
+ * ```
3523
+ *
3524
+ * @example
3525
+ * ```ts
3526
+ * // Fix invalid geometries in a specific column named 'myGeom'
3527
+ * await table.fixGeo("myGeom");
3528
+ * ```
3529
+ */
3530
+ fixGeo(column?: string): Promise<void>;
3531
+ /**
3532
+ * Adds a column with boolean values indicating whether geometries are closed (e.g., polygons) or open (e.g., linestrings).
3533
+ *
3534
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for closed, `FALSE` for open) will be stored.
3535
+ * @param options - An optional object with configuration options:
3536
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3537
+ * @returns A promise that resolves when the closed geometry check is complete.
3538
+ * @category Geospatial
3539
+ *
3540
+ * @example
3541
+ * ```ts
3542
+ * // Check if geometries are closed and store results in a new 'isClosed' column
3543
+ * await table.isClosedGeo("isClosed");
3544
+ * ```
3545
+ *
3546
+ * @example
3547
+ * ```ts
3548
+ * // Check closed status of geometries in a specific column named 'boundaryGeom'
3549
+ * await table.isClosedGeo("boundaryClosed", { column: "boundaryGeom" });
3550
+ * ```
3551
+ */
3552
+ isClosedGeo(newColumn: string, options?: {
3553
+ column?: string;
3554
+ }): Promise<void>;
3555
+ /**
3556
+ * Adds a column with the geometry type (e.g., `"POINT"`, `"LINESTRING"`, `"POLYGON"`) for each geometry.
3557
+ *
3558
+ * @param newColumn - The name of the new column where the geometry types will be stored.
3559
+ * @param options - An optional object with configuration options:
3560
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3561
+ * @returns A promise that resolves when the geometry types have been added.
3562
+ * @category Geospatial
3563
+ *
3564
+ * @example
3565
+ * ```ts
3566
+ * // Add a new column 'geometryType' with the type of each geometry
3567
+ * await table.typeGeo("geometryType");
3568
+ * ```
3569
+ *
3570
+ * @example
3571
+ * ```ts
3572
+ * // Get the geometry type for geometries in a specific column named 'featureGeom'
3573
+ * await table.typeGeo("featureType", { column: "featureGeom" });
3574
+ * ```
3575
+ */
3576
+ typeGeo(newColumn: string, options?: {
3577
+ column?: string;
3578
+ }): Promise<void>;
3579
+ /**
3580
+ * Flips the coordinate order of geometries in a specified column (e.g., from `[lon, lat]` to `[lat, lon]` or vice-versa).
3581
+ * **Warning:** This method should be used with caution as it directly manipulates coordinate order and can affect the accuracy of geospatial operations if not used correctly.
3582
+ *
3583
+ * @param column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3584
+ * @returns A promise that resolves when the coordinates have been flipped.
3585
+ * @category Geospatial
3586
+ *
3587
+ * @example
3588
+ * ```ts
3589
+ * // Flip coordinates in the default geometry column
3590
+ * await table.flipCoordinates();
3591
+ * ```
3592
+ *
3593
+ * @example
3594
+ * ```ts
3595
+ * // Flip coordinates in a specific column named 'myGeom'
3596
+ * await table.flipCoordinates("myGeom");
3597
+ * ```
3598
+ */
3599
+ flipCoordinates(column?: string): Promise<void>;
3600
+ /**
3601
+ * Reduces the precision of geometries in a specified column to a given number of decimal places.
3602
+ *
3603
+ * @param decimals - The number of decimal places to keep in the coordinates of the geometries.
3604
+ * @param options - An optional object with configuration options:
3605
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3606
+ * @returns A promise that resolves when the precision of the geometries has been reduced.
3607
+ * @category Geospatial
3608
+ *
3609
+ * @example
3610
+ * ```ts
3611
+ * // Reduce the precision of geometries in the default column to 3 decimal places
3612
+ * await table.reducePrecision(3);
3613
+ * ```
3614
+ *
3615
+ * @example
3616
+ * ```ts
3617
+ * // Reduce the precision of geometries in a specific column named 'myGeom' to 2 decimal places
3618
+ * await table.reducePrecision(2, { column: "myGeom" });
3619
+ * ```
3620
+ */
3621
+ reducePrecision(decimals: number, options?: {
3622
+ column?: string;
3623
+ }): Promise<void>;
3624
+ /**
3625
+ * Reprojects the geometries in a specified column to another Spatial Reference System (SRS).
3626
+ *
3627
+ * @param to - The target SRS (e.g., `"EPSG:3347"`, `"WGS84"`).
3628
+ * @param options - An optional object with configuration options:
3629
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3630
+ * @returns A promise that resolves when the geometries have been reprojected.
3631
+ * @category Geospatial
3632
+ *
3633
+ * @example
3634
+ * ```ts
3635
+ * // Reproject geometries in the default column to EPSG:3347 (NAD83/Statistics Canada Lambert)
3636
+ * await table.reproject("EPSG:3347");
3637
+ * ```
3638
+ *
3639
+ * @example
3640
+ * ```ts
3641
+ * // Reproject geometries in a specific column named 'myGeom' to EPSG:3347
3642
+ * await table.reproject("EPSG:3347", { column: "myGeom" });
3643
+ * ```
3644
+ */
3645
+ reproject(to: string, options?: {
3646
+ column?: string;
3647
+ }): Promise<void>;
3648
+ /**
3649
+ * Computes the area of geometries in square meters (`"m2"`) or optionally square kilometers (`"km2"`).
3650
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3651
+ *
3652
+ * @param newColumn - The name of the new column where the computed areas will be stored.
3653
+ * @param options - An optional object with configuration options:
3654
+ * @param options.unit - The unit for the computed area: `"m2"` (square meters) or `"km2"` (square kilometers). Defaults to `"m2"`.
3655
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3656
+ * @returns A promise that resolves when the areas have been computed.
3657
+ * @category Geospatial
3658
+ *
3659
+ * @example
3660
+ * ```ts
3661
+ * // Compute the area of geometries in square meters and store in 'area_m2'
3662
+ * await table.area("area_m2");
3663
+ * ```
3664
+ *
3665
+ * @example
3666
+ * ```ts
3667
+ * // Compute the area of geometries in square kilometers and store in 'area_km2'
3668
+ * await table.area("area_km2", { unit: "km2" });
3669
+ * ```
3670
+ *
3671
+ * @example
3672
+ * ```ts
3673
+ * // Compute the area of geometries in a specific column named 'myGeom'
3674
+ * await table.area("myGeomArea", { column: "myGeom" });
3675
+ * ```
3676
+ */
3677
+ area(newColumn: string, options?: {
3678
+ unit?: "m2" | "km2";
3679
+ column?: string;
3680
+ }): Promise<void>;
3681
+ /**
3682
+ * Computes the length of line geometries in meters (`"m"`) or optionally kilometers (`"km"`).
3683
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3684
+ *
3685
+ * @param newColumn - The name of the new column where the computed lengths will be stored.
3686
+ * @param options - An optional object with configuration options:
3687
+ * @param options.unit - The unit for the computed length: `"m"` (meters) or `"km"` (kilometers). Defaults to `"m"`.
3688
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3689
+ * @returns A promise that resolves when the lengths have been computed.
3690
+ * @category Geospatial
3691
+ *
3692
+ * @example
3693
+ * ```ts
3694
+ * // Compute the length of line geometries in meters and store in 'length_m'
3695
+ * await table.length("length_m");
3696
+ * ```
3697
+ *
3698
+ * @example
3699
+ * ```ts
3700
+ * // Compute the length of line geometries in kilometers and store in 'length_km'
3701
+ * await table.length("length_km", { unit: "km" });
3702
+ * ```
3703
+ *
3704
+ * @example
3705
+ * ```ts
3706
+ * // Compute the length of geometries in a specific column named 'routeGeom'
3707
+ * await table.length("routeLength", { column: "routeGeom" });
3708
+ * ```
3709
+ */
3710
+ length(newColumn: string, options?: {
3711
+ unit?: "m" | "km";
3712
+ column?: string;
3713
+ }): Promise<void>;
3714
+ /**
3715
+ * Computes the perimeter of polygon geometries in meters (`"m"`) or optionally kilometers (`"km"`).
3716
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3717
+ *
3718
+ * @param newColumn - The name of the new column where the computed perimeters will be stored.
3719
+ * @param options - An optional object with configuration options:
3720
+ * @param options.unit - The unit for the computed perimeter: `"m"` (meters) or `"km"` (kilometers). Defaults to `"m"`.
3721
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3722
+ * @returns A promise that resolves when the perimeters have been computed.
3723
+ * @category Geospatial
3724
+ *
3725
+ * @example
3726
+ * ```ts
3727
+ * // Compute the perimeter of polygon geometries in meters and store in 'perimeter_m'
3728
+ * await table.perimeter("perimeter_m");
3729
+ * ```
3730
+ *
3731
+ * @example
3732
+ * ```ts
3733
+ * // Compute the perimeter of polygon geometries in kilometers and store in 'perimeter_km'
3734
+ * await table.perimeter("perimeter_km", { unit: "km" });
3735
+ * ```
3736
+ *
3737
+ * @example
3738
+ * ```ts
3739
+ * // Compute the perimeter of geometries in a specific column named 'landParcelGeom'
3740
+ * await table.perimeter("landParcelPerimeter", { column: "landParcelGeom" });
3741
+ * ```
3742
+ */
3743
+ perimeter(newColumn: string, options?: {
3744
+ unit?: "m" | "km";
3745
+ column?: string;
3746
+ }): Promise<void>;
3747
+ /**
3748
+ * Computes a buffer (a polygon representing a specified distance around a geometry) for geometries in a specified column.
3749
+ * The distance is in the Spatial Reference System (SRS) unit of the input geometries.
3750
+ *
3751
+ * @param newColumn - The name of the new column where the buffered geometries will be stored.
3752
+ * @param distance - The distance for the buffer. This value is in the units of the geometry's SRS.
3753
+ * @param options - An optional object with configuration options:
3754
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3755
+ * @returns A promise that resolves when the buffers have been computed.
3756
+ * @category Geospatial
3757
+ *
3758
+ * @example
3759
+ * ```ts
3760
+ * // Create a buffer of 1 unit around geometries in the default column, storing results in 'bufferedGeom'
3761
+ * await table.buffer("bufferedGeom", 1);
3762
+ * ```
3763
+ *
3764
+ * @example
3765
+ * ```ts
3766
+ * // Create a buffer of 10 units around geometries in a specific column named 'pointsGeom'
3767
+ * await table.buffer("pointsBuffer", 10, { column: "pointsGeom" });
3768
+ * ```
3769
+ */
3770
+ buffer(newColumn: string, distance: number, options?: {
3771
+ column?: string;
3772
+ }): Promise<void>;
3773
+ /**
3774
+ * Merges the data of this table (considered the left table) with another table (the right table) based on a spatial relationship.
3775
+ * Note that the order of rows in the returned data is not guaranteed to be the same as in the original tables.
3776
+ * This operation might create temporary files in a `.tmp` folder; consider adding `.tmp` to your `.gitignore`.
3777
+ *
3778
+ * @param rightTable - The SimpleTable instance to be joined with this table.
3779
+ * @param method - The spatial join method to use: `"intersect"` (geometries overlap), `"inside"` (geometries of the left table are entirely within geometries of the right table), or `"within"` (geometries of the left table are within a specified distance of geometries in the right table).
3780
+ * @param options - An optional object with configuration options:
3781
+ * @param options.leftTableColumn - The name of the column storing geometries in the left table (this table). If omitted, the method attempts to find one.
3782
+ * @param options.rightTableColumn - The name of the column storing geometries in the right table. If omitted, the method attempts to find one.
3783
+ * @param options.type - The type of join operation to perform: `"inner"`, `"left"` (default), `"right"`, or `"full"`. For some types (like `"inside"`), the table order is important.
3784
+ * @param options.distance - Required if `method` is `"within"`. The target distance for the spatial join. The unit depends on `distanceMethod`.
3785
+ * @param options.distanceMethod - The method for distance calculations: `"srs"` (default, uses the SRS unit), `"haversine"` (uses meters, requires EPSG:4326 input), or `"spheroid"` (uses meters, requires EPSG:4326 input, most accurate but slowest).
3786
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
3787
+ * @returns A promise that resolves to a table instance containing the spatially joined data (either the modified current table or a new table).
3788
+ * @category Geospatial
3789
+ *
3790
+ * @example
3791
+ * ```ts
3792
+ * // Merge data based on intersecting geometries, overwriting tableA
3793
+ * await tableA.joinGeo(tableB, "intersect");
3794
+ * ```
3795
+ *
3796
+ * @example
3797
+ * ```ts
3798
+ * // Merge data where geometries in tableA are inside geometries in tableB
3799
+ * await tableA.joinGeo(tableB, "inside");
3800
+ * ```
3801
+ *
3802
+ * @example
3803
+ * ```ts
3804
+ * // Merge data where geometries in tableA are within 10 units (SRS) of geometries in tableB
3805
+ * await tableA.joinGeo(tableB, "within", { distance: 10 });
3806
+ * ```
3807
+ *
3808
+ * @example
3809
+ * ```ts
3810
+ * // Merge data where geometries in tableA are within 10 kilometers (Haversine) of geometries in tableB
3811
+ * // Input geometries must be in EPSG:4326.
3812
+ * await tableA.joinGeo(tableB, "within", { distance: 10, distanceMethod: "haversine", unit: "km" });
3813
+ * ```
3814
+ *
3815
+ * @example
3816
+ * ```ts
3817
+ * // Merge data with specific geometry columns and an inner join type, storing results in a new table
3818
+ * const tableC = await tableA.joinGeo(tableB, "intersect", {
3819
+ * leftTableColumn: "geometriesA",
3820
+ * rightTableColumn: "geometriesB",
3821
+ * type: "inner",
3822
+ * outputTable: true,
3823
+ * });
3824
+ * ```
3825
+ */
3826
+ joinGeo(rightTable: SimpleTable, method: "intersect" | "inside" | "within", options?: {
3827
+ leftTableColumn?: string;
3828
+ rightTableColumn?: string;
3829
+ type?: "inner" | "left" | "right" | "full";
3830
+ distance?: number;
3831
+ distanceMethod?: "srs" | "haversine" | "spheroid";
3832
+ outputTable?: string | boolean;
3833
+ }): Promise<this>;
3834
+ /**
3835
+ * Computes the intersection of two sets of geometries, creating new geometries where they overlap.
3836
+ *
3837
+ * @param column1 - The name of the first column storing geometries.
3838
+ * @param column2 - The name of the second column storing geometries. Both columns must have the same projection.
3839
+ * @param newColumn - The name of the new column where the computed intersection geometries will be stored.
3840
+ * @returns A promise that resolves when the intersection geometries have been computed.
3841
+ * @category Geospatial
3842
+ *
3843
+ * @example
3844
+ * ```ts
3845
+ * // Compute the intersection of geometries in 'geomA' and 'geomB' columns, storing results in 'intersectGeom'
3846
+ * await table.intersection("geomA", "geomB", "intersectGeom");
3847
+ * ```
3848
+ */
3849
+ intersection(column1: string, column2: string, newColumn: string): Promise<void>;
3850
+ /**
3851
+ * Removes the intersection of two geometries from the first geometry, effectively computing the geometric difference.
3852
+ *
3853
+ * @param column1 - The name of the column storing the reference geometries. These geometries will have the intersection removed.
3854
+ * @param column2 - The name of the column storing the geometries used to compute the intersection. Both columns must have the same projection.
3855
+ * @param newColumn - The name of the new column where the resulting geometries (without the intersection) will be stored.
3856
+ * @returns A promise that resolves when the geometries have been processed.
3857
+ * @category Geospatial
3858
+ *
3859
+ * @example
3860
+ * ```ts
3861
+ * // Remove the intersection of 'geomB' from 'geomA', storing the result in 'geomA_minus_geomB'
3862
+ * await table.removeIntersection("geomA", "geomB", "geomA_minus_geomB");
3863
+ * ```
3864
+ */
3865
+ removeIntersection(column1: string, column2: string, newColumn: string): Promise<void>;
3866
+ /**
3867
+ * Fills holes in polygon geometries.
3868
+ *
3869
+ * @param column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3870
+ * @returns A promise that resolves when the holes have been filled.
3871
+ * @category Geospatial
3872
+ *
3873
+ * @example
3874
+ * ```ts
3875
+ * // Fill holes in geometries in the default geometry column
3876
+ * await table.fillHoles();
3877
+ * ```
3878
+ *
3879
+ * @example
3880
+ * ```ts
3881
+ * // Fill holes in geometries in a specific column named 'polygonGeom'
3882
+ * await table.fillHoles("polygonGeom");
3883
+ * ```
3884
+ */
3885
+ fillHoles(column?: string): Promise<void>;
3886
+ /**
3887
+ * Returns `TRUE` if two geometries intersect (overlap in any way), and `FALSE` otherwise.
3888
+ *
3889
+ * @param column1 - The name of the first column storing geometries.
3890
+ * @param column2 - The name of the second column storing geometries. Both columns must have the same projection.
3891
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for intersection, `FALSE` otherwise) will be stored.
3892
+ * @returns A promise that resolves when the intersection check is complete.
3893
+ * @category Geospatial
3894
+ *
3895
+ * @example
3896
+ * ```ts
3897
+ * // Check if geometries in 'geomA' and 'geomB' intersect, storing results in 'doIntersect'
3898
+ * await table.intersect("geomA", "geomB", "doIntersect");
3899
+ * ```
3900
+ */
3901
+ intersect(column1: string, column2: string, newColumn: string): Promise<void>;
3902
+ /**
3903
+ * Returns `TRUE` if all points of a geometry in `column1` lie inside a geometry in `column2`, and `FALSE` otherwise.
3904
+ *
3905
+ * @param column1 - The name of the column storing the geometries to be tested for containment.
3906
+ * @param column2 - The name of the column storing the geometries to be tested as containers. Both columns must have the same projection.
3907
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for inside, `FALSE` otherwise) will be stored.
3908
+ * @returns A promise that resolves when the containment check is complete.
3909
+ * @category Geospatial
3910
+ *
3911
+ * @example
3912
+ * ```ts
3913
+ * // Check if geometries in 'pointGeom' are inside 'polygonGeom', storing results in 'isInsidePolygon'
3914
+ * await table.inside("pointGeom", "polygonGeom", "isInsidePolygon");
3915
+ * ```
3916
+ */
3917
+ inside(column1: string, column2: string, newColumn: string): Promise<void>;
3918
+ /**
3919
+ * Computes the union of two geometries, creating a new geometry that represents the merged area of both.
3920
+ *
3921
+ * @param column1 - The name of the first column storing geometries.
3922
+ * @param column2 - The name of the second column storing geometries. Both columns must have the same projection.
3923
+ * @param newColumn - The name of the new column where the computed union geometries will be stored.
3924
+ * @returns A promise that resolves when the union geometries have been computed.
3925
+ * @category Geospatial
3926
+ *
3927
+ * @example
3928
+ * ```ts
3929
+ * // Compute the union of geometries in 'geomA' and 'geomB', storing results in 'unionGeom'
3930
+ * await table.union("geomA", "geomB", "unionGeom");
3931
+ * ```
3932
+ */
3933
+ union(column1: string, column2: string, newColumn: string): Promise<void>;
3934
+ /**
3935
+ * Extracts the latitude and longitude coordinates from point geometries.
3936
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3937
+ *
3938
+ * @param column - The name of the column storing the point geometries.
3939
+ * @param columnLat - The name of the new column where the extracted latitude values will be stored.
3940
+ * @param columnLon - The name of the new column where the extracted longitude values will be stored.
3941
+ * @returns A promise that resolves when the latitude and longitude have been extracted.
3942
+ * @category Geospatial
3943
+ *
3944
+ * @example
3945
+ * ```ts
3946
+ * // Extract latitude and longitude from 'geom' column into new 'lat' and 'lon' columns
3947
+ * await table.latLon("geom", "lat", "lon");
3948
+ * ```
3949
+ */
3950
+ latLon(column: string, columnLat: string, columnLon: string): Promise<void>;
3951
+ /**
3952
+ * Simplifies geometries while preserving their overall coverage. A higher tolerance results in more significant simplification.
3953
+ *
3954
+ * @param tolerance - A numeric value representing the simplification tolerance. A higher value leads to greater simplification.
3955
+ * @param options - An optional object with configuration options:
3956
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3957
+ * @param options.simplifyBoundary - If `true` (default), the boundary of the geometries will also be simplified. If `false`, only the interior of the geometries will be simplified, preserving the original boundary.
3958
+ * @returns A promise that resolves when the geometries have been simplified.
3959
+ * @category Geospatial
3960
+ *
3961
+ * @example
3962
+ * ```ts
3963
+ * // Simplify geometries in the default column with a tolerance of 0.1
3964
+ * await table.simplify(0.1);
3965
+ * ```
3966
+ *
3967
+ * @example
3968
+ * ```ts
3969
+ * // Simplify geometries in 'myGeom' column, preserving the boundary
3970
+ * await table.simplify(0.05, { column: "myGeom", simplifyBoundary: false });
3971
+ * ```
3972
+ */
3973
+ simplify(tolerance: number, options?: {
3974
+ column?: string;
3975
+ simplifyBoundary?: boolean;
3976
+ }): Promise<void>;
3977
+ /**
3978
+ * Computes the centroid of geometries.
3979
+ * The values are returned in the SRS unit of the input geometries.
3980
+ *
3981
+ * @param newColumn - The name of the new column where the computed centroid geometries will be stored.
3982
+ * @param options - An optional object with configuration options:
3983
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3984
+ * @returns A promise that resolves when the centroids have been computed.
3985
+ * @category Geospatial
3986
+ *
3987
+ * @example
3988
+ * ```ts
3989
+ * // Compute the centroid of geometries in the default column, storing results in 'centerPoint'
3990
+ * await table.centroid("centerPoint");
3991
+ * ```
3992
+ *
3993
+ * @example
3994
+ * ```ts
3995
+ * // Compute the centroid of geometries in a specific column named 'areaGeom'
3996
+ * await table.centroid("areaCentroid", { column: "areaGeom" });
3997
+ * ```
3998
+ */
3999
+ centroid(newColumn: string, options?: {
4000
+ column?: string;
4001
+ }): Promise<void>;
4002
+ /**
4003
+ * Generates a random point within the geometries of a specified column.
4004
+ *
4005
+ * @param newColumn - The name of the new column where the random points will be stored.
4006
+ * @param nbPointsToTry - The number of points to generate within the bounding box of each geometry to find one that is within the geometry itself.
4007
+ * @param options - An optional object with configuration options:
4008
+ * @param options.column - The name of the column storing the geometries within which the random points will be generated. If omitted, the method will automatically attempt to find a geometry column.
4009
+ * @param options.try - If `true`, the method will not throw an error if some points cannot be generated. Corresponding rows will have `NULL` in the new column.
4010
+ *
4011
+ * @example
4012
+ * ```ts
4013
+ * // Generate a random point for each geometry in the default column, trying 100 points
4014
+ * await table.randomPoint("randomPoint", 100);
4015
+ * ```
4016
+ *
4017
+ * @example
4018
+ * ```ts
4019
+ * // Generate a random point for each geometry in a specific column named 'areaGeom', trying 50 points
4020
+ * await table.randomPoint("pointInArea", 50, { column: "areaGeom" });
4021
+ * ```
4022
+ *
4023
+ * @example
4024
+ * ```ts
4025
+ * // Generate a random point for each geometry, but don't throw if some points cannot be generated
4026
+ * await table.randomPoint("pointInArea", 1, { try: true });
4027
+ * ```
4028
+ */
4029
+ randomPoint(newColumn: string, nbPointsToTry: number, options?: {
4030
+ column?: string;
4031
+ try?: boolean;
4032
+ }): Promise<void>;
4033
+ /**
4034
+ * Computes the distance between geometries in two specified columns.
4035
+ * By default, the distance is calculated in the Spatial Reference System (SRS) unit of the input geometries.
4036
+ * You can optionally specify `"spheroid"` or `"haversine"` methods to get results in meters or kilometers.
4037
+ * If using `"spheroid"` or `"haversine"`, the input geometries must be in the EPSG:4326 coordinate system (WGS84).
4038
+ *
4039
+ * @param column1 - The name of the first column storing geometries.
4040
+ * @param column2 - The name of the second column storing geometries.
4041
+ * @param newColumn - The name of the new column where the computed distances will be stored.
4042
+ * @param options - An optional object with configuration options:
4043
+ * @param options.method - The method to use for distance calculations: `"srs"` (default, uses SRS unit), `"haversine"` (meters, requires EPSG:4326), or `"spheroid"` (meters, requires EPSG:4326, most accurate but slowest).
4044
+ * @param options.unit - If `method` is `"spheroid"` or `"haversine"`, you can choose between `"m"` (meters, default) or `"km"` (kilometers).
4045
+ * @param options.decimals - The number of decimal places to round the distance values. Defaults to `undefined` (no rounding).
4046
+ * @returns A promise that resolves when the distances have been computed.
4047
+ * @category Geospatial
4048
+ *
4049
+ * @example
4050
+ * ```ts
4051
+ * // Compute distance between 'geomA' and 'geomB' in SRS units, store in 'distance_srs'
4052
+ * await table.distance("geomA", "geomB", "distance_srs");
4053
+ * ```
4054
+ *
4055
+ * @example
4056
+ * ```ts
4057
+ * // Compute Haversine distance in meters between 'point1' and 'point2', store in 'distance_m'
4058
+ * // Input geometries must be in EPSG:4326.
4059
+ * await table.distance("point1", "point2", "distance_m", { method: "haversine" });
4060
+ * ```
4061
+ *
4062
+ * @example
4063
+ * ```ts
4064
+ * // Compute Haversine distance in kilometers, rounded to 2 decimal places
4065
+ * // Input geometries must be in EPSG:4326.
4066
+ * await table.distance("point1", "point2", "distance_km", { method: "haversine", unit: "km", decimals: 2 });
4067
+ * ```
4068
+ *
4069
+ * @example
4070
+ * ```ts
4071
+ * // Compute Spheroid distance in kilometers
4072
+ * // Input geometries must be in EPSG:4326.
4073
+ * await table.distance("area1", "area2", "distance_spheroid_km", { method: "spheroid", unit: "km" });
4074
+ * ```
4075
+ */
4076
+ distance(column1: string, column2: string, newColumn: string, options?: {
4077
+ unit?: "m" | "km";
4078
+ method?: "srs" | "haversine" | "spheroid";
4079
+ decimals?: number;
4080
+ }): Promise<void>;
4081
+ /**
4082
+ * Unnests geometries recursively, transforming multi-part geometries (e.g., MultiPolygon) into individual single-part geometries (e.g., Polygon).
4083
+ *
4084
+ * @param column - The name of the column storing the geometries to be unnested. If omitted, the method will automatically attempt to find a geometry column.
4085
+ * @returns A promise that resolves when the geometries have been unnested.
4086
+ * @category Geospatial
4087
+ *
4088
+ * @example
4089
+ * ```ts
4090
+ * // Unnest geometries in the default column
4091
+ * await table.unnestGeo();
4092
+ * ```
4093
+ *
4094
+ * @example
4095
+ * ```ts
4096
+ * // Unnest geometries in a specific column named 'multiGeom'
4097
+ * await table.unnestGeo("multiGeom");
4098
+ * ```
4099
+ */
4100
+ unnestGeo(column?: string): Promise<void>;
4101
+ /**
4102
+ * Computes the bounding box of geometries in a specified column, creating four new columns: `minLon`, `minLat`, `maxLon`, and `maxLat`.
4103
+ *
4104
+ * @param options - An optional object with configuration options:
4105
+ * @param options.column - The name of the column storing the geometries for which the bounding box will be computed. If omitted, the method will automatically attempt to find a geometry column.
4106
+ * @param options.decimals - The number of decimal places to round the bounding box coordinates. Defaults to `undefined` (no rounding).
4107
+ * @returns A promise that resolves when the bounding box coordinates have been computed and stored in new columns.
4108
+ * @category Geospatial
4109
+ *
4110
+ * @example
4111
+ * ```ts
4112
+ * // Compute the bounding box for geometries in the default column
4113
+ * await table.boundingBox();
4114
+ * // The table now has minLon, minLat, maxLon, and maxLat columns.
4115
+ * ```
4116
+ *
4117
+ * @example
4118
+ * ```ts
4119
+ * // Compute the bounding box for geometries in 'geom' column and round coordinates to 2 decimal places
4120
+ * await table.boundingBox({ column: "geom", decimals: 2 });
4121
+ * // The table now has minLon, minLat, maxLon, and maxLat columns with values rounded to 2 decimal places.
4122
+ * ```
4123
+ */
4124
+ boundingBox(options?: {
4125
+ column?: string;
4126
+ decimals?: number;
4127
+ }): Promise<void>;
4128
+ /**
4129
+ * Aggregates geometries in a specified column based on a chosen aggregation method.
4130
+ *
4131
+ * @param method - The aggregation method to apply: `"union"` (combines all geometries into a single multi-geometry) or `"intersection"` (computes the intersection of all geometries).
4132
+ * @param options - An optional object with configuration options:
4133
+ * @param options.column - The name of the column storing the geometries to be aggregated. If omitted, the method will automatically attempt to find a geometry column.
4134
+ * @param options.categories - The column name or an array of column names that define categories for the aggregation. Aggregation will be performed independently within each category.
4135
+ * @param options.outputTable - If `true`, the results will be stored in a new table with a generated name. If a string, it will be used as the name for the new table. If `false` or omitted, the current table will be overwritten. Defaults to `false`.
4136
+ * @returns A promise that resolves to a table instance containing the aggregated geometries (either the modified current table or a new table).
4137
+ * @category Geospatial
4138
+ *
4139
+ * @example
4140
+ * ```ts
4141
+ * // Aggregate all geometries in the default column into a single union geometry
4142
+ * await table.aggregateGeo("union");
4143
+ * ```
4144
+ *
4145
+ * @example
4146
+ * ```ts
4147
+ * // Aggregate geometries by 'country' and compute their union
4148
+ * await table.aggregateGeo("union", { categories: "country" });
4149
+ * ```
4150
+ *
4151
+ * @example
4152
+ * ```ts
4153
+ * // Aggregate geometries in 'regions' column into their intersection, storing results in a new table
4154
+ * const intersectionTable = await table.aggregateGeo("intersection", { column: "regions", outputTable: true });
4155
+ * ```
4156
+ */
4157
+ aggregateGeo(method: "union" | "intersection", options?: {
4158
+ column?: string;
4159
+ categories?: string | string[];
4160
+ outputTable?: string | boolean;
4161
+ }): Promise<this>;
4162
+ /**
4163
+ * Transforms closed linestring geometries into polygon geometries.
4164
+ *
4165
+ * @param column - The name of the column storing the linestring geometries. If omitted, the method will automatically attempt to find a geometry column.
4166
+ * @returns A promise that resolves when the transformation is complete.
4167
+ * @category Geospatial
4168
+ *
4169
+ * @example
4170
+ * ```ts
4171
+ * // Transform closed linestrings in the default geometry column into polygons
4172
+ * await table.linesToPolygons();
4173
+ * ```
4174
+ *
4175
+ * @example
4176
+ * ```ts
4177
+ * // Transform closed linestrings in a specific column named 'routeLines' into polygons
4178
+ * await table.linesToPolygons("routeLines");
4179
+ * ```
4180
+ */
4181
+ linesToPolygons(column?: string): Promise<void>;
4182
+ /**
4183
+ * Returns the bounding box of geometries in `[minLon, minLat, maxLon, maxLat]` order.
4184
+ * By default, the method will try to find the column with the geometries. The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
4185
+ *
4186
+ * @param column - The name of the column storing geometries. If omitted, the method will automatically attempt to find a geometry column.
4187
+ * @returns A promise that resolves to an array `[minLon, minLat, maxLon, maxLat]` representing the bounding box.
4188
+ * @category Geospatial
4189
+ *
4190
+ * @example
4191
+ * ```ts
4192
+ * // Get the bounding box of geometries in the default column
4193
+ * const bbox = await table.getBoundingBox();
4194
+ * console.log(bbox); // e.g., [-75.0, 45.0, -73.0, 46.0]
4195
+ * ```
4196
+ *
4197
+ * @example
4198
+ * ```ts
4199
+ * // Get the bounding box of geometries in a specific column named 'areaGeom'
4200
+ * const areaBbox = await table.getBoundingBox("areaGeom");
4201
+ * console.log(areaBbox);
4202
+ * ```
4203
+ */
4204
+ getBoundingBox(column?: string): Promise<[number, number, number, number]>;
4205
+ /**
4206
+ * Returns the table's geospatial data as a GeoJSON object.
4207
+ * If the table has multiple geometry columns, you must specify which one to use.
4208
+ *
4209
+ * @param column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
4210
+ * @param options - An optional object with configuration options:
4211
+ * @param options.rewind - If `true`, rewinds the coordinates of polygons to follow the spherical winding order (important for D3.js). Defaults to `false`.
4212
+ * @returns A promise that resolves to a GeoJSON object representing the table's geospatial data.
4213
+ * @category Getting Data
4214
+ *
4215
+ * @example
4216
+ * ```ts
4217
+ * // Get GeoJSON data from the default geometry column
4218
+ * const geojson = await table.getGeoData();
4219
+ * console.log(geojson);
4220
+ * ```
4221
+ *
4222
+ * @example
4223
+ * ```ts
4224
+ * // Get GeoJSON data from a specific geometry column named 'myGeometries'
4225
+ * const myGeomJson = await table.getGeoData("myGeometries");
4226
+ * console.log(myGeomJson);
4227
+ * ```
4228
+ *
4229
+ * @example
4230
+ * ```ts
4231
+ * // Get GeoJSON data and rewind polygon coordinates for D3.js compatibility
4232
+ * const rewoundGeojson = await table.getGeoData(undefined, { rewind: true });
4233
+ * console.log(rewoundGeojson);
4234
+ * ```
4235
+ */
4236
+ getGeoData(column?: string, options?: {
4237
+ rewind?: boolean;
4238
+ }): Promise<{
4239
+ type: string;
4240
+ features: unknown[];
4241
+ }>;
4242
+ /**
4243
+ * Writes the table's data to a file in various formats (CSV, JSON, Parquet, DuckDB, SQLite).
4244
+ * If the specified path does not exist, it will be created.
4245
+ *
4246
+ * @param file - The absolute path to the output file (e.g., `"./output.csv"`, `"./output.json"`).
4247
+ * @param options - An optional object with configuration options:
4248
+ * @param options.compression - A boolean indicating whether to compress the output file. If `true`, CSV and JSON files will be compressed with GZIP, while Parquet files will use ZSTD. Defaults to `false`.
4249
+ * @param options.dataAsArrays - For JSON files only. If `true`, JSON files are written as a single object with arrays for each column (e.g., `{ "col1": [v1, v2], "col2": [v3, v4] }`) instead of an array of objects. This can reduce file size for web projects. You can use the `arraysToData` function from the [journalism library](https://jsr.io/@nshiab/journalism/doc/~/arraysToData) to convert it back.
4250
+ * @param options.formatDates - For CSV and JSON files only. If `true`, date and timestamp columns will be formatted as ISO 8601 strings (e.g., `"2025-01-01T01:00:00.000Z"`). Defaults to `false`.
4251
+ * @returns A promise that resolves when the data has been written to the file.
4252
+ * @category File Operations
4253
+ *
4254
+ * @example
4255
+ * ```ts
4256
+ * // Write data to a CSV file
4257
+ * await table.writeData("./output.csv");
4258
+ * ```
4259
+ *
4260
+ * @example
4261
+ * ```ts
4262
+ * // Write data to a JSON file with GZIP compression.
4263
+ * // The output file will be named output.json.gz.
4264
+ * await table.writeData("./output.json", { compression: true });
4265
+ * ```
4266
+ *
4267
+ * @example
4268
+ * ```ts
4269
+ * // Write data to a Parquet file
4270
+ * await table.writeData("./output.parquet");
4271
+ * ```
4272
+ *
4273
+ * @example
4274
+ * ```ts
4275
+ * // Write data to a DuckDB database file
4276
+ * await table.writeData("./my_database.db");
4277
+ * ```
4278
+ *
4279
+ * @example
4280
+ * ```ts
4281
+ * // Write data to a SQLite database file
4282
+ * await table.writeData("./my_database.sqlite");
4283
+ * ```
4284
+ *
4285
+ * @example
4286
+ * ```ts
4287
+ * // Write JSON data with dates formatted as ISO strings
4288
+ * await table.writeData("./output_dates.json", { formatDates: true });
4289
+ * ```
4290
+ */
4291
+ writeData(file: string, options?: {
4292
+ compression?: boolean;
4293
+ dataAsArrays?: boolean;
4294
+ formatDates?: boolean;
4295
+ }): Promise<void>;
4296
+ /**
4297
+ * Writes the table's geospatial data to a file in GeoJSON, GeoParquet, or Shapefile format.
4298
+ * If the specified path does not exist, it will be created.
4299
+ *
4300
+ * @param file - The absolute path to the output file (e.g., `"./output.geojson"`, `"./output.geoparquet"`, `"./shapefile-folder/output.shp"`).
4301
+ * @param options - An optional object with configuration options:
4302
+ * @param options.precision - For GeoJSON, the maximum number of figures after the decimal separator to write in coordinates. Defaults to `undefined` (full precision).
4303
+ * @param options.compression - For GeoParquet, if `true`, the output will be ZSTD compressed. Defaults to `false`.
4304
+ * @param options.rewind - For GeoJSON, if `true`, rewinds the coordinates of polygons to follow the right-hand rule (RFC 7946). Defaults to `false`.
4305
+ * @param options.metadata - For GeoJSON, an object to be added as top-level metadata to the GeoJSON output.
4306
+ * @param options.formatDates - For GeoJSON, if `true`, formats date and timestamp columns to ISO 8601 strings. Defaults to `false`.
4307
+ * @returns A promise that resolves when the geospatial data has been written to the file.
4308
+ * @category File Operations
4309
+ *
4310
+ * @example
4311
+ * ```ts
4312
+ * // Write geospatial data to a GeoJSON file
4313
+ * await table.writeGeoData("./output.geojson");
4314
+ * ```
4315
+ *
4316
+ * @example
4317
+ * ```ts
4318
+ * // Write geospatial data to a compressed GeoParquet file
4319
+ * await table.writeGeoData("./output.geoparquet", { compression: true });
4320
+ * ```
4321
+ *
4322
+ * @example
4323
+ * ```ts
4324
+ * // Write geospatial data to a Shapefile with all relevant files in the same folder
4325
+ * await table.writeGeoData("./shapefile-folder/output.shp");
4326
+ * ```
4327
+ *
4328
+ * @example
4329
+ * ```ts
4330
+ * // Write GeoJSON with specific precision and metadata
4331
+ * await table.writeGeoData("./output_high_precision.geojson", {
4332
+ * precision: 6,
4333
+ * metadata: { source: "SimpleDataAnalysis" },
4334
+ * });
4335
+ * ```
4336
+ */
4337
+ writeGeoData(file: string, options?: {
4338
+ precision?: number;
4339
+ compression?: boolean;
4340
+ rewind?: boolean;
4341
+ metadata?: unknown;
4342
+ formatDates?: boolean;
4343
+ }): Promise<void>;
4344
+ /**
4345
+ * Caches the results of computations in `./.sda-cache`.
4346
+ * You should add `./.sda-cache` to your `.gitignore` file.
4347
+ *
4348
+ * @param run - A function wrapping the computations to be cached. This function will be executed on the first run or if the cached data is invalid/expired.
4349
+ * @param options - An optional object with configuration options:
4350
+ * @param options.ttl - Time to live (in seconds). If the data in the cache is older than this duration, the `run` function will be executed again to refresh the cache. By default, there is no TTL, meaning the cache is only invalidated if the `run` function's content changes.
4351
+ * @returns A promise that resolves when the computations are complete or the data is loaded from cache.
4352
+ * @category Caching
4353
+ *
4354
+ * @example
4355
+ * ```ts
4356
+ * // Basic usage: computations are cached and re-run only if the function content changes
4357
+ * const sdb = new SimpleDB();
4358
+ * const table = sdb.newTable();
4359
+ *
4360
+ * await table.cache(async () => {
4361
+ * await table.loadData("items.csv");
4362
+ * await table.summarize({
4363
+ * values: "price",
4364
+ * categories: "department",
4365
+ * summaries: ["min", "max", "mean"],
4366
+ * });
4367
+ * });
4368
+ *
4369
+ * // It's important to call done() on the SimpleDB instance to clean up the cache.
4370
+ * // This prevents the cache from growing indefinitely.
4371
+ * await sdb.done();
4372
+ * ```
4373
+ *
4374
+ * @example
4375
+ * ```ts
4376
+ * // Cache with a Time-To-Live (TTL) of 60 seconds
4377
+ * // The computations will be re-run if the cached data is older than 1 minute or if the function content changes.
4378
+ * const sdb = new SimpleDB();
4379
+ * const table = sdb.newTable();
4380
+ *
4381
+ * await table.cache(async () => {
4382
+ * await table.loadData("items.csv");
4383
+ * await table.summarize({
4384
+ * values: "price",
4385
+ * categories: "department",
4386
+ * summaries: ["min", "max", "mean"],
4387
+ * });
4388
+ * }, { ttl: 60 });
4389
+ *
4390
+ * await sdb.done();
4391
+ * ```
4392
+ *
4393
+ * @example
4394
+ * ```ts
4395
+ * // Enable verbose logging for cache operations via SimpleDB instance
4396
+ * const sdb = new SimpleDB({ cacheVerbose: true });
4397
+ * const table = sdb.newTable();
4398
+ *
4399
+ * await table.cache(async () => {
4400
+ * await table.loadData("items.csv");
4401
+ * await table.summarize({
4402
+ * values: "price",
4403
+ * categories: "department",
4404
+ * summaries: ["min", "max", "mean"],
4405
+ * });
4406
+ * });
4407
+ *
4408
+ * await sdb.done();
4409
+ * ```
4410
+ */
4411
+ cache(run: () => Promise<void>, options?: {
4412
+ ttl?: number;
4413
+ }): Promise<void>;
4414
+ /**
4415
+ * Logs a specified number of rows from the table to the console. By default, the first 10 rows are logged.
4416
+ * You can optionally log the column types and filter the data based on conditions.
4417
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
4418
+ *
4419
+ * @param options - Either the number of rows to log (a specific number or `"all"`) or an object with configuration options:
4420
+ * @param options.nbRowsToLog - The number of rows to log. Defaults to 10 or the value set in the SimpleDB instance. Use `"all"` to log all rows.
4421
+ * @param options.types - If `true`, logs the column types along with the data. Defaults to `false`.
4422
+ * @param options.conditions - A SQL `WHERE` clause condition to filter the data before logging. Defaults to no condition.
4423
+ * @returns A promise that resolves when the table data has been logged.
4424
+ * @category Logging
4425
+ *
4426
+ * @example
4427
+ * ```ts
4428
+ * // Log the first 10 rows (default behavior)
4429
+ * await table.logTable();
4430
+ * ```
4431
+ *
4432
+ * @example
4433
+ * ```ts
4434
+ * // Log the first 50 rows
4435
+ * await table.logTable(50);
4436
+ * ```
4437
+ *
4438
+ * @example
4439
+ * ```ts
4440
+ * // Log all rows
4441
+ * await table.logTable("all");
4442
+ * ```
4443
+ *
4444
+ * @example
4445
+ * ```ts
4446
+ * // Log the first 20 rows and include column types
4447
+ * await table.logTable({ nbRowsToLog: 20, types: true });
4448
+ * ```
4449
+ *
4450
+ * @example
4451
+ * ```ts
4452
+ * // Log rows where 'status' is 'active' (using JS syntax for conditions)
4453
+ * await table.logTable({ conditions: `status === 'active'` });
4454
+ * ```
4455
+ */
4456
+ logTable(options?: "all" | number | {
4457
+ nbRowsToLog?: number | "all";
4458
+ types?: boolean;
4459
+ conditions?: string;
4460
+ }): Promise<void>;
4461
+ /**
4462
+ * Generates and logs a histogram of a numeric column to the console.
4463
+ *
4464
+ * @param values - The name of the numeric column for which to generate the histogram.
4465
+ * @param options - An optional object with configuration options:
4466
+ * @param options.bins - The number of bins (intervals) to use for the histogram. Defaults to 10.
4467
+ * @param options.formatLabels - A function to format the labels for the histogram bins. It receives the lower and upper bounds of each bin as arguments.
4468
+ * @param options.compact - If `true`, the histogram will be displayed in a more compact format. Defaults to `false`.
4469
+ * @param options.width - The maximum width of the histogram bars in characters.
4470
+ * @returns A promise that resolves when the histogram has been logged to the console.
4471
+ * @category Dataviz
4472
+ *
4473
+ * @example
4474
+ * // Basic histogram of the 'temperature' column
4475
+ * ```typescript
4476
+ * await table.logHistogram("temperature")
4477
+ * ```
4478
+ *
4479
+ * @example
4480
+ * // Histogram with 20 bins and custom label formatting
4481
+ * ```typescript
4482
+ * await table.logHistogram("age", {
4483
+ * bins: 20,
4484
+ * formatLabels: (min, max) => `${min}-${max} years`,
4485
+ * });
4486
+ * ```
4487
+ */
4488
+ /**
4489
+ * Logs descriptive information about the columns in the table to the console. This includes details such as data types, number of null values, and number of distinct values for each column.
4490
+ * It internally calls the `getDescription` method to retrieve the descriptive statistics.
4491
+ *
4492
+ * @returns A promise that resolves when the column description has been logged to the console.
4493
+ * @category Logging
4494
+ *
4495
+ * @example
4496
+ * ```ts
4497
+ * // Log descriptive information for all columns in the table
4498
+ * await table.logDescription();
4499
+ * ```
4500
+ */
4501
+ logDescription(): Promise<void>;
4502
+ /**
4503
+ * Retrieves the projection of a specified geospatial column.
4504
+ *
4505
+ * @param column - The name of the geospatial column for which to retrieve the projection.
4506
+ * @returns A promise that resolves to the projection of the specified column.
4507
+ * @category Geospatial
4508
+ *
4509
+ * @example
4510
+ * ```ts
4511
+ * // Get the projection of the 'geom' column
4512
+ * const projection = await table.getProjection("geom");
4513
+ * ```
4514
+ */
4515
+ getProjection(column: string): Promise<string>;
4516
+ /**
4517
+ * Logs the projections of the geospatial data (if any) to the console.
4518
+ *
4519
+ * @returns A promise that resolves to the SimpleTable instance after logging the projections.
4520
+ * @category Logging
4521
+ *
4522
+ * @example
4523
+ * ```ts
4524
+ * // Log the geospatial projections of the table
4525
+ * await table.logProjections();
4526
+ * ```
4527
+ */
4528
+ logProjections(): Promise<this>;
4529
+ /**
4530
+ * Logs the types of all columns in the table to the console.
4531
+ *
4532
+ * @returns A promise that resolves to the SimpleTable instance after logging the column types.
4533
+ * @category Logging
4534
+ *
4535
+ * @example
4536
+ * ```ts
4537
+ * // Log the data types of all columns in the table
4538
+ * await table.logTypes();
4539
+ * ```
4540
+ */
4541
+ logTypes(): Promise<this>;
4542
+ /**
4543
+ * Logs unique values for a specified column to the console. By default, a maximum of 100 values are logged (depending on your runtime).
4544
+ * You can optionally stringify the values to see them all.
4545
+ *
4546
+ * @param column - The name of the column from which to retrieve and log unique values.
4547
+ * @param options - An optional object with configuration options:
4548
+ * @param options.stringify - If `true`, converts the unique values to a JSON string before logging. Defaults to `false`.
4549
+ * @returns A promise that resolves to the SimpleTable instance after logging the unique values.
4550
+ * @category Logging
4551
+ *
4552
+ * @example
4553
+ * ```ts
4554
+ * // Logs unique values for the column "name"
4555
+ * await table.logUniques("name");
4556
+ * ```
4557
+ *
4558
+ * @example
4559
+ * ```ts
4560
+ * // Logs unique values for the column "name" and stringifies them
4561
+ * await table.logUniques("name", { stringify: true });
4562
+ * ```
4563
+ */
4564
+ logUniques(column: string, options?: {
4565
+ stringify?: boolean;
4566
+ }): Promise<this>;
4567
+ /**
4568
+ * Logs the columns in the table to the console. You can optionally include their data types.
4569
+ *
4570
+ * @param options - An optional object with configuration options:
4571
+ * @param options.types - If `true`, logs the column names along with their data types. Defaults to `false`.
4572
+ * @returns A promise that resolves to the SimpleTable instance after logging the columns.
4573
+ * @category Logging
4574
+ *
4575
+ * @example
4576
+ * ```ts
4577
+ * // Log only the column names
4578
+ * await table.logColumns();
4579
+ * ```
4580
+ *
4581
+ * @example
4582
+ * ```ts
4583
+ * // Log column names along with their types
4584
+ * await table.logColumns({ types: true });
4585
+ * ```
4586
+ */
4587
+ logColumns(options?: {
4588
+ types?: boolean;
4589
+ }): Promise<this>;
4590
+ /**
4591
+ * Logs the total number of rows in the table to the console.
4592
+ *
4593
+ * @returns A promise that resolves to the SimpleTable instance after logging the row count.
4594
+ * @category Logging
4595
+ *
4596
+ * @example
4597
+ * ```ts
4598
+ * // Log the total number of rows in the table
4599
+ * await table.logNbRows();
4600
+ * ```
4601
+ */
4602
+ logNbRows(): Promise<this>;
4603
+ /**
4604
+ * Logs the bottom `n` rows of the table to the console. By default, the last row will be returned first. To preserve the original order, use the `originalOrder` option.
4605
+ *
4606
+ * @param count - The number of rows to log from the bottom of the table. Defaults to the table's `nbRowsToLog` option if not specified.
4607
+ * @param options - An optional object with logging preferences.
4608
+ * @param options.originalOrder - If true, the rows are displayed in their original order (top to bottom). Defaults to false.
4609
+ * @returns A promise that resolves when the rows have been logged to the console.
4610
+ * @category Logging
4611
+ *
4612
+ * @example
4613
+ * ```ts
4614
+ * // Log bottom rows with default count (uses table's nbRowsToLog option)
4615
+ * await table.logBottom();
4616
+ * ```
4617
+ *
4618
+ * @example
4619
+ * ```ts
4620
+ * // Log the last 10 rows (displayed with last row first)
4621
+ * await table.logBottom(10);
4622
+ * ```
4623
+ *
4624
+ * @example
4625
+ * ```ts
4626
+ * // Log the last 5 rows in original order (top to bottom)
4627
+ * await table.logBottom(5, { originalOrder: true });
4628
+ * ```
4629
+ */
4630
+ logBottom(count?: number, options?: {
4631
+ originalOrder?: boolean;
4632
+ }): Promise<void>;
4633
+ /**
4634
+ * Logs the extent (minimum and maximum values) of a numeric column to the console.
4635
+ *
4636
+ * @param column - The name of the numeric column for which to log the extent.
4637
+ * @returns A promise that resolves when the column extent has been logged to the console.
4638
+ * @category Logging
4639
+ *
4640
+ * @example
4641
+ * ```ts
4642
+ * // Log the extent of the 'price' column
4643
+ * await table.logExtent("price");
4644
+ * ```
4645
+ */
4646
+ logExtent(column: string): Promise<void>;
4647
+ }
4648
+ //# sourceMappingURL=SimpleTable.d.ts.map