@nshiab/simple-data-analysis 5.19.19 → 5.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1147) hide show
  1. package/esm/class/SimpleDB.d.ts +1 -1
  2. package/esm/class/SimpleDB.d.ts.map +1 -1
  3. package/esm/class/SimpleDB.js +1 -1
  4. package/esm/class/SimpleTable.d.ts +1 -1
  5. package/esm/class/SimpleTable.d.ts.map +1 -1
  6. package/esm/class/SimpleTable.js +3 -3
  7. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/Simple.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleDB.d.ts +482 -0
  9. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleDB.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleDB.js +805 -0
  11. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleTable.d.ts +4589 -0
  12. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleTable.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleTable.js +5561 -0
  14. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/accumulateQuery.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/camelCase.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/capitalize.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/checkVssIndexes.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/cleanCache.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/cleanPath.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/cleanSQL.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/concatenateRowQuery.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/convertForJS.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/convertForJS.js +39 -0
  24. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/createDirectory.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/csvFormat.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/dataToArrays.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/extractTypes.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/findGeoColumn.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/findGeoColumn.js +18 -0
  30. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/formatDate.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/formatNumber.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getCombinations.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getExtension.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getIdenticalColumns.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getName.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/hasGeometryColumn.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/hasGeometryColumn.js +21 -0
  38. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/index.d.ts.map +1 -0
  39. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/keepNumericalColumns.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/logData.d.ts.map +1 -0
  41. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/logData.js +53 -0
  42. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/mergeOptions.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/nestQuery.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseDuckDBType.d.ts.map +1 -0
  45. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseTypes.d.ts +2 -0
  46. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseTypes.d.ts.map +1 -0
  47. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseTypes.js +37 -0
  48. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseValue.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/prettyDuration.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/printTable.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/queryDB.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/repeatRowsQuery.d.ts.map +1 -0
  53. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/rewind.d.ts.map +1 -0
  54. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/runQuery.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/setDbProps.d.ts +3 -0
  56. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/setDbProps.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/setDbProps.js +21 -0
  58. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/stringToArray.d.ts.map +1 -0
  59. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/stringifyDates.d.ts.map +1 -0
  60. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/stringifyDatesInvert.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unifyColumns.d.ts +7 -0
  62. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unifyColumns.d.ts.map +1 -0
  63. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unifyColumns.js +17 -0
  64. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unnestQuery.d.ts.map +1 -0
  65. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/wrapString.d.ts.map +1 -0
  66. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeDataAsArrays.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeGeoData.d.ts.map +1 -0
  68. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeGeoData.js +80 -0
  69. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeIndexes.d.ts +3 -0
  70. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeIndexes.d.ts.map +1 -0
  71. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeIndexes.js +16 -0
  72. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/index.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/aggregateGeoQuery.d.ts.map +1 -0
  74. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/binsQuery.d.ts.map +1 -0
  75. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/bm25.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/bm25.js +48 -0
  77. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cache.d.ts.map +1 -0
  78. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cache.js +133 -0
  79. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/capitalizeQuery.d.ts.map +1 -0
  80. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cloneColumn.d.ts.map +1 -0
  81. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cloneQuery.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/concatenateQuery.d.ts.map +1 -0
  83. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/convertQuery.d.ts.map +1 -0
  84. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/correlations.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/correlationsQuery.d.ts.map +1 -0
  86. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/createFtsIndex.d.ts.map +1 -0
  87. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/createVssIndex.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/crossJoinQuery.d.ts.map +1 -0
  89. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/distanceQuery.d.ts.map +1 -0
  90. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/distanceQuery.js +44 -0
  91. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fill.d.ts.map +1 -0
  92. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyClean.d.ts.map +1 -0
  93. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyJoin.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyJoin.js +52 -0
  95. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyJoinQuery.d.ts.map +1 -0
  96. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getBottom.d.ts.map +1 -0
  97. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getColumns.d.ts.map +1 -0
  98. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getDescription.d.ts.map +1 -0
  99. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getFirstRow.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getGeoData.d.ts.map +1 -0
  101. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getGeoData.js +32 -0
  102. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getLastRow.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMax.d.ts.map +1 -0
  104. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMean.d.ts.map +1 -0
  105. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMedian.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMin.d.ts.map +1 -0
  107. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getNbCharacters.d.ts.map +1 -0
  108. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getNbRows.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getQuantile.d.ts.map +1 -0
  110. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getSkew.d.ts.map +1 -0
  111. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getStdDev.d.ts.map +1 -0
  112. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getSum.d.ts.map +1 -0
  113. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getTableNames.d.ts.map +1 -0
  114. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getTop.d.ts.map +1 -0
  115. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getTypes.d.ts.map +1 -0
  116. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getUniques.d.ts.map +1 -0
  117. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getValues.d.ts.map +1 -0
  118. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getVar.d.ts.map +1 -0
  119. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/insertRowsQuery.d.ts.map +1 -0
  120. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/join.d.ts.map +1 -0
  121. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/join.js +57 -0
  122. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeo.d.ts.map +1 -0
  123. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeo.js +63 -0
  124. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeoQuery.d.ts.map +1 -0
  125. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeoQuery.js +55 -0
  126. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinQuery.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/keepQuery.d.ts.map +1 -0
  128. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/linearRegressionQuery.d.ts.map +1 -0
  129. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/linearRegressions.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/loadArray.d.ts.map +1 -0
  131. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/loadDataQuery.d.ts.map +1 -0
  132. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/loadSample.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/lowerQuery.d.ts.map +1 -0
  134. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/normalizeQuery.d.ts.map +1 -0
  135. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/normalizeString.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/outliersIQRQuery.d.ts.map +1 -0
  137. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/padQuery.d.ts.map +1 -0
  138. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/proportionsHorizontalQuery.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/proportionsVerticalQuery.d.ts.map +1 -0
  140. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/quantilesQuery.d.ts.map +1 -0
  141. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/randomPointQuery.d.ts +2 -0
  142. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/randomPointQuery.d.ts.map +1 -0
  143. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/randomPointQuery.js +66 -0
  144. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/ranksQuery.d.ts.map +1 -0
  145. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeDuplicatesQuery.d.ts.map +1 -0
  146. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeMissing.d.ts.map +1 -0
  147. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeMissingQuery.d.ts.map +1 -0
  148. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeQuery.d.ts.map +1 -0
  149. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/renameColumnQuery.d.ts.map +1 -0
  150. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/replaceNullsQuery.d.ts.map +1 -0
  151. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/replaceQuery.d.ts.map +1 -0
  152. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/rollingQuery.d.ts.map +1 -0
  153. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/roundQuery.d.ts.map +1 -0
  154. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/selectRowsQuery.d.ts.map +1 -0
  155. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/sortQuery.d.ts.map +1 -0
  156. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/splitSpread.d.ts.map +1 -0
  157. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/summarize.d.ts.map +1 -0
  158. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/summarizeQuery.d.ts.map +1 -0
  159. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/summarizeQuery.js +112 -0
  160. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/trimQuery.d.ts.map +1 -0
  161. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/truncateQuery.d.ts.map +1 -0
  162. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/upperQuery.d.ts.map +1 -0
  163. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/writeDataQuery.d.ts.map +1 -0
  164. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/writeGeoDataQuery.d.ts.map +1 -0
  165. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/writeGeoDataQuery.js +19 -0
  166. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/zScoreQuery.d.ts.map +1 -0
  167. package/esm/methods/aiRowByRow.js +1 -1
  168. package/esm/methods/aiVectorSimilarity.d.ts.map +1 -1
  169. package/esm/methods/aiVectorSimilarity.js +2 -2
  170. package/esm/methods/hybridSearch.d.ts.map +1 -1
  171. package/esm/methods/hybridSearch.js +2 -2
  172. package/package.json +2 -2
  173. package/script/class/SimpleDB.d.ts +1 -1
  174. package/script/class/SimpleDB.d.ts.map +1 -1
  175. package/script/class/SimpleDB.js +1 -1
  176. package/script/class/SimpleTable.d.ts +1 -1
  177. package/script/class/SimpleTable.d.ts.map +1 -1
  178. package/script/class/SimpleTable.js +3 -3
  179. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/Simple.d.ts.map +1 -0
  180. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleDB.d.ts +482 -0
  181. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleDB.d.ts.map +1 -0
  182. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleDB.js +811 -0
  183. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleTable.d.ts +4589 -0
  184. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleTable.d.ts.map +1 -0
  185. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/class/SimpleTable.js +5567 -0
  186. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/accumulateQuery.d.ts.map +1 -0
  187. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/camelCase.d.ts.map +1 -0
  188. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/capitalize.d.ts.map +1 -0
  189. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/checkVssIndexes.d.ts.map +1 -0
  190. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/cleanCache.d.ts.map +1 -0
  191. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/cleanPath.d.ts.map +1 -0
  192. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/cleanSQL.d.ts.map +1 -0
  193. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/concatenateRowQuery.d.ts.map +1 -0
  194. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/convertForJS.d.ts.map +1 -0
  195. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/convertForJS.js +42 -0
  196. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/createDirectory.d.ts.map +1 -0
  197. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/csvFormat.d.ts.map +1 -0
  198. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/dataToArrays.d.ts.map +1 -0
  199. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/extractTypes.d.ts.map +1 -0
  200. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/findGeoColumn.d.ts.map +1 -0
  201. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/findGeoColumn.js +21 -0
  202. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/formatDate.d.ts.map +1 -0
  203. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/formatNumber.d.ts.map +1 -0
  204. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getCombinations.d.ts.map +1 -0
  205. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getExtension.d.ts.map +1 -0
  206. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getIdenticalColumns.d.ts.map +1 -0
  207. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/getName.d.ts.map +1 -0
  208. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/hasGeometryColumn.d.ts.map +1 -0
  209. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/hasGeometryColumn.js +24 -0
  210. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/index.d.ts.map +1 -0
  211. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/keepNumericalColumns.d.ts.map +1 -0
  212. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/logData.d.ts.map +1 -0
  213. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/logData.js +59 -0
  214. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/mergeOptions.d.ts.map +1 -0
  215. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/nestQuery.d.ts.map +1 -0
  216. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseDuckDBType.d.ts.map +1 -0
  217. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseTypes.d.ts +2 -0
  218. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseTypes.d.ts.map +1 -0
  219. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseTypes.js +40 -0
  220. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/parseValue.d.ts.map +1 -0
  221. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/prettyDuration.d.ts.map +1 -0
  222. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/printTable.d.ts.map +1 -0
  223. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/queryDB.d.ts.map +1 -0
  224. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/repeatRowsQuery.d.ts.map +1 -0
  225. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/rewind.d.ts.map +1 -0
  226. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/runQuery.d.ts.map +1 -0
  227. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/setDbProps.d.ts +3 -0
  228. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/setDbProps.d.ts.map +1 -0
  229. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/setDbProps.js +24 -0
  230. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/stringToArray.d.ts.map +1 -0
  231. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/stringifyDates.d.ts.map +1 -0
  232. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/stringifyDatesInvert.d.ts.map +1 -0
  233. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unifyColumns.d.ts +7 -0
  234. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unifyColumns.d.ts.map +1 -0
  235. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unifyColumns.js +20 -0
  236. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/unnestQuery.d.ts.map +1 -0
  237. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/wrapString.d.ts.map +1 -0
  238. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeDataAsArrays.d.ts.map +1 -0
  239. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeGeoData.d.ts.map +1 -0
  240. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeGeoData.js +86 -0
  241. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeIndexes.d.ts +3 -0
  242. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeIndexes.d.ts.map +1 -0
  243. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/helpers/writeIndexes.js +19 -0
  244. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/index.d.ts.map +1 -0
  245. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/aggregateGeoQuery.d.ts.map +1 -0
  246. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/binsQuery.d.ts.map +1 -0
  247. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/bm25.d.ts.map +1 -0
  248. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/bm25.js +54 -0
  249. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cache.d.ts.map +1 -0
  250. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cache.js +139 -0
  251. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/capitalizeQuery.d.ts.map +1 -0
  252. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cloneColumn.d.ts.map +1 -0
  253. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/cloneQuery.d.ts.map +1 -0
  254. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/concatenateQuery.d.ts.map +1 -0
  255. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/convertQuery.d.ts.map +1 -0
  256. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/correlations.d.ts.map +1 -0
  257. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/correlationsQuery.d.ts.map +1 -0
  258. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/createFtsIndex.d.ts.map +1 -0
  259. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/createVssIndex.d.ts.map +1 -0
  260. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/crossJoinQuery.d.ts.map +1 -0
  261. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/distanceQuery.d.ts.map +1 -0
  262. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/distanceQuery.js +47 -0
  263. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fill.d.ts.map +1 -0
  264. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyClean.d.ts.map +1 -0
  265. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyJoin.d.ts.map +1 -0
  266. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyJoin.js +58 -0
  267. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/fuzzyJoinQuery.d.ts.map +1 -0
  268. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getBottom.d.ts.map +1 -0
  269. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getColumns.d.ts.map +1 -0
  270. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getDescription.d.ts.map +1 -0
  271. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getFirstRow.d.ts.map +1 -0
  272. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getGeoData.d.ts.map +1 -0
  273. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getGeoData.js +38 -0
  274. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getLastRow.d.ts.map +1 -0
  275. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMax.d.ts.map +1 -0
  276. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMean.d.ts.map +1 -0
  277. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMedian.d.ts.map +1 -0
  278. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getMin.d.ts.map +1 -0
  279. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getNbCharacters.d.ts.map +1 -0
  280. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getNbRows.d.ts.map +1 -0
  281. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getQuantile.d.ts.map +1 -0
  282. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getSkew.d.ts.map +1 -0
  283. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getStdDev.d.ts.map +1 -0
  284. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getSum.d.ts.map +1 -0
  285. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getTableNames.d.ts.map +1 -0
  286. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getTop.d.ts.map +1 -0
  287. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getTypes.d.ts.map +1 -0
  288. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getUniques.d.ts.map +1 -0
  289. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getValues.d.ts.map +1 -0
  290. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/getVar.d.ts.map +1 -0
  291. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/insertRowsQuery.d.ts.map +1 -0
  292. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/join.d.ts.map +1 -0
  293. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/join.js +63 -0
  294. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeo.d.ts.map +1 -0
  295. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeo.js +69 -0
  296. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeoQuery.d.ts.map +1 -0
  297. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinGeoQuery.js +58 -0
  298. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/joinQuery.d.ts.map +1 -0
  299. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/keepQuery.d.ts.map +1 -0
  300. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/linearRegressionQuery.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/linearRegressions.d.ts.map +1 -0
  302. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/loadArray.d.ts.map +1 -0
  303. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/loadDataQuery.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/loadSample.d.ts.map +1 -0
  305. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/lowerQuery.d.ts.map +1 -0
  306. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/normalizeQuery.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/normalizeString.d.ts.map +1 -0
  308. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/outliersIQRQuery.d.ts.map +1 -0
  309. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/padQuery.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/proportionsHorizontalQuery.d.ts.map +1 -0
  311. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/proportionsVerticalQuery.d.ts.map +1 -0
  312. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/quantilesQuery.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/randomPointQuery.d.ts +2 -0
  314. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/randomPointQuery.d.ts.map +1 -0
  315. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/randomPointQuery.js +69 -0
  316. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/ranksQuery.d.ts.map +1 -0
  317. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeDuplicatesQuery.d.ts.map +1 -0
  318. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeMissing.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeMissingQuery.d.ts.map +1 -0
  320. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/removeQuery.d.ts.map +1 -0
  321. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/renameColumnQuery.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/replaceNullsQuery.d.ts.map +1 -0
  323. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/replaceQuery.d.ts.map +1 -0
  324. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/rollingQuery.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/roundQuery.d.ts.map +1 -0
  326. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/selectRowsQuery.d.ts.map +1 -0
  327. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/sortQuery.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/splitSpread.d.ts.map +1 -0
  329. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/summarize.d.ts.map +1 -0
  330. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/summarizeQuery.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/summarizeQuery.js +115 -0
  332. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/trimQuery.d.ts.map +1 -0
  333. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/truncateQuery.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/upperQuery.d.ts.map +1 -0
  335. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/writeDataQuery.d.ts.map +1 -0
  336. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/writeGeoDataQuery.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/writeGeoDataQuery.js +25 -0
  338. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.1.1/src/methods/zScoreQuery.d.ts.map +1 -0
  339. package/script/methods/aiRowByRow.js +1 -1
  340. package/script/methods/aiVectorSimilarity.d.ts.map +1 -1
  341. package/script/methods/aiVectorSimilarity.js +2 -2
  342. package/script/methods/hybridSearch.d.ts.map +1 -1
  343. package/script/methods/hybridSearch.js +2 -2
  344. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/Simple.d.ts.map +0 -1
  345. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleDB.d.ts +0 -487
  346. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleDB.d.ts.map +0 -1
  347. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleDB.js +0 -807
  348. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleTable.d.ts +0 -4608
  349. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleTable.d.ts.map +0 -1
  350. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleTable.js +0 -5601
  351. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/accumulateQuery.d.ts.map +0 -1
  352. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/camelCase.d.ts.map +0 -1
  353. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/capitalize.d.ts.map +0 -1
  354. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/checkVssIndexes.d.ts.map +0 -1
  355. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/cleanCache.d.ts.map +0 -1
  356. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/cleanPath.d.ts.map +0 -1
  357. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/cleanSQL.d.ts.map +0 -1
  358. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/concatenateRowQuery.d.ts.map +0 -1
  359. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/convertForJS.d.ts.map +0 -1
  360. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/convertForJS.js +0 -39
  361. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/createDirectory.d.ts.map +0 -1
  362. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/csvFormat.d.ts.map +0 -1
  363. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/dataToArrays.d.ts.map +0 -1
  364. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/extractTypes.d.ts.map +0 -1
  365. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/findGeoColumn.d.ts.map +0 -1
  366. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/findGeoColumn.js +0 -18
  367. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/formatDate.d.ts.map +0 -1
  368. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/formatNumber.d.ts.map +0 -1
  369. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getCombinations.d.ts.map +0 -1
  370. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getExtension.d.ts.map +0 -1
  371. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getIdenticalColumns.d.ts.map +0 -1
  372. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getName.d.ts.map +0 -1
  373. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjection.d.ts +0 -3
  374. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjection.d.ts.map +0 -1
  375. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjection.js +0 -25
  376. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjectionParquet.d.ts +0 -3
  377. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjectionParquet.d.ts.map +0 -1
  378. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjectionParquet.js +0 -24
  379. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/hasGeometryColumn.d.ts.map +0 -1
  380. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/hasGeometryColumn.js +0 -21
  381. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/index.d.ts.map +0 -1
  382. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/keepNumericalColumns.d.ts.map +0 -1
  383. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/logData.d.ts.map +0 -1
  384. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/logData.js +0 -48
  385. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/mergeOptions.d.ts.map +0 -1
  386. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/nestQuery.d.ts.map +0 -1
  387. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseDuckDBType.d.ts.map +0 -1
  388. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseTypes.d.ts +0 -2
  389. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseTypes.d.ts.map +0 -1
  390. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseTypes.js +0 -35
  391. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseValue.d.ts.map +0 -1
  392. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/prettyDuration.d.ts.map +0 -1
  393. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/printTable.d.ts.map +0 -1
  394. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/queryDB.d.ts.map +0 -1
  395. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/repeatRowsQuery.d.ts.map +0 -1
  396. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/rewind.d.ts.map +0 -1
  397. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/runQuery.d.ts.map +0 -1
  398. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/setDbProps.d.ts +0 -3
  399. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/setDbProps.d.ts.map +0 -1
  400. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/setDbProps.js +0 -25
  401. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/shouldFlipBeforeExport.d.ts +0 -2
  402. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/shouldFlipBeforeExport.d.ts.map +0 -1
  403. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/shouldFlipBeforeExport.js +0 -3
  404. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/stringToArray.d.ts.map +0 -1
  405. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/stringifyDates.d.ts.map +0 -1
  406. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/stringifyDatesInvert.d.ts.map +0 -1
  407. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unifyColumns.d.ts +0 -9
  408. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unifyColumns.d.ts.map +0 -1
  409. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unifyColumns.js +0 -21
  410. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unnestQuery.d.ts.map +0 -1
  411. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/wrapString.d.ts.map +0 -1
  412. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeDataAsArrays.d.ts.map +0 -1
  413. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeGeoData.d.ts.map +0 -1
  414. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeGeoData.js +0 -110
  415. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeProjectionsAndIndexes.d.ts +0 -3
  416. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeProjectionsAndIndexes.d.ts.map +0 -1
  417. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeProjectionsAndIndexes.js +0 -29
  418. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/index.d.ts.map +0 -1
  419. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/aggregateGeoQuery.d.ts.map +0 -1
  420. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/binsQuery.d.ts.map +0 -1
  421. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/bm25.d.ts.map +0 -1
  422. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/bm25.js +0 -48
  423. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cache.d.ts.map +0 -1
  424. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cache.js +0 -133
  425. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/capitalizeQuery.d.ts.map +0 -1
  426. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cloneColumn.d.ts.map +0 -1
  427. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cloneQuery.d.ts.map +0 -1
  428. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/concatenateQuery.d.ts.map +0 -1
  429. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/convertQuery.d.ts.map +0 -1
  430. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/correlations.d.ts.map +0 -1
  431. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/correlationsQuery.d.ts.map +0 -1
  432. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/createFtsIndex.d.ts.map +0 -1
  433. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/createVssIndex.d.ts.map +0 -1
  434. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/crossJoinQuery.d.ts.map +0 -1
  435. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/distanceQuery.d.ts.map +0 -1
  436. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/distanceQuery.js +0 -42
  437. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fill.d.ts.map +0 -1
  438. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyClean.d.ts.map +0 -1
  439. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyJoin.d.ts.map +0 -1
  440. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyJoin.js +0 -57
  441. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyJoinQuery.d.ts.map +0 -1
  442. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getBottom.d.ts.map +0 -1
  443. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getColumns.d.ts.map +0 -1
  444. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getDescription.d.ts.map +0 -1
  445. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getFirstRow.d.ts.map +0 -1
  446. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getGeoData.d.ts.map +0 -1
  447. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getGeoData.js +0 -41
  448. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getLastRow.d.ts.map +0 -1
  449. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMax.d.ts.map +0 -1
  450. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMean.d.ts.map +0 -1
  451. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMedian.d.ts.map +0 -1
  452. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMin.d.ts.map +0 -1
  453. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getNbCharacters.d.ts.map +0 -1
  454. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getNbRows.d.ts.map +0 -1
  455. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getQuantile.d.ts.map +0 -1
  456. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getSkew.d.ts.map +0 -1
  457. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getStdDev.d.ts.map +0 -1
  458. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getSum.d.ts.map +0 -1
  459. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getTableNames.d.ts.map +0 -1
  460. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getTop.d.ts.map +0 -1
  461. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getTypes.d.ts.map +0 -1
  462. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getUniques.d.ts.map +0 -1
  463. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getValues.d.ts.map +0 -1
  464. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getVar.d.ts.map +0 -1
  465. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/insertRowsQuery.d.ts.map +0 -1
  466. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/join.d.ts.map +0 -1
  467. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/join.js +0 -63
  468. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeo.d.ts.map +0 -1
  469. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeo.js +0 -76
  470. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeoQuery.d.ts.map +0 -1
  471. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeoQuery.js +0 -55
  472. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinQuery.d.ts.map +0 -1
  473. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/keepQuery.d.ts.map +0 -1
  474. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/linearRegressionQuery.d.ts.map +0 -1
  475. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/linearRegressions.d.ts.map +0 -1
  476. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/loadArray.d.ts.map +0 -1
  477. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/loadDataQuery.d.ts.map +0 -1
  478. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/loadSample.d.ts.map +0 -1
  479. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/lowerQuery.d.ts.map +0 -1
  480. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/normalizeQuery.d.ts.map +0 -1
  481. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/normalizeString.d.ts.map +0 -1
  482. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/outliersIQRQuery.d.ts.map +0 -1
  483. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/padQuery.d.ts.map +0 -1
  484. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/proportionsHorizontalQuery.d.ts.map +0 -1
  485. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/proportionsVerticalQuery.d.ts.map +0 -1
  486. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/quantilesQuery.d.ts.map +0 -1
  487. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/randomPointQuery.d.ts +0 -2
  488. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/randomPointQuery.d.ts.map +0 -1
  489. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/randomPointQuery.js +0 -66
  490. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/ranksQuery.d.ts.map +0 -1
  491. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeDuplicatesQuery.d.ts.map +0 -1
  492. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeMissing.d.ts.map +0 -1
  493. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeMissingQuery.d.ts.map +0 -1
  494. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeQuery.d.ts.map +0 -1
  495. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/renameColumnQuery.d.ts.map +0 -1
  496. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/replaceNullsQuery.d.ts.map +0 -1
  497. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/replaceQuery.d.ts.map +0 -1
  498. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/rollingQuery.d.ts.map +0 -1
  499. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/roundQuery.d.ts.map +0 -1
  500. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/selectRowsQuery.d.ts.map +0 -1
  501. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/sortQuery.d.ts.map +0 -1
  502. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/splitSpread.d.ts.map +0 -1
  503. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/summarize.d.ts.map +0 -1
  504. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/summarizeQuery.d.ts.map +0 -1
  505. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/summarizeQuery.js +0 -112
  506. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/trimQuery.d.ts.map +0 -1
  507. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/truncateQuery.d.ts.map +0 -1
  508. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/upperQuery.d.ts.map +0 -1
  509. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/writeDataQuery.d.ts.map +0 -1
  510. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/writeGeoDataQuery.d.ts.map +0 -1
  511. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/writeGeoDataQuery.js +0 -19
  512. package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/zScoreQuery.d.ts.map +0 -1
  513. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/Simple.d.ts.map +0 -1
  514. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleDB.d.ts +0 -487
  515. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleDB.d.ts.map +0 -1
  516. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleDB.js +0 -813
  517. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleTable.d.ts +0 -4608
  518. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleTable.d.ts.map +0 -1
  519. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/class/SimpleTable.js +0 -5607
  520. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/accumulateQuery.d.ts.map +0 -1
  521. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/camelCase.d.ts.map +0 -1
  522. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/capitalize.d.ts.map +0 -1
  523. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/checkVssIndexes.d.ts.map +0 -1
  524. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/cleanCache.d.ts.map +0 -1
  525. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/cleanPath.d.ts.map +0 -1
  526. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/cleanSQL.d.ts.map +0 -1
  527. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/concatenateRowQuery.d.ts.map +0 -1
  528. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/convertForJS.d.ts.map +0 -1
  529. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/convertForJS.js +0 -42
  530. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/createDirectory.d.ts.map +0 -1
  531. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/csvFormat.d.ts.map +0 -1
  532. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/dataToArrays.d.ts.map +0 -1
  533. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/extractTypes.d.ts.map +0 -1
  534. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/findGeoColumn.d.ts.map +0 -1
  535. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/findGeoColumn.js +0 -21
  536. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/formatDate.d.ts.map +0 -1
  537. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/formatNumber.d.ts.map +0 -1
  538. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getCombinations.d.ts.map +0 -1
  539. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getExtension.d.ts.map +0 -1
  540. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getIdenticalColumns.d.ts.map +0 -1
  541. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getName.d.ts.map +0 -1
  542. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjection.d.ts +0 -3
  543. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjection.d.ts.map +0 -1
  544. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjection.js +0 -31
  545. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjectionParquet.d.ts +0 -3
  546. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjectionParquet.d.ts.map +0 -1
  547. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/getProjectionParquet.js +0 -30
  548. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/hasGeometryColumn.d.ts.map +0 -1
  549. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/hasGeometryColumn.js +0 -24
  550. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/index.d.ts.map +0 -1
  551. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/keepNumericalColumns.d.ts.map +0 -1
  552. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/logData.d.ts.map +0 -1
  553. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/logData.js +0 -54
  554. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/mergeOptions.d.ts.map +0 -1
  555. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/nestQuery.d.ts.map +0 -1
  556. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseDuckDBType.d.ts.map +0 -1
  557. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseTypes.d.ts +0 -2
  558. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseTypes.d.ts.map +0 -1
  559. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseTypes.js +0 -38
  560. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/parseValue.d.ts.map +0 -1
  561. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/prettyDuration.d.ts.map +0 -1
  562. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/printTable.d.ts.map +0 -1
  563. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/queryDB.d.ts.map +0 -1
  564. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/repeatRowsQuery.d.ts.map +0 -1
  565. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/rewind.d.ts.map +0 -1
  566. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/runQuery.d.ts.map +0 -1
  567. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/setDbProps.d.ts +0 -3
  568. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/setDbProps.d.ts.map +0 -1
  569. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/setDbProps.js +0 -28
  570. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/shouldFlipBeforeExport.d.ts +0 -2
  571. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/shouldFlipBeforeExport.d.ts.map +0 -1
  572. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/shouldFlipBeforeExport.js +0 -6
  573. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/stringToArray.d.ts.map +0 -1
  574. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/stringifyDates.d.ts.map +0 -1
  575. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/stringifyDatesInvert.d.ts.map +0 -1
  576. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unifyColumns.d.ts +0 -9
  577. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unifyColumns.d.ts.map +0 -1
  578. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unifyColumns.js +0 -24
  579. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/unnestQuery.d.ts.map +0 -1
  580. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/wrapString.d.ts.map +0 -1
  581. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeDataAsArrays.d.ts.map +0 -1
  582. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeGeoData.d.ts.map +0 -1
  583. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeGeoData.js +0 -116
  584. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeProjectionsAndIndexes.d.ts +0 -3
  585. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeProjectionsAndIndexes.d.ts.map +0 -1
  586. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/helpers/writeProjectionsAndIndexes.js +0 -32
  587. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/index.d.ts.map +0 -1
  588. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/aggregateGeoQuery.d.ts.map +0 -1
  589. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/binsQuery.d.ts.map +0 -1
  590. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/bm25.d.ts.map +0 -1
  591. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/bm25.js +0 -54
  592. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cache.d.ts.map +0 -1
  593. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cache.js +0 -139
  594. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/capitalizeQuery.d.ts.map +0 -1
  595. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cloneColumn.d.ts.map +0 -1
  596. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/cloneQuery.d.ts.map +0 -1
  597. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/concatenateQuery.d.ts.map +0 -1
  598. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/convertQuery.d.ts.map +0 -1
  599. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/correlations.d.ts.map +0 -1
  600. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/correlationsQuery.d.ts.map +0 -1
  601. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/createFtsIndex.d.ts.map +0 -1
  602. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/createVssIndex.d.ts.map +0 -1
  603. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/crossJoinQuery.d.ts.map +0 -1
  604. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/distanceQuery.d.ts.map +0 -1
  605. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/distanceQuery.js +0 -45
  606. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fill.d.ts.map +0 -1
  607. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyClean.d.ts.map +0 -1
  608. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyJoin.d.ts.map +0 -1
  609. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyJoin.js +0 -63
  610. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/fuzzyJoinQuery.d.ts.map +0 -1
  611. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getBottom.d.ts.map +0 -1
  612. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getColumns.d.ts.map +0 -1
  613. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getDescription.d.ts.map +0 -1
  614. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getFirstRow.d.ts.map +0 -1
  615. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getGeoData.d.ts.map +0 -1
  616. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getGeoData.js +0 -47
  617. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getLastRow.d.ts.map +0 -1
  618. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMax.d.ts.map +0 -1
  619. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMean.d.ts.map +0 -1
  620. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMedian.d.ts.map +0 -1
  621. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getMin.d.ts.map +0 -1
  622. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getNbCharacters.d.ts.map +0 -1
  623. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getNbRows.d.ts.map +0 -1
  624. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getQuantile.d.ts.map +0 -1
  625. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getSkew.d.ts.map +0 -1
  626. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getStdDev.d.ts.map +0 -1
  627. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getSum.d.ts.map +0 -1
  628. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getTableNames.d.ts.map +0 -1
  629. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getTop.d.ts.map +0 -1
  630. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getTypes.d.ts.map +0 -1
  631. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getUniques.d.ts.map +0 -1
  632. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getValues.d.ts.map +0 -1
  633. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/getVar.d.ts.map +0 -1
  634. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/insertRowsQuery.d.ts.map +0 -1
  635. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/join.d.ts.map +0 -1
  636. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/join.js +0 -69
  637. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeo.d.ts.map +0 -1
  638. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeo.js +0 -82
  639. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeoQuery.d.ts.map +0 -1
  640. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinGeoQuery.js +0 -58
  641. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/joinQuery.d.ts.map +0 -1
  642. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/keepQuery.d.ts.map +0 -1
  643. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/linearRegressionQuery.d.ts.map +0 -1
  644. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/linearRegressions.d.ts.map +0 -1
  645. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/loadArray.d.ts.map +0 -1
  646. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/loadDataQuery.d.ts.map +0 -1
  647. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/loadSample.d.ts.map +0 -1
  648. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/lowerQuery.d.ts.map +0 -1
  649. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/normalizeQuery.d.ts.map +0 -1
  650. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/normalizeString.d.ts.map +0 -1
  651. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/outliersIQRQuery.d.ts.map +0 -1
  652. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/padQuery.d.ts.map +0 -1
  653. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/proportionsHorizontalQuery.d.ts.map +0 -1
  654. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/proportionsVerticalQuery.d.ts.map +0 -1
  655. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/quantilesQuery.d.ts.map +0 -1
  656. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/randomPointQuery.d.ts +0 -2
  657. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/randomPointQuery.d.ts.map +0 -1
  658. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/randomPointQuery.js +0 -69
  659. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/ranksQuery.d.ts.map +0 -1
  660. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeDuplicatesQuery.d.ts.map +0 -1
  661. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeMissing.d.ts.map +0 -1
  662. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeMissingQuery.d.ts.map +0 -1
  663. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/removeQuery.d.ts.map +0 -1
  664. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/renameColumnQuery.d.ts.map +0 -1
  665. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/replaceNullsQuery.d.ts.map +0 -1
  666. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/replaceQuery.d.ts.map +0 -1
  667. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/rollingQuery.d.ts.map +0 -1
  668. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/roundQuery.d.ts.map +0 -1
  669. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/selectRowsQuery.d.ts.map +0 -1
  670. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/sortQuery.d.ts.map +0 -1
  671. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/splitSpread.d.ts.map +0 -1
  672. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/summarize.d.ts.map +0 -1
  673. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/summarizeQuery.d.ts.map +0 -1
  674. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/summarizeQuery.js +0 -115
  675. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/trimQuery.d.ts.map +0 -1
  676. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/truncateQuery.d.ts.map +0 -1
  677. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/upperQuery.d.ts.map +0 -1
  678. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/writeDataQuery.d.ts.map +0 -1
  679. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/writeGeoDataQuery.d.ts.map +0 -1
  680. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/writeGeoDataQuery.js +0 -25
  681. package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.27/src/methods/zScoreQuery.d.ts.map +0 -1
  682. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/class/Simple.d.ts +0 -0
  683. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/class/Simple.js +0 -0
  684. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/accumulateQuery.d.ts +0 -0
  685. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/accumulateQuery.js +0 -0
  686. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/camelCase.d.ts +0 -0
  687. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/camelCase.js +0 -0
  688. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/capitalize.d.ts +0 -0
  689. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/capitalize.js +0 -0
  690. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/checkVssIndexes.d.ts +0 -0
  691. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/checkVssIndexes.js +0 -0
  692. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanCache.d.ts +0 -0
  693. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanCache.js +0 -0
  694. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanPath.d.ts +0 -0
  695. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanPath.js +0 -0
  696. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanSQL.d.ts +0 -0
  697. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanSQL.js +0 -0
  698. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/concatenateRowQuery.d.ts +0 -0
  699. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/concatenateRowQuery.js +0 -0
  700. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/convertForJS.d.ts +0 -0
  701. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/createDirectory.d.ts +0 -0
  702. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/createDirectory.js +0 -0
  703. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/csvFormat.d.ts +0 -0
  704. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/csvFormat.js +0 -0
  705. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/dataToArrays.d.ts +0 -0
  706. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/dataToArrays.js +0 -0
  707. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/extractTypes.d.ts +0 -0
  708. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/extractTypes.js +0 -0
  709. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/findGeoColumn.d.ts +0 -0
  710. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatDate.d.ts +0 -0
  711. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatDate.js +0 -0
  712. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatNumber.d.ts +0 -0
  713. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatNumber.js +0 -0
  714. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getCombinations.d.ts +0 -0
  715. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getCombinations.js +0 -0
  716. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getExtension.d.ts +0 -0
  717. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getExtension.js +0 -0
  718. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getIdenticalColumns.d.ts +0 -0
  719. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getIdenticalColumns.js +0 -0
  720. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getName.d.ts +0 -0
  721. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getName.js +0 -0
  722. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/hasGeometryColumn.d.ts +0 -0
  723. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/index.d.ts +0 -0
  724. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/index.js +0 -0
  725. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/keepNumericalColumns.d.ts +0 -0
  726. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/keepNumericalColumns.js +0 -0
  727. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/logData.d.ts +0 -0
  728. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/mergeOptions.d.ts +0 -0
  729. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/mergeOptions.js +0 -0
  730. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/nestQuery.d.ts +0 -0
  731. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/nestQuery.js +0 -0
  732. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseDuckDBType.d.ts +0 -0
  733. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseDuckDBType.js +0 -0
  734. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseValue.d.ts +0 -0
  735. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseValue.js +0 -0
  736. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/prettyDuration.d.ts +0 -0
  737. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/prettyDuration.js +0 -0
  738. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/printTable.d.ts +0 -0
  739. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/printTable.js +0 -0
  740. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/queryDB.d.ts +0 -0
  741. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/queryDB.js +0 -0
  742. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/repeatRowsQuery.d.ts +0 -0
  743. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/repeatRowsQuery.js +0 -0
  744. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/rewind.d.ts +0 -0
  745. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/rewind.js +0 -0
  746. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/runQuery.d.ts +0 -0
  747. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/runQuery.js +0 -0
  748. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringToArray.d.ts +0 -0
  749. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringToArray.js +0 -0
  750. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDates.d.ts +0 -0
  751. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDates.js +0 -0
  752. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDatesInvert.d.ts +0 -0
  753. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDatesInvert.js +0 -0
  754. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/unnestQuery.d.ts +0 -0
  755. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/unnestQuery.js +0 -0
  756. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/wrapString.d.ts +0 -0
  757. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/wrapString.js +0 -0
  758. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/writeDataAsArrays.d.ts +0 -0
  759. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/writeDataAsArrays.js +0 -0
  760. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/writeGeoData.d.ts +0 -0
  761. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/index.d.ts +0 -0
  762. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/index.js +0 -0
  763. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/aggregateGeoQuery.d.ts +0 -0
  764. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/aggregateGeoQuery.js +0 -0
  765. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/binsQuery.d.ts +0 -0
  766. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/binsQuery.js +0 -0
  767. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/bm25.d.ts +0 -0
  768. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cache.d.ts +0 -0
  769. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/capitalizeQuery.d.ts +0 -0
  770. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/capitalizeQuery.js +0 -0
  771. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneColumn.d.ts +0 -0
  772. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneColumn.js +0 -0
  773. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneQuery.d.ts +0 -0
  774. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneQuery.js +0 -0
  775. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/concatenateQuery.d.ts +0 -0
  776. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/concatenateQuery.js +0 -0
  777. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/convertQuery.d.ts +0 -0
  778. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/convertQuery.js +0 -0
  779. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlations.d.ts +0 -0
  780. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlations.js +0 -0
  781. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlationsQuery.d.ts +0 -0
  782. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlationsQuery.js +0 -0
  783. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createFtsIndex.d.ts +0 -0
  784. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createFtsIndex.js +0 -0
  785. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createVssIndex.d.ts +0 -0
  786. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createVssIndex.js +0 -0
  787. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/crossJoinQuery.d.ts +0 -0
  788. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/crossJoinQuery.js +0 -0
  789. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/distanceQuery.d.ts +0 -0
  790. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fill.d.ts +0 -0
  791. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fill.js +0 -0
  792. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyClean.d.ts +0 -0
  793. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyClean.js +0 -0
  794. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyJoin.d.ts +0 -0
  795. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyJoinQuery.d.ts +0 -0
  796. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyJoinQuery.js +0 -0
  797. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getBottom.d.ts +0 -0
  798. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getBottom.js +0 -0
  799. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getColumns.d.ts +0 -0
  800. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getColumns.js +0 -0
  801. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getDescription.d.ts +0 -0
  802. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getDescription.js +0 -0
  803. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getFirstRow.d.ts +0 -0
  804. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getFirstRow.js +0 -0
  805. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getGeoData.d.ts +0 -0
  806. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getLastRow.d.ts +0 -0
  807. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getLastRow.js +0 -0
  808. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMax.d.ts +0 -0
  809. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMax.js +0 -0
  810. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMean.d.ts +0 -0
  811. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMean.js +0 -0
  812. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMedian.d.ts +0 -0
  813. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMedian.js +0 -0
  814. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMin.d.ts +0 -0
  815. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMin.js +0 -0
  816. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbCharacters.d.ts +0 -0
  817. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbCharacters.js +0 -0
  818. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbRows.d.ts +0 -0
  819. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbRows.js +0 -0
  820. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getQuantile.d.ts +0 -0
  821. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getQuantile.js +0 -0
  822. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSkew.d.ts +0 -0
  823. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSkew.js +0 -0
  824. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getStdDev.d.ts +0 -0
  825. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getStdDev.js +0 -0
  826. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSum.d.ts +0 -0
  827. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSum.js +0 -0
  828. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTableNames.d.ts +0 -0
  829. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTableNames.js +0 -0
  830. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTop.d.ts +0 -0
  831. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTop.js +0 -0
  832. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTypes.d.ts +0 -0
  833. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTypes.js +0 -0
  834. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getUniques.d.ts +0 -0
  835. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getUniques.js +0 -0
  836. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getValues.d.ts +0 -0
  837. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getValues.js +0 -0
  838. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getVar.d.ts +0 -0
  839. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getVar.js +0 -0
  840. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/insertRowsQuery.d.ts +0 -0
  841. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/insertRowsQuery.js +0 -0
  842. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/join.d.ts +0 -0
  843. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinGeo.d.ts +0 -0
  844. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinGeoQuery.d.ts +0 -0
  845. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinQuery.d.ts +0 -0
  846. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinQuery.js +0 -0
  847. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/keepQuery.d.ts +0 -0
  848. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/keepQuery.js +0 -0
  849. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressionQuery.d.ts +0 -0
  850. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressionQuery.js +0 -0
  851. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressions.d.ts +0 -0
  852. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressions.js +0 -0
  853. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadArray.d.ts +0 -0
  854. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadArray.js +0 -0
  855. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadDataQuery.d.ts +0 -0
  856. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadDataQuery.js +0 -0
  857. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadSample.d.ts +0 -0
  858. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadSample.js +0 -0
  859. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/lowerQuery.d.ts +0 -0
  860. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/lowerQuery.js +0 -0
  861. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeQuery.d.ts +0 -0
  862. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeQuery.js +0 -0
  863. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeString.d.ts +0 -0
  864. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeString.js +0 -0
  865. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/outliersIQRQuery.d.ts +0 -0
  866. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/outliersIQRQuery.js +0 -0
  867. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/padQuery.d.ts +0 -0
  868. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/padQuery.js +0 -0
  869. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsHorizontalQuery.d.ts +0 -0
  870. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsHorizontalQuery.js +0 -0
  871. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsVerticalQuery.d.ts +0 -0
  872. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsVerticalQuery.js +0 -0
  873. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/quantilesQuery.d.ts +0 -0
  874. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/quantilesQuery.js +0 -0
  875. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/ranksQuery.d.ts +0 -0
  876. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/ranksQuery.js +0 -0
  877. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeDuplicatesQuery.d.ts +0 -0
  878. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeDuplicatesQuery.js +0 -0
  879. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissing.d.ts +0 -0
  880. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissing.js +0 -0
  881. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissingQuery.d.ts +0 -0
  882. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissingQuery.js +0 -0
  883. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeQuery.d.ts +0 -0
  884. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeQuery.js +0 -0
  885. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/renameColumnQuery.d.ts +0 -0
  886. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/renameColumnQuery.js +0 -0
  887. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceNullsQuery.d.ts +0 -0
  888. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceNullsQuery.js +0 -0
  889. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceQuery.d.ts +0 -0
  890. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceQuery.js +0 -0
  891. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/rollingQuery.d.ts +0 -0
  892. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/rollingQuery.js +0 -0
  893. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/roundQuery.d.ts +0 -0
  894. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/roundQuery.js +0 -0
  895. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/selectRowsQuery.d.ts +0 -0
  896. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/selectRowsQuery.js +0 -0
  897. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/sortQuery.d.ts +0 -0
  898. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/sortQuery.js +0 -0
  899. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/splitSpread.d.ts +0 -0
  900. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/splitSpread.js +0 -0
  901. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/summarize.d.ts +0 -0
  902. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/summarize.js +0 -0
  903. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/summarizeQuery.d.ts +0 -0
  904. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/trimQuery.d.ts +0 -0
  905. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/trimQuery.js +0 -0
  906. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/truncateQuery.d.ts +0 -0
  907. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/truncateQuery.js +0 -0
  908. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/upperQuery.d.ts +0 -0
  909. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/upperQuery.js +0 -0
  910. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/writeDataQuery.d.ts +0 -0
  911. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/writeDataQuery.js +0 -0
  912. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/writeGeoDataQuery.d.ts +0 -0
  913. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/zScoreQuery.d.ts +0 -0
  914. /package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/zScoreQuery.js +0 -0
  915. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/class/Simple.d.ts +0 -0
  916. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/class/Simple.js +0 -0
  917. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/accumulateQuery.d.ts +0 -0
  918. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/accumulateQuery.js +0 -0
  919. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/camelCase.d.ts +0 -0
  920. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/camelCase.js +0 -0
  921. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/capitalize.d.ts +0 -0
  922. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/capitalize.js +0 -0
  923. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/checkVssIndexes.d.ts +0 -0
  924. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/checkVssIndexes.js +0 -0
  925. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanCache.d.ts +0 -0
  926. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanCache.js +0 -0
  927. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanPath.d.ts +0 -0
  928. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanPath.js +0 -0
  929. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanSQL.d.ts +0 -0
  930. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/cleanSQL.js +0 -0
  931. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/concatenateRowQuery.d.ts +0 -0
  932. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/concatenateRowQuery.js +0 -0
  933. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/convertForJS.d.ts +0 -0
  934. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/createDirectory.d.ts +0 -0
  935. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/createDirectory.js +0 -0
  936. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/csvFormat.d.ts +0 -0
  937. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/csvFormat.js +0 -0
  938. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/dataToArrays.d.ts +0 -0
  939. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/dataToArrays.js +0 -0
  940. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/extractTypes.d.ts +0 -0
  941. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/extractTypes.js +0 -0
  942. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/findGeoColumn.d.ts +0 -0
  943. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatDate.d.ts +0 -0
  944. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatDate.js +0 -0
  945. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatNumber.d.ts +0 -0
  946. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/formatNumber.js +0 -0
  947. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getCombinations.d.ts +0 -0
  948. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getCombinations.js +0 -0
  949. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getExtension.d.ts +0 -0
  950. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getExtension.js +0 -0
  951. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getIdenticalColumns.d.ts +0 -0
  952. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getIdenticalColumns.js +0 -0
  953. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getName.d.ts +0 -0
  954. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/getName.js +0 -0
  955. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/hasGeometryColumn.d.ts +0 -0
  956. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/index.d.ts +0 -0
  957. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/index.js +0 -0
  958. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/keepNumericalColumns.d.ts +0 -0
  959. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/keepNumericalColumns.js +0 -0
  960. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/logData.d.ts +0 -0
  961. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/mergeOptions.d.ts +0 -0
  962. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/mergeOptions.js +0 -0
  963. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/nestQuery.d.ts +0 -0
  964. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/nestQuery.js +0 -0
  965. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseDuckDBType.d.ts +0 -0
  966. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseDuckDBType.js +0 -0
  967. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseValue.d.ts +0 -0
  968. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/parseValue.js +0 -0
  969. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/prettyDuration.d.ts +0 -0
  970. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/prettyDuration.js +0 -0
  971. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/printTable.d.ts +0 -0
  972. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/printTable.js +0 -0
  973. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/queryDB.d.ts +0 -0
  974. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/queryDB.js +0 -0
  975. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/repeatRowsQuery.d.ts +0 -0
  976. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/repeatRowsQuery.js +0 -0
  977. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/rewind.d.ts +0 -0
  978. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/rewind.js +0 -0
  979. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/runQuery.d.ts +0 -0
  980. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/runQuery.js +0 -0
  981. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringToArray.d.ts +0 -0
  982. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringToArray.js +0 -0
  983. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDates.d.ts +0 -0
  984. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDates.js +0 -0
  985. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDatesInvert.d.ts +0 -0
  986. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/stringifyDatesInvert.js +0 -0
  987. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/unnestQuery.d.ts +0 -0
  988. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/unnestQuery.js +0 -0
  989. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/wrapString.d.ts +0 -0
  990. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/wrapString.js +0 -0
  991. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/writeDataAsArrays.d.ts +0 -0
  992. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/writeDataAsArrays.js +0 -0
  993. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/helpers/writeGeoData.d.ts +0 -0
  994. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/index.d.ts +0 -0
  995. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/index.js +0 -0
  996. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/aggregateGeoQuery.d.ts +0 -0
  997. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/aggregateGeoQuery.js +0 -0
  998. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/binsQuery.d.ts +0 -0
  999. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/binsQuery.js +0 -0
  1000. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/bm25.d.ts +0 -0
  1001. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cache.d.ts +0 -0
  1002. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/capitalizeQuery.d.ts +0 -0
  1003. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/capitalizeQuery.js +0 -0
  1004. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneColumn.d.ts +0 -0
  1005. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneColumn.js +0 -0
  1006. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneQuery.d.ts +0 -0
  1007. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/cloneQuery.js +0 -0
  1008. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/concatenateQuery.d.ts +0 -0
  1009. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/concatenateQuery.js +0 -0
  1010. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/convertQuery.d.ts +0 -0
  1011. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/convertQuery.js +0 -0
  1012. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlations.d.ts +0 -0
  1013. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlations.js +0 -0
  1014. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlationsQuery.d.ts +0 -0
  1015. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/correlationsQuery.js +0 -0
  1016. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createFtsIndex.d.ts +0 -0
  1017. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createFtsIndex.js +0 -0
  1018. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createVssIndex.d.ts +0 -0
  1019. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/createVssIndex.js +0 -0
  1020. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/crossJoinQuery.d.ts +0 -0
  1021. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/crossJoinQuery.js +0 -0
  1022. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/distanceQuery.d.ts +0 -0
  1023. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fill.d.ts +0 -0
  1024. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fill.js +0 -0
  1025. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyClean.d.ts +0 -0
  1026. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyClean.js +0 -0
  1027. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyJoin.d.ts +0 -0
  1028. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyJoinQuery.d.ts +0 -0
  1029. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/fuzzyJoinQuery.js +0 -0
  1030. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getBottom.d.ts +0 -0
  1031. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getBottom.js +0 -0
  1032. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getColumns.d.ts +0 -0
  1033. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getColumns.js +0 -0
  1034. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getDescription.d.ts +0 -0
  1035. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getDescription.js +0 -0
  1036. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getFirstRow.d.ts +0 -0
  1037. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getFirstRow.js +0 -0
  1038. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getGeoData.d.ts +0 -0
  1039. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getLastRow.d.ts +0 -0
  1040. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getLastRow.js +0 -0
  1041. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMax.d.ts +0 -0
  1042. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMax.js +0 -0
  1043. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMean.d.ts +0 -0
  1044. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMean.js +0 -0
  1045. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMedian.d.ts +0 -0
  1046. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMedian.js +0 -0
  1047. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMin.d.ts +0 -0
  1048. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getMin.js +0 -0
  1049. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbCharacters.d.ts +0 -0
  1050. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbCharacters.js +0 -0
  1051. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbRows.d.ts +0 -0
  1052. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getNbRows.js +0 -0
  1053. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getQuantile.d.ts +0 -0
  1054. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getQuantile.js +0 -0
  1055. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSkew.d.ts +0 -0
  1056. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSkew.js +0 -0
  1057. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getStdDev.d.ts +0 -0
  1058. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getStdDev.js +0 -0
  1059. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSum.d.ts +0 -0
  1060. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getSum.js +0 -0
  1061. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTableNames.d.ts +0 -0
  1062. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTableNames.js +0 -0
  1063. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTop.d.ts +0 -0
  1064. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTop.js +0 -0
  1065. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTypes.d.ts +0 -0
  1066. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getTypes.js +0 -0
  1067. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getUniques.d.ts +0 -0
  1068. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getUniques.js +0 -0
  1069. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getValues.d.ts +0 -0
  1070. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getValues.js +0 -0
  1071. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getVar.d.ts +0 -0
  1072. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/getVar.js +0 -0
  1073. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/insertRowsQuery.d.ts +0 -0
  1074. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/insertRowsQuery.js +0 -0
  1075. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/join.d.ts +0 -0
  1076. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinGeo.d.ts +0 -0
  1077. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinGeoQuery.d.ts +0 -0
  1078. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinQuery.d.ts +0 -0
  1079. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/joinQuery.js +0 -0
  1080. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/keepQuery.d.ts +0 -0
  1081. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/keepQuery.js +0 -0
  1082. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressionQuery.d.ts +0 -0
  1083. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressionQuery.js +0 -0
  1084. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressions.d.ts +0 -0
  1085. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/linearRegressions.js +0 -0
  1086. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadArray.d.ts +0 -0
  1087. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadArray.js +0 -0
  1088. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadDataQuery.d.ts +0 -0
  1089. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadDataQuery.js +0 -0
  1090. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadSample.d.ts +0 -0
  1091. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/loadSample.js +0 -0
  1092. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/lowerQuery.d.ts +0 -0
  1093. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/lowerQuery.js +0 -0
  1094. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeQuery.d.ts +0 -0
  1095. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeQuery.js +0 -0
  1096. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeString.d.ts +0 -0
  1097. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/normalizeString.js +0 -0
  1098. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/outliersIQRQuery.d.ts +0 -0
  1099. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/outliersIQRQuery.js +0 -0
  1100. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/padQuery.d.ts +0 -0
  1101. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/padQuery.js +0 -0
  1102. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsHorizontalQuery.d.ts +0 -0
  1103. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsHorizontalQuery.js +0 -0
  1104. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsVerticalQuery.d.ts +0 -0
  1105. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/proportionsVerticalQuery.js +0 -0
  1106. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/quantilesQuery.d.ts +0 -0
  1107. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/quantilesQuery.js +0 -0
  1108. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/ranksQuery.d.ts +0 -0
  1109. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/ranksQuery.js +0 -0
  1110. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeDuplicatesQuery.d.ts +0 -0
  1111. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeDuplicatesQuery.js +0 -0
  1112. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissing.d.ts +0 -0
  1113. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissing.js +0 -0
  1114. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissingQuery.d.ts +0 -0
  1115. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeMissingQuery.js +0 -0
  1116. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeQuery.d.ts +0 -0
  1117. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/removeQuery.js +0 -0
  1118. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/renameColumnQuery.d.ts +0 -0
  1119. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/renameColumnQuery.js +0 -0
  1120. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceNullsQuery.d.ts +0 -0
  1121. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceNullsQuery.js +0 -0
  1122. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceQuery.d.ts +0 -0
  1123. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/replaceQuery.js +0 -0
  1124. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/rollingQuery.d.ts +0 -0
  1125. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/rollingQuery.js +0 -0
  1126. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/roundQuery.d.ts +0 -0
  1127. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/roundQuery.js +0 -0
  1128. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/selectRowsQuery.d.ts +0 -0
  1129. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/selectRowsQuery.js +0 -0
  1130. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/sortQuery.d.ts +0 -0
  1131. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/sortQuery.js +0 -0
  1132. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/splitSpread.d.ts +0 -0
  1133. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/splitSpread.js +0 -0
  1134. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/summarize.d.ts +0 -0
  1135. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/summarize.js +0 -0
  1136. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/summarizeQuery.d.ts +0 -0
  1137. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/trimQuery.d.ts +0 -0
  1138. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/trimQuery.js +0 -0
  1139. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/truncateQuery.d.ts +0 -0
  1140. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/truncateQuery.js +0 -0
  1141. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/upperQuery.d.ts +0 -0
  1142. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/upperQuery.js +0 -0
  1143. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/writeDataQuery.d.ts +0 -0
  1144. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/writeDataQuery.js +0 -0
  1145. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/writeGeoDataQuery.d.ts +0 -0
  1146. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/zScoreQuery.d.ts +0 -0
  1147. /package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/{0.0.27 → 0.1.1}/src/methods/zScoreQuery.js +0 -0
@@ -0,0 +1,4589 @@
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 A promise that resolves when the rows have been inserted.
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<void>;
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.
650
+ * Note that cloning large tables can be a slow operation.
651
+ *
652
+ * @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.
653
+ * @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.
654
+ * @param nameOrOptions.conditions - A SQL `WHERE` clause condition to filter the data during cloning. Defaults to no condition (clones all rows).
655
+ * @param nameOrOptions.columns - An array of column names to include in the cloned table. If not provided, all columns will be included.
656
+ * @returns A promise that resolves to a new table instance containing the cloned data.
657
+ * @category Table Management
658
+ *
659
+ * @example
660
+ * ```ts
661
+ * // Clone tableA to a new table with a default generated name (e.g., "table1")
662
+ * const tableB = await tableA.cloneTable();
663
+ * ```
664
+ *
665
+ * @example
666
+ * ```ts
667
+ * // Clone tableA to a new table named "my_cloned_table" using string parameter
668
+ * const tableB = await tableA.cloneTable("my_cloned_table");
669
+ * ```
670
+ *
671
+ * @example
672
+ * ```ts
673
+ * // Clone tableA to a new table named "my_cloned_table" using options object
674
+ * const tableB = await tableA.cloneTable({ outputTable: "my_cloned_table" });
675
+ * ```
676
+ *
677
+ * @example
678
+ * ```ts
679
+ * // Clone tableA, including only rows where 'column1' is greater than 10
680
+ * const tableB = await tableA.cloneTable({ conditions: `column1 > 10` });
681
+ * ```
682
+ *
683
+ * @example
684
+ * ```ts
685
+ * // Clone tableA with only specific columns
686
+ * const tableB = await tableA.cloneTable({ columns: ["name", "age", "city"] });
687
+ * ```
688
+ *
689
+ * @example
690
+ * ```ts
691
+ * // Clone tableA to a specific table name with filtered data and specific columns
692
+ * const tableB = await tableA.cloneTable({
693
+ * outputTable: "filtered_data",
694
+ * conditions: `status = 'active' AND created_date >= '2023-01-01'`,
695
+ * columns: ["name", "status", "created_date"]
696
+ * });
697
+ * ```
698
+ */
699
+ cloneTable(nameOrOptions?: string | {
700
+ outputTable?: string;
701
+ conditions?: string;
702
+ columns?: string | string[];
703
+ }): Promise<this>;
704
+ /**
705
+ * Clones an existing column in this table, creating a new column with identical values.
706
+ *
707
+ * @param originalColumn - The name of the original column to clone.
708
+ * @param newColumn - The name of the new column to be created.
709
+ * @returns A promise that resolves when the column has been cloned.
710
+ * @category Column Operations
711
+ *
712
+ * @example
713
+ * ```ts
714
+ * // Clone 'firstName' column as 'contactName'
715
+ * await table.cloneColumn("firstName", "contactName");
716
+ * ```
717
+ */
718
+ cloneColumn(originalColumn: string, newColumn: string): Promise<void>;
719
+ /**
720
+ * Clones a column in the table and offsets its values by a specified number of rows.
721
+ * This is useful for time-series analysis or comparing values across different time points.
722
+ *
723
+ * **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.
724
+ *
725
+ * @param originalColumn - The name of the original column.
726
+ * @param newColumn - The name of the new column to be created with offset values.
727
+ * @param options - An optional object with configuration options:
728
+ * @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`.
729
+ * @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.
730
+ * @returns A promise that resolves when the column has been cloned with offset values.
731
+ * @category Column Operations
732
+ *
733
+ * @example
734
+ * ```ts
735
+ * // Clone 'value' as 'previous_value', offsetting by 1 row (value of row N-1 goes to row N)
736
+ * await table.cloneColumnWithOffset("value", "previous_value");
737
+ * ```
738
+ *
739
+ * @example
740
+ * ```ts
741
+ * // Clone 'sales' as 'sales_2_days_ago', offsetting by 2 rows
742
+ * await table.cloneColumnWithOffset("sales", "sales_2_days_ago", { offset: 2 });
743
+ * ```
744
+ *
745
+ * @example
746
+ * ```ts
747
+ * // Clone 'temperature' as 'prev_temp_by_city', offsetting by 1 row within each 'city' category
748
+ * await table.cloneColumnWithOffset("temperature", "prev_temp_by_city", {
749
+ * offset: 1,
750
+ * categories: "city",
751
+ * });
752
+ * ```
753
+ *
754
+ * @example
755
+ * ```ts
756
+ * // Clone 'stock_price' as 'prev_price_by_stock_and_exchange', offsetting by 1 row within each 'stock_symbol' and 'exchange' category
757
+ * await table.cloneColumnWithOffset("stock_price", "prev_price_by_stock_and_exchange", {
758
+ * offset: 1,
759
+ * categories: ["stock_symbol", "exchange"],
760
+ * });
761
+ * ```
762
+ */
763
+ cloneColumnWithOffset(originalColumn: string, newColumn: string, options?: {
764
+ offset?: number;
765
+ categories?: string | string[];
766
+ }): Promise<void>;
767
+ /**
768
+ * 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`.
769
+ *
770
+ * @param columns - The column(s) for which to fill `NULL` values.
771
+ * @param options - An optional object with configuration options:
772
+ * @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.
773
+ * @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.
774
+ * @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.
775
+ * @returns A promise that resolves when the `NULL` values have been filled.
776
+ * @category Updating Data
777
+ *
778
+ * @example
779
+ * ```ts
780
+ * // Fill NULL values in 'column1' with the previous non-NULL value
781
+ * await table.fill("column1");
782
+ * ```
783
+ *
784
+ * @example
785
+ * ```ts
786
+ * // Fill NULL values in multiple columns
787
+ * await table.fill(["columnA", "columnB"]);
788
+ * ```
789
+ *
790
+ * @example
791
+ * ```ts
792
+ * // Fill NULL values in 'value' independently within each 'group'
793
+ * await table.fill("value", { categories: "group" });
794
+ * ```
795
+ *
796
+ * @example
797
+ * ```ts
798
+ * // Fill NULL values in 'value' using linear interpolation
799
+ * await table.fill("value", { interpolate: true });
800
+ * ```
801
+ *
802
+ * @example
803
+ * ```ts
804
+ * // Fill NULL values in 'value' using linear interpolation, independently within each 'group'
805
+ * await table.fill("value", { categories: "group", interpolate: true });
806
+ * ```
807
+ *
808
+ * @example
809
+ * ```ts
810
+ * // Fill NULL values in 'value' using linear interpolation proportional to 'x' distances
811
+ * await table.fill("value", { interpolate: true, interpolateBy: "x" });
812
+ * ```
813
+ *
814
+ * @example
815
+ * ```ts
816
+ * // interpolateBy implies interpolate: true, so this is equivalent to the previous example
817
+ * await table.fill("value", { interpolateBy: "x" });
818
+ * ```
819
+ */
820
+ fill(columns: string | string[], options?: {
821
+ categories?: string | string[];
822
+ interpolate?: boolean;
823
+ interpolateBy?: string;
824
+ }): Promise<void>;
825
+ /**
826
+ * Sorts the rows of the table based on specified column(s) and order(s).
827
+ * If no columns are specified, all columns are sorted from left to right in ascending order.
828
+ *
829
+ * @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.
830
+ * @param options - An optional object with configuration options:
831
+ * @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.
832
+ * @returns A promise that resolves when the table has been sorted.
833
+ * @category Restructuring Data
834
+ *
835
+ * @example
836
+ * ```ts
837
+ * // Sort all columns from left to right in ascending order
838
+ * await table.sort();
839
+ * ```
840
+ *
841
+ * @example
842
+ * ```ts
843
+ * // Sort 'column1' in ascending order
844
+ * await table.sort({ column1: "asc" });
845
+ * ```
846
+ *
847
+ * @example
848
+ * ```ts
849
+ * // Sort 'column1' ascendingly, then 'column2' descendingly
850
+ * await table.sort({ column1: "asc", column2: "desc" });
851
+ * ```
852
+ *
853
+ * @example
854
+ * ```ts
855
+ * // Sort 'column1' considering French accents
856
+ * await table.sort({ column1: "asc" }, { lang: { column1: "fr" } });
857
+ * ```
858
+ */
859
+ sort(order?: {
860
+ [key: string]: "asc" | "desc";
861
+ } | null, options?: {
862
+ lang?: {
863
+ [key: string]: string;
864
+ };
865
+ }): Promise<void>;
866
+ /**
867
+ * Selects specific columns in the table, removing all others.
868
+ *
869
+ * @param columns - The name or an array of names of the columns to be selected.
870
+ * @returns A promise that resolves when the columns have been selected.
871
+ * @category Selecting or Filtering Data
872
+ *
873
+ * @example
874
+ * ```ts
875
+ * // Select only the 'firstName' and 'lastName' columns, removing all other columns.
876
+ * await table.selectColumns(["firstName", "lastName"]);
877
+ * ```
878
+ *
879
+ * @example
880
+ * ```ts
881
+ * // Select only the 'productName' column.
882
+ * await table.selectColumns("productName");
883
+ * ```
884
+ */
885
+ selectColumns(columns: string | string[]): Promise<void>;
886
+ /**
887
+ * Skips the first `n` rows of the table, effectively removing them.
888
+ *
889
+ * @param nbRowsToSkip - The number of rows to skip from the beginning of the table.
890
+ * @returns A promise that resolves when the rows have been skipped.
891
+ * @category Selecting or Filtering Data
892
+ *
893
+ * @example
894
+ * ```ts
895
+ * // Skip the first 10 rows of the table
896
+ * await table.skip(10);
897
+ * ```
898
+ */
899
+ skip(nbRowsToSkip: number): Promise<void>;
900
+ /**
901
+ * Checks if a column with the specified name exists in the table.
902
+ *
903
+ * @param column - The name of the column to check.
904
+ * @returns A promise that resolves to `true` if the column exists, `false` otherwise.
905
+ * @category Column Operations
906
+ *
907
+ * @example
908
+ * ```ts
909
+ * // Check if the table has a column named "age"
910
+ * const hasAgeColumn = await table.hasColumn("age");
911
+ * console.log(hasAgeColumn); // Output: true or false
912
+ * ```
913
+ */
914
+ hasColumn(column: string): Promise<boolean>;
915
+ /**
916
+ * Selects random rows from the table, removing all others. You can optionally specify a seed to ensure repeatable sampling.
917
+ *
918
+ * @param quantity - The number of rows to select (e.g., `100`) or a percentage string (e.g., `"10%"`) specifying the sampling size.
919
+ * @param options - An optional object with configuration options:
920
+ * @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.
921
+ * @returns A promise that resolves when the sampling is complete.
922
+ * @category Selecting or Filtering Data
923
+ *
924
+ * @example
925
+ * ```ts
926
+ * // Select 100 random rows from the table
927
+ * await table.sample(100);
928
+ * ```
929
+ *
930
+ * @example
931
+ * ```ts
932
+ * // Select 10% of the rows randomly
933
+ * await table.sample("10%");
934
+ * ```
935
+ *
936
+ * @example
937
+ * ```ts
938
+ * // Select random rows with a specific seed for repeatable results
939
+ * await table.sample("10%", { seed: 123 });
940
+ * ```
941
+ */
942
+ sample(quantity: number | string, options?: {
943
+ seed?: number;
944
+ }): Promise<void>;
945
+ /**
946
+ * 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.
947
+ *
948
+ * @param count - The number of rows to select.
949
+ * @param options - An optional object with configuration options:
950
+ * @param options.offset - The number of rows to skip from the beginning of the table before selecting. Defaults to `0`.
951
+ * @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`.
952
+ * @returns A promise that resolves to a table instance containing the selected rows (either the modified current table or a new table).
953
+ * @category Selecting or Filtering Data
954
+ *
955
+ * @example
956
+ * ```ts
957
+ * // Select the first 100 rows of the current table
958
+ * await table.selectRows(100);
959
+ * ```
960
+ *
961
+ * @example
962
+ * ```ts
963
+ * // Select 100 rows after skipping the first 50 rows
964
+ * await table.selectRows(100, { offset: 50 });
965
+ * ```
966
+ *
967
+ * @example
968
+ * ```ts
969
+ * // Select 50 rows and store them in a new table with a generated name
970
+ * const newTable = await table.selectRows(50, { outputTable: true });
971
+ * ```
972
+ *
973
+ * @example
974
+ * ```ts
975
+ * // Select 75 rows and store them in a new table named "top_customers"
976
+ * const topCustomersTable = await table.selectRows(75, { outputTable: "top_customers" });
977
+ * ```
978
+ */
979
+ selectRows(count: number | string, options?: {
980
+ offset?: number;
981
+ outputTable?: string | boolean;
982
+ }): Promise<this>;
983
+ /**
984
+ * Removes duplicate rows from this table, keeping only unique rows.
985
+ * Note that the resulting data order might differ from the original.
986
+ *
987
+ * @param options - An optional object with configuration options:
988
+ * @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.
989
+ * @returns A promise that resolves when the duplicate rows have been removed.
990
+ * @category Selecting or Filtering Data
991
+ *
992
+ * @example
993
+ * ```ts
994
+ * // Remove duplicate rows based on all columns
995
+ * await table.removeDuplicates();
996
+ * ```
997
+ *
998
+ * @example
999
+ * ```ts
1000
+ * // Remove duplicate rows based only on the 'email' column
1001
+ * await table.removeDuplicates({ on: "email" });
1002
+ * ```
1003
+ *
1004
+ * @example
1005
+ * ```ts
1006
+ * // Remove duplicate rows based on 'firstName' and 'lastName' columns
1007
+ * await table.removeDuplicates({ on: ["firstName", "lastName"] });
1008
+ * ```
1009
+ */
1010
+ removeDuplicates(options?: {
1011
+ on?: string | string[];
1012
+ }): Promise<void>;
1013
+ /**
1014
+ * Removes rows with missing values from this table.
1015
+ * By default, missing values include SQL `NULL`, as well as string representations like `"NULL"`, `"null"`, `"NaN"`, `"undefined"`, and empty strings `""`.
1016
+ *
1017
+ * @param options - An optional object with configuration options:
1018
+ * @param options.columns - A string or an array of strings specifying the columns to consider for missing values. If omitted, all columns are considered.
1019
+ * @param options.missingValues - An array of values to be treated as missing values instead of the default ones. Defaults to `["undefined", "NaN", "null", "NULL", ""]`.
1020
+ * @param options.invert - A boolean indicating whether to invert the condition. If `true`, only rows containing missing values will be kept. Defaults to `false`.
1021
+ * @returns A promise that resolves when the rows with missing values have been removed.
1022
+ * @category Selecting or Filtering Data
1023
+ *
1024
+ * @example
1025
+ * ```ts
1026
+ * // Remove rows with missing values in any column
1027
+ * await table.removeMissing();
1028
+ * ```
1029
+ *
1030
+ * @example
1031
+ * ```ts
1032
+ * // Remove rows with missing values only in 'firstName' or 'lastName' columns
1033
+ * await table.removeMissing({ columns: ["firstName", "lastName"] });
1034
+ * ```
1035
+ *
1036
+ * @example
1037
+ * ```ts
1038
+ * // Keep only rows with missing values in any column
1039
+ * await table.removeMissing({ invert: true });
1040
+ * ```
1041
+ *
1042
+ * @example
1043
+ * ```ts
1044
+ * // Remove rows where 'age' is missing or is equal to -1
1045
+ * await table.removeMissing({ columns: "age", missingValues: [-1] });
1046
+ * ```
1047
+ */
1048
+ removeMissing(options?: {
1049
+ columns?: string | string[];
1050
+ missingValues?: (string | number)[];
1051
+ invert?: boolean;
1052
+ }): Promise<void>;
1053
+ /**
1054
+ * Trims specified characters from the beginning, end, or both sides of string values in the given columns.
1055
+ *
1056
+ * @param columns - The column name or an array of column names to trim.
1057
+ * @param options - An optional object with configuration options:
1058
+ * @param options.character - The string to trim. Defaults to whitespace characters.
1059
+ * @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"`.
1060
+ * @returns A promise that resolves when the trimming operation is complete.
1061
+ * @category Updating Data
1062
+ *
1063
+ * @example
1064
+ * ```ts
1065
+ * // Trim whitespace from 'column1'
1066
+ * await table.trim("column1");
1067
+ * ```
1068
+ *
1069
+ * @example
1070
+ * ```ts
1071
+ * // Trim leading and trailing asterisks from 'productCode'
1072
+ * await table.trim("productCode", { character: "*" });
1073
+ * ```
1074
+ *
1075
+ * @example
1076
+ * ```ts
1077
+ * // Right-trim whitespace from 'description' and 'notes' columns
1078
+ * await table.trim(["description", "notes"], { method: "rightTrim" });
1079
+ * ```
1080
+ */
1081
+ trim(columns: string | string[], options?: {
1082
+ character?: string;
1083
+ method?: "leftTrim" | "rightTrim" | "trim";
1084
+ }): Promise<void>;
1085
+ /**
1086
+ * Filters rows from this table based on SQL conditions. Note that it's often faster to use the `removeRows` method for simple removals.
1087
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
1088
+ *
1089
+ * @param conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"column1 > 10 AND column2 = 'value'"`).
1090
+ * @returns A promise that resolves when the rows have been filtered.
1091
+ * @category Selecting or Filtering Data
1092
+ *
1093
+ * @example
1094
+ * ```ts
1095
+ * // Keep only rows where the 'fruit' column is not 'apple'
1096
+ * await table.filter(`fruit != 'apple'`);
1097
+ * ```
1098
+ *
1099
+ * @example
1100
+ * ```ts
1101
+ * // Keep rows where 'price' is greater than 100 AND 'quantity' is greater than 0
1102
+ * await table.filter(`price > 100 && quantity > 0`); // Using JS syntax
1103
+ * ```
1104
+ *
1105
+ * @example
1106
+ * ```ts
1107
+ * // Keep rows where 'category' is 'Electronics' OR 'Appliances'
1108
+ * await table.filter(`category === 'Electronics' || category === 'Appliances'`); // Using JS syntax
1109
+ * ```
1110
+ *
1111
+ * @example
1112
+ * ```ts
1113
+ * // Keep rows where 'lastPurchaseDate' is on or after '2023-01-01'
1114
+ * await table.filter(`lastPurchaseDate >= '2023-01-01'`);
1115
+ * ```
1116
+ */
1117
+ filter(conditions: string): Promise<void>;
1118
+ /**
1119
+ * Keeps rows in this table that have specific values in specified columns, removing all other rows.
1120
+ *
1121
+ * @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.
1122
+ * @returns A promise that resolves when the rows have been filtered.
1123
+ * @category Selecting or Filtering Data
1124
+ *
1125
+ * @example
1126
+ * ```ts
1127
+ * // Keep only rows where 'job' is 'accountant' or 'developer', AND 'city' is 'Montreal'
1128
+ * await table.keep({ job: ["accountant", "developer"], city: "Montreal" });
1129
+ * ```
1130
+ *
1131
+ * @example
1132
+ * ```ts
1133
+ * // Keep only rows where 'status' is 'active'
1134
+ * await table.keep({ status: "active" });
1135
+ * ```
1136
+ */
1137
+ keep(columnsAndValues: {
1138
+ [key: string]: (number | string | Date | boolean | null)[] | (number | string | Date | boolean | null);
1139
+ }): Promise<void>;
1140
+ /**
1141
+ * Removes rows from this table that have specific values in specified columns.
1142
+ *
1143
+ * @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.
1144
+ * @returns A promise that resolves when the rows have been removed.
1145
+ * @category Selecting or Filtering Data
1146
+ *
1147
+ * @example
1148
+ * ```ts
1149
+ * // Remove rows where 'job' is 'accountant' or 'developer', AND 'city' is 'Montreal'
1150
+ * await table.remove({ job: ["accountant", "developer"], city: "Montreal" });
1151
+ * ```
1152
+ *
1153
+ * @example
1154
+ * ```ts
1155
+ * // Remove rows where 'status' is 'inactive'
1156
+ * await table.remove({ status: "inactive" });
1157
+ * ```
1158
+ */
1159
+ remove(columnsAndValues: {
1160
+ [key: string]: (number | string | Date | boolean | null)[] | (number | string | Date | boolean | null);
1161
+ }): Promise<void>;
1162
+ /**
1163
+ * Removes rows from this table based on SQL conditions. This method is similar to `filter()`, but removes rows instead of keeping them.
1164
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
1165
+ *
1166
+ * @param conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"fruit = 'apple'"`).
1167
+ * @returns A promise that resolves when the rows have been removed.
1168
+ * @category Selecting or Filtering Data
1169
+ *
1170
+ * @example
1171
+ * ```ts
1172
+ * // Remove rows where the 'fruit' column is 'apple'
1173
+ * await table.removeRows(`fruit = 'apple'`);
1174
+ * ```
1175
+ *
1176
+ * @example
1177
+ * ```ts
1178
+ * // Remove rows where 'quantity' is less than 5
1179
+ * await table.removeRows(`quantity < 5`);
1180
+ * ```
1181
+ *
1182
+ * @example
1183
+ * ```ts
1184
+ * // Remove rows where 'price' is less than 100 AND 'quantity' is 0
1185
+ * await table.removeRows(`price < 100 && quantity === 0`); // Using JS syntax
1186
+ * ```
1187
+ *
1188
+ * @example
1189
+ * ```ts
1190
+ * // Remove rows where 'category' is 'Electronics' OR 'Appliances'
1191
+ * await table.removeRows(`category === 'Electronics' || category === 'Appliances'`); // Using JS syntax
1192
+ * ```
1193
+ */
1194
+ removeRows(conditions: string): Promise<void>;
1195
+ /**
1196
+ * Renames one or more columns in the table.
1197
+ *
1198
+ * @param names - An object mapping old column names to their new column names (e.g., `{ "oldName": "newName", "anotherOld": "anotherNew" }`).
1199
+ * @returns A promise that resolves when the columns have been renamed.
1200
+ * @category Column Operations
1201
+ *
1202
+ * @example
1203
+ * ```ts
1204
+ * // Rename "How old?" to "age" and "Man or woman?" to "sex"
1205
+ * await table.renameColumns({ "How old?": "age", "Man or woman?": "sex" });
1206
+ * ```
1207
+ *
1208
+ * @example
1209
+ * ```ts
1210
+ * // Rename a single column
1211
+ * await table.renameColumns({ "product_id": "productId" });
1212
+ * ```
1213
+ */
1214
+ renameColumns(names: {
1215
+ [key: string]: string;
1216
+ }): Promise<void>;
1217
+ /**
1218
+ * Cleans column names by removing non-alphanumeric characters and formatting them to camel case.
1219
+ *
1220
+ * @returns A promise that resolves when the column names have been cleaned.
1221
+ * @category Column Operations
1222
+ *
1223
+ * @example
1224
+ * ```ts
1225
+ * // Clean all column names in the table
1226
+ * // e.g., "First Name" becomes "firstName", "Product ID" becomes "productId"
1227
+ * await table.cleanColumnNames();
1228
+ * ```
1229
+ */
1230
+ cleanColumnNames(): Promise<void>;
1231
+ /**
1232
+ * Restructures this table by stacking (unpivoting) columns. This is useful for tidying up data from a wide format to a long format.
1233
+ *
1234
+ * For example, given a table showing employee counts per department per year:
1235
+ *
1236
+ * | Department | 2021 | 2022 | 2023 |
1237
+ * | :--------- | :--- | :--- | :--- |
1238
+ * | Accounting | 10 | 9 | 15 |
1239
+ * | Sales | 52 | 75 | 98 |
1240
+ *
1241
+ * 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`.
1242
+ *
1243
+ * @example
1244
+ * ```ts
1245
+ * // Restructure the table by stacking year columns into 'year' and 'employees'
1246
+ * await table.longer(["2021", "2022", "2023"], "year", "employees");
1247
+ * ```
1248
+ *
1249
+ * The table will then look like this:
1250
+ *
1251
+ * | Department | Year | Employees |
1252
+ * | :--------- | :--- | :-------- |
1253
+ * | Accounting | 2021 | 10 |
1254
+ * | Accounting | 2022 | 9 |
1255
+ * | Accounting | 2023 | 15 |
1256
+ * | Sales | 2021 | 52 |
1257
+ * | Sales | 2022 | 75 |
1258
+ * | Sales | 2023 | 98 |
1259
+ *
1260
+ * @param columns - An array of strings representing the names of the columns to be stacked (unpivoted).
1261
+ * @param columnsTo - The name of the new column that will contain the original column names (e.g., "Year").
1262
+ * @param valuesTo - The name of the new column that will contain the values from the stacked columns (e.g., "Employees").
1263
+ * @returns A promise that resolves when the table has been restructured.
1264
+ * @category Restructuring Data
1265
+ */
1266
+ longer(columns: string[], columnsTo: string, valuesTo: string): Promise<void>;
1267
+ /**
1268
+ * Restructures this table by unstacking (pivoting) values, transforming data from a long format to a wide format.
1269
+ *
1270
+ * For example, given a table showing employee counts per department per year:
1271
+ *
1272
+ * | Department | Year | Employees |
1273
+ * | :--------- | :--- | :-------- |
1274
+ * | Accounting | 2021 | 10 |
1275
+ * | Accounting | 2022 | 9 |
1276
+ * | Accounting | 2023 | 15 |
1277
+ * | Sales | 2021 | 52 |
1278
+ * | Sales | 2022 | 75 |
1279
+ * | Sales | 2023 | 98 |
1280
+ *
1281
+ * We can restructure it by creating new columns for each year, with the associated employee counts as values.
1282
+ *
1283
+ * @example
1284
+ * ```ts
1285
+ * // Restructure the table by pivoting 'Year' into new columns with 'Employees' as values
1286
+ * await table.wider("Year", "Employees");
1287
+ * ```
1288
+ *
1289
+ * The table will then look like this:
1290
+ *
1291
+ * | Department | 2021 | 2022 | 2023 |
1292
+ * | :--------- | :--- | :--- | :--- |
1293
+ * | Accounting | 10 | 9 | 15 |
1294
+ * | Sales | 52 | 75 | 98 |
1295
+ *
1296
+ * @param columnsFrom - The name of the column containing the values that will be transformed into new column headers (e.g., "Year").
1297
+ * @param valuesFrom - The name of the column containing the values to be spread across the new columns (e.g., "Employees").
1298
+ * @returns A promise that resolves when the table has been restructured.
1299
+ * @category Restructuring Data
1300
+ */
1301
+ wider(columnsFrom: string, valuesFrom: string): Promise<void>;
1302
+ /**
1303
+ * Converts data types of specified columns to target types (JavaScript or SQL types).
1304
+ *
1305
+ * 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).
1306
+ *
1307
+ * 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).
1308
+ *
1309
+ * When converting strings to numbers, commas (often used as thousand separators) will be automatically removed before conversion.
1310
+ *
1311
+ * @param types - An object mapping column names to their target data types for conversion.
1312
+ * @param options - An optional object with configuration options:
1313
+ * @param options.try - If `true`, values that cannot be converted will be replaced by `NULL` instead of throwing an error. Defaults to `false`.
1314
+ * @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).
1315
+ * @returns A promise that resolves when the column types have been converted.
1316
+ * @category Updating Data
1317
+ *
1318
+ * @example
1319
+ * ```ts
1320
+ * // Convert 'column1' to string and 'column2' to integer (JavaScript types)
1321
+ * await table.convert({ column1: "string", column2: "integer" });
1322
+ * ```
1323
+ *
1324
+ * @example
1325
+ * ```ts
1326
+ * // Convert 'column1' to VARCHAR and 'column2' to BIGINT (SQL types)
1327
+ * await table.convert({ column1: "varchar", column2: "bigint" });
1328
+ * ```
1329
+ *
1330
+ * @example
1331
+ * ```ts
1332
+ * // Convert strings in 'column3' to datetime using a specific format
1333
+ * await table.convert({ column3: "datetime" }, { datetimeFormat: "%Y-%m-%d" });
1334
+ * ```
1335
+ *
1336
+ * @example
1337
+ * ```ts
1338
+ * // Convert datetime values in 'column3' to strings using a specific format
1339
+ * await table.convert({ column3: "string" }, { datetimeFormat: "%Y-%m-%d %H:%M:%S" });
1340
+ * ```
1341
+ *
1342
+ * @example
1343
+ * ```ts
1344
+ * // Convert 'amount' to float, replacing unconvertible values with NULL
1345
+ * await table.convert({ amount: "float" }, { try: true });
1346
+ * ```
1347
+ */
1348
+ convert(types: {
1349
+ [key: string]: "integer" | "float" | "number" | "string" | "date" | "time" | "datetime" | "datetimeTz" | "bigint" | "double" | "varchar" | "timestamp" | "timestamp with time zone" | "boolean";
1350
+ }, options?: {
1351
+ try?: boolean;
1352
+ datetimeFormat?: string;
1353
+ }): Promise<void>;
1354
+ /**
1355
+ * Removes the table from the database. After this operation, invoking methods on this SimpleTable instance will result in an error.
1356
+ *
1357
+ * @returns A promise that resolves when the table has been removed.
1358
+ * @category Table Management
1359
+ *
1360
+ * @example
1361
+ * ```ts
1362
+ * // Remove the current table from the database
1363
+ * await table.removeTable();
1364
+ * ```
1365
+ */
1366
+ removeTable(): Promise<void>;
1367
+ /**
1368
+ * Removes one or more columns from this table.
1369
+ *
1370
+ * @param columns - The name or an array of names of the columns to be removed.
1371
+ * @returns A promise that resolves when the columns have been removed.
1372
+ * @category Column Operations
1373
+ *
1374
+ * @example
1375
+ * ```ts
1376
+ * // Remove 'column1' and 'column2' from the table
1377
+ * await table.removeColumns(["column1", "column2"]);
1378
+ * ```
1379
+ *
1380
+ * @example
1381
+ * ```ts
1382
+ * // Remove a single column named 'tempColumn'
1383
+ * await table.removeColumns("tempColumn");
1384
+ * ```
1385
+ */
1386
+ removeColumns(columns: string | string[]): Promise<void>;
1387
+ /**
1388
+ * Adds a new column to the table based on a specified data type (JavaScript or SQL types) and a SQL definition.
1389
+ *
1390
+ * @param newColumn - The name of the new column to be added.
1391
+ * @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"`).
1392
+ * @param definition - A SQL expression defining how the values for the new column should be computed (e.g., `"column1 + column2"`, `"ST_Centroid(geom_column)"`).
1393
+ * @param options - An optional object with configuration options:
1394
+ * @returns A promise that resolves when the new column has been added.
1395
+ * @category Column Operations
1396
+ *
1397
+ * @example
1398
+ * ```ts
1399
+ * // Add a new column 'total' as a float, calculated from 'column1' and 'column2'
1400
+ * await table.addColumn("total", "float", "column1 + column2");
1401
+ * ```
1402
+ *
1403
+ * @example
1404
+ * ```ts
1405
+ * // Add a new geometry column 'centroid' using the centroid of an existing 'country' geometry column
1406
+ * await table.addColumn("centroid", "geometry('EPSG:4326')", `ST_Centroid("country")`);
1407
+ * ```
1408
+ */
1409
+ 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>;
1410
+ /**
1411
+ * Adds a new column to the table containing the row number, starting at 0 (like an index).
1412
+ *
1413
+ * @param newColumn - The name of the new column that will store the row number.
1414
+ * @param options - An optional object with configuration options:
1415
+ * @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.
1416
+ * @returns A promise that resolves when the row number column has been added.
1417
+ * @category Column Operations
1418
+ *
1419
+ * @example
1420
+ * ```ts
1421
+ * // Add a new column named 'rowNumber' with the row number for each row
1422
+ * await table.addRowNumber("rowNumber");
1423
+ * ```
1424
+ *
1425
+ * @example
1426
+ * ```ts
1427
+ * // Add a new column named 'rowNumber' with the row number for each 'category'
1428
+ * await table.addRowNumber("rowNumber", { categories: "category" });
1429
+ * ```
1430
+ */
1431
+ addRowNumber(newColumn: string, options?: {
1432
+ categories?: string | string[];
1433
+ }): Promise<void>;
1434
+ /**
1435
+ * 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.
1436
+ * This means that if the left table has `n` rows and the right table has `m` rows, the result will have `n * m` rows.
1437
+ *
1438
+ * @param rightTable - The SimpleTable instance to cross join with.
1439
+ * @param options - An optional object with configuration options:
1440
+ * @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`.
1441
+ * @returns A promise that resolves to a table instance containing the cross-joined data (either the modified current table or a new table).
1442
+ * @category Table Operations
1443
+ *
1444
+ * @example
1445
+ * ```ts
1446
+ * // Perform a cross join with 'tableB', overwriting the current table (tableA)
1447
+ * await tableA.crossJoin(tableB);
1448
+ * ```
1449
+ *
1450
+ * @example
1451
+ * ```ts
1452
+ * // Perform a cross join with 'tableB' and store the results in a new table with a generated name
1453
+ * const tableC = await tableA.crossJoin(tableB, { outputTable: true });
1454
+ * ```
1455
+ *
1456
+ * @example
1457
+ * ```ts
1458
+ * // Perform a cross join with 'tableB' and store the results in a new table named 'tableC'
1459
+ * const tableC = await tableA.crossJoin(tableB, { outputTable: "tableC" });
1460
+ * ```
1461
+ */
1462
+ crossJoin(rightTable: SimpleTable, options?: {
1463
+ outputTable?: string | boolean;
1464
+ }): Promise<this>;
1465
+ /**
1466
+ * Merges the data of this table (considered the left table) with another table (the right table) based on a common column or multiple columns.
1467
+ * Note that the order of rows in the returned data is not guaranteed to be the same as in the original tables.
1468
+ * This operation might create temporary files in a `.tmp` folder; consider adding `.tmp` to your `.gitignore`.
1469
+ *
1470
+ * @param rightTable - The SimpleTable instance to be joined with this table.
1471
+ * @param options - An optional object with configuration options:
1472
+ * @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.
1473
+ * @param options.type - The type of join operation to perform. Possible values are `"inner"`, `"left"` (default), `"right"`, or `"full"`.
1474
+ * @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`.
1475
+ * @returns A promise that resolves to a table instance containing the joined data (either the modified current table or a new table).
1476
+ * @category Table Operations
1477
+ *
1478
+ * @example
1479
+ * ```ts
1480
+ * // Perform a left join with 'tableB' on a common column (auto-detected), overwriting tableA
1481
+ * await tableA.join(tableB);
1482
+ * ```
1483
+ *
1484
+ * @example
1485
+ * ```ts
1486
+ * // Perform an inner join with 'tableB' on the 'id' column, storing results in a new table named 'tableC'
1487
+ * const tableC = await tableA.join(tableB, { commonColumn: 'id', type: 'inner', outputTable: "tableC" });
1488
+ * ```
1489
+ *
1490
+ * @example
1491
+ * ```ts
1492
+ * // Perform a join on multiple columns ('name' and 'category')
1493
+ * await tableA.join(tableB, { commonColumn: ['name', 'category'] });
1494
+ * ```
1495
+ */
1496
+ join(rightTable: SimpleTable, options?: {
1497
+ commonColumn?: string | string[];
1498
+ type?: "inner" | "left" | "right" | "full";
1499
+ outputTable?: string | boolean;
1500
+ }): Promise<this>;
1501
+ /**
1502
+ * Performs a fuzzy left join between this table (considered the left table) and another table
1503
+ * (the right table) based on string similarity between two text columns. Uses the
1504
+ * [rapidfuzz](https://query.farm/duckdb_extension_rapidfuzz) DuckDB community extension.
1505
+ *
1506
+ * 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.
1507
+ *
1508
+ * This operation might create temporary files in a `.tmp` folder; consider adding `.tmp` to your `.gitignore`.
1509
+ *
1510
+ * @param rightTable - The SimpleTable instance to be joined with this table.
1511
+ * @param leftColumn - The name of the column in this (left) table containing the text to compare.
1512
+ * @param rightColumn - The name of the column in the right table containing the text to compare.
1513
+ * @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.
1514
+ * @param options - An optional object with configuration options:
1515
+ * @param options.method - The rapidfuzz similarity algorithm to use. Defaults to `"ratio"`.
1516
+ * - `"ratio"`: Overall similarity (Levenshtein-based).
1517
+ * - `"partial_ratio"`: Best partial/substring similarity.
1518
+ * - `"token_sort_ratio"`: Similarity after sorting tokens (words), useful for reordered words.
1519
+ * - `"token_set_ratio"`: Similarity based on sets of tokens, ignoring duplicates and word order.
1520
+ * @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.
1521
+ * @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`.
1522
+ * @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).
1523
+ * @returns A promise that resolves to a table instance containing the fuzzy-joined data (either the modified current table or a new table).
1524
+ * @category Table Operations
1525
+ *
1526
+ * @example
1527
+ * ```ts
1528
+ * // Fuzzy left join tableA with tableB on 'name' (left) and 'standardName' (right) with a threshold of 80
1529
+ * // A length-based pre-filter is automatically applied.
1530
+ * await tableA.fuzzyJoin(tableB, "name", "standardName", 80);
1531
+ * ```
1532
+ *
1533
+ * @example
1534
+ * ```ts
1535
+ * // Fuzzy join with a prefix-based pre-filter and a threshold of 80
1536
+ * await tableA.fuzzyJoin(tableB, "name", "standardName", 80, {
1537
+ * preFilterPrefixLen: 3, // Must share the same first 3 characters
1538
+ * });
1539
+ * ```
1540
+ *
1541
+ * @example
1542
+ * ```ts
1543
+ * // Fuzzy join with a custom threshold and method, storing results in a new table
1544
+ * const tableC = await tableA.fuzzyJoin(tableB, "name", "standardName", 90, {
1545
+ * method: "token_sort_ratio",
1546
+ * outputTable: "tableC",
1547
+ * });
1548
+ * ```
1549
+ *
1550
+ * @example
1551
+ * ```ts
1552
+ * // Fuzzy join with a custom similarity column name and a threshold of 80
1553
+ * await tableA.fuzzyJoin(tableB, "name", "standardName", 80, {
1554
+ * similarityColumn: "matchScore",
1555
+ * });
1556
+ * ```
1557
+ */
1558
+ fuzzyJoin(rightTable: SimpleTable, leftColumn: string, rightColumn: string, threshold: number, options?: {
1559
+ method?: "ratio" | "partial_ratio" | "token_sort_ratio" | "token_set_ratio";
1560
+ similarityColumn?: string;
1561
+ outputTable?: string | boolean;
1562
+ preFilterPrefixLen?: number;
1563
+ }): Promise<this>;
1564
+ /**
1565
+ * Normalizes string values in a column by detecting fuzzy duplicates and replacing them with a single canonical value.
1566
+ *
1567
+ * Similar strings are grouped into clusters. Matching is transitive: if `"New York"` is similar to `"New Yorke"` and
1568
+ * `"New Yorke"` is similar to `"New Yorkk"`, all three land in the same cluster even if `"New York"` and `"New Yorkk"`
1569
+ * would not match directly. Each cluster is then collapsed to one representative value based on the `keep` strategy.
1570
+ *
1571
+ * Similarity is computed using the [rapidfuzz](https://query.farm/duckdb_extension_rapidfuzz) DuckDB community extension,
1572
+ * which is installed and loaded automatically.
1573
+ *
1574
+ * @param column - The name of the column containing the strings to normalize.
1575
+ * @param newColumn - The name of the column to write the normalized values to. Use the same name as `column` to normalize in-place.
1576
+ * @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.
1577
+ * @param options - An optional object with configuration options:
1578
+ * @param options.method - The rapidfuzz similarity algorithm to use. Defaults to `"ratio"`.
1579
+ * - `"ratio"`: Overall similarity.
1580
+ * - `"partial_ratio"`: Best partial/substring similarity.
1581
+ * - `"token_sort_ratio"`: Similarity after sorting tokens (words), useful for reordered words.
1582
+ * - `"token_set_ratio"`: Similarity based on sets of tokens, ignoring duplicates and word order.
1583
+ * @param options.keep - The strategy for choosing the canonical value within each cluster of similar strings. Defaults to `"mostCommon"`.
1584
+ * - `"mostCommon"`: Keep the value that appears most frequently in the original column.
1585
+ * - `"longestString"`: Keep the longest string in the cluster.
1586
+ * - `"shortestString"`: Keep the shortest string in the cluster.
1587
+ * - `"mostCentral"`: Keep the string with the highest total similarity score to all other cluster members (the most "central" string).
1588
+ * - `"maxScore"`: Keep the string that participates in the single highest-scoring pairwise match within the cluster.
1589
+ * @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).
1590
+ * @returns A promise that resolves when the column has been normalized.
1591
+ * @category Updating Data
1592
+ *
1593
+ * @example
1594
+ * ```ts
1595
+ * // Normalize 'city' into a new 'cityClean' column, keeping the most common string per cluster with a threshold of 80
1596
+ * // A length-based pre-filter is automatically applied.
1597
+ * await table.fuzzyClean("city", "cityClean", 80);
1598
+ * ```
1599
+ *
1600
+ * @example
1601
+ * ```ts
1602
+ * // Normalize with a prefix-based pre-filter and a threshold of 80
1603
+ * await table.fuzzyClean("city", "cityClean", 80, {
1604
+ * preFilterPrefixLen: 5, // Must share the same first 5 characters
1605
+ * });
1606
+ * ```
1607
+ *
1608
+ * @example
1609
+ * ```ts
1610
+ * // Normalize 'companyName' into a new column using token_sort_ratio and a threshold of 90
1611
+ * await table.fuzzyClean("companyName", "companyNameClean", 90, { method: "token_sort_ratio" });
1612
+ * ```
1613
+ *
1614
+ * @example
1615
+ * ```ts
1616
+ * // Normalize 'category' in-place, keeping the longest string in each cluster and a threshold of 80
1617
+ * await table.fuzzyClean("category", "category", 80, { keep: "longestString" });
1618
+ * ```
1619
+ */
1620
+ fuzzyClean(column: string, newColumn: string, threshold: number, options?: {
1621
+ method?: "ratio" | "partial_ratio" | "token_sort_ratio" | "token_set_ratio";
1622
+ keep?: "mostCommon" | "longestString" | "shortestString" | "mostCentral" | "maxScore";
1623
+ preFilterPrefixLen?: number;
1624
+ }): Promise<void>;
1625
+ /**
1626
+ * Replaces specified strings in the selected columns.
1627
+ *
1628
+ * @param columns - The column name or an array of column names where string replacements will occur.
1629
+ * @param strings - An object mapping old strings to new strings (e.g., `{ "oldValue": "newValue" }`).
1630
+ * @param options - An optional object with configuration options:
1631
+ * @param options.entireString - A boolean indicating whether the entire cell content must match the `oldString` for replacement to occur. Defaults to `false` (replaces substrings).
1632
+ * @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`.
1633
+ * @returns A promise that resolves when the string replacements are complete.
1634
+ * @category Updating Data
1635
+ *
1636
+ * @example
1637
+ * ```ts
1638
+ * // Replace all occurrences of "kilograms" with "kg" in 'column1'
1639
+ * await table.replace("column1", { "kilograms": "kg" });
1640
+ * ```
1641
+ *
1642
+ * @example
1643
+ * ```ts
1644
+ * // Replace "kilograms" with "kg" and "liters" with "l" in 'column1' and 'column2'
1645
+ * await table.replace(["column1", "column2"], { "kilograms": "kg", "liters": "l" });
1646
+ * ```
1647
+ *
1648
+ * @example
1649
+ * ```ts
1650
+ * // Replace only if the entire string in 'column1' is "kilograms"
1651
+ * await table.replace("column1", { "kilograms": "kg" }, { entireString: true });
1652
+ * ```
1653
+ *
1654
+ * @example
1655
+ * ```ts
1656
+ * // Replace any sequence of one or more digits with a hyphen in 'column1' using regex
1657
+ * await table.replace("column1", { "\d+": "-" }, { regex: true });
1658
+ * ```
1659
+ */
1660
+ replace(columns: string | string[], strings: {
1661
+ [key: string]: string;
1662
+ }, options?: {
1663
+ entireString?: boolean;
1664
+ regex?: boolean;
1665
+ }): Promise<void>;
1666
+ /**
1667
+ * Converts string values in the specified columns to lowercase.
1668
+ *
1669
+ * @param columns - The column name or an array of column names to be converted to lowercase.
1670
+ * @returns A promise that resolves when the strings have been converted to lowercase.
1671
+ * @category Updating Data
1672
+ *
1673
+ * @example
1674
+ * ```ts
1675
+ * // Convert strings in 'column1' to lowercase
1676
+ * await table.lower("column1");
1677
+ * ```
1678
+ *
1679
+ * @example
1680
+ * ```ts
1681
+ * // Convert strings in 'column1' and 'column2' to lowercase
1682
+ * await table.lower(["column1", "column2"]);
1683
+ * ```
1684
+ */
1685
+ lower(columns: string | string[]): Promise<void>;
1686
+ /**
1687
+ * Converts string values in the specified columns to uppercase.
1688
+ *
1689
+ * @param columns - The column name or an array of column names to be converted to uppercase.
1690
+ * @returns A promise that resolves when the strings have been converted to uppercase.
1691
+ * @category Updating Data
1692
+ *
1693
+ * @example
1694
+ * ```ts
1695
+ * // Convert strings in 'column1' to uppercase
1696
+ * await table.upper("column1");
1697
+ * ```
1698
+ *
1699
+ * @example
1700
+ * ```ts
1701
+ * // Convert strings in 'column1' and 'column2' to uppercase
1702
+ * await table.upper(["column1", "column2"]);
1703
+ * ```
1704
+ */
1705
+ upper(columns: string | string[]): Promise<void>;
1706
+ /**
1707
+ * Capitalizes the first letter of each string in the specified columns and converts the rest of the string to lowercase.
1708
+ *
1709
+ * @param columns - The column name or an array of column names to be capitalized.
1710
+ * @returns A promise that resolves when the strings have been capitalized.
1711
+ * @category Updating Data
1712
+ *
1713
+ * @example
1714
+ * ```ts
1715
+ * // Capitalize strings in 'column1' (e.g., "hello world" becomes "Hello world")
1716
+ * await table.capitalize("column1");
1717
+ * ```
1718
+ *
1719
+ * @example
1720
+ * ```ts
1721
+ * // Capitalize strings in 'column1' and 'column2'
1722
+ * await table.capitalize(["column1", "column2"]);
1723
+ * ```
1724
+ */
1725
+ capitalize(columns: string | string[]): Promise<void>;
1726
+ /**
1727
+ * Truncates string values in a specified column to a maximum number of characters.
1728
+ *
1729
+ * @param column - The column name containing strings to be truncated.
1730
+ * @param length - The maximum number of characters to keep.
1731
+ * @returns A promise that resolves when the strings have been truncated.
1732
+ * @category Updating Data
1733
+ *
1734
+ * @example
1735
+ * ```ts
1736
+ * // Truncate strings in 'description' column to 50 characters
1737
+ * await table.truncate("description", 50);
1738
+ * ```
1739
+ *
1740
+ * @example
1741
+ * ```ts
1742
+ * // Truncate strings in 'name' column to 10 characters
1743
+ * await table.truncate("name", 10);
1744
+ * ```
1745
+ */
1746
+ truncate(column: string, length: number): Promise<void>;
1747
+ /**
1748
+ * Pads the strings in the specified columns to a target length.
1749
+ *
1750
+ * The columns must contain string (VARCHAR) values. An error is thrown if any
1751
+ * column is of a different type. `null` values remain `null`. If any string
1752
+ * already exceeds the target length, an error is thrown (no silent truncation).
1753
+ *
1754
+ * @param columns - The column name(s) containing strings to be padded.
1755
+ * @param length - The target length of the padded strings.
1756
+ * @param options - An optional object with configuration options:
1757
+ * @param options.method - Which side to pad. `'left'` (default) or `'right'`.
1758
+ * @param options.char - The character to use for padding. Defaults to `'0'`.
1759
+ * @returns A promise that resolves when the padding operation is complete.
1760
+ * @throws {Error} If any column is not of string (VARCHAR) type.
1761
+ * @throws {Error} If any string value exceeds the target length.
1762
+ * @category Updating Data
1763
+ *
1764
+ * @example
1765
+ * ```ts
1766
+ * // Left-pad 'id' column to 3 characters with zeros (default)
1767
+ * await table.pad("id", 3);
1768
+ * // Result: '1' -> '001', '23' -> '023', null -> null
1769
+ * ```
1770
+ *
1771
+ * @example
1772
+ * ```ts
1773
+ * // Right-pad 'code' column to 5 characters with spaces
1774
+ * await table.pad("code", 5, { method: "right", char: " " });
1775
+ * // Result: '123' -> '123 ', '45' -> '45 ', null -> null
1776
+ * ```
1777
+ *
1778
+ * @example
1779
+ * ```ts
1780
+ * // Left-pad multiple columns to 5 characters with dashes
1781
+ * await table.pad(["id", "code"], 5, { method: "left", char: "-" });
1782
+ * // Result: '1' -> '----1', '23' -> '---23'
1783
+ * ```
1784
+ */
1785
+ pad(columns: string | string[], length: number, options?: {
1786
+ method?: "left" | "right";
1787
+ char?: string;
1788
+ }): Promise<void>;
1789
+ /**
1790
+ * 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.
1791
+ * If the index is out of bounds, an empty string will be returned for that row.
1792
+ *
1793
+ * @param column - The name of the column containing the strings to be split.
1794
+ * @param separator - The substring to use as a delimiter for splitting the strings.
1795
+ * @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.
1796
+ * @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`.
1797
+ * @returns A promise that resolves when the strings have been split and extracted.
1798
+ * @category Updating Data
1799
+ *
1800
+ * @example
1801
+ * ```ts
1802
+ * // Split 'address' by comma and extract the second part (index 1) into a new 'city' column
1803
+ * // e.g., "123 Main St, Anytown, USA" -> "Anytown"
1804
+ * await table.splitExtract("address", ",", 1, "city");
1805
+ * ```
1806
+ *
1807
+ * @example
1808
+ * ```ts
1809
+ * // Split 'fileName' by dot and extract the first part (index 0), overwriting 'fileName'
1810
+ * // e.g., "document.pdf" -> "document"
1811
+ * await table.splitExtract("fileName", ".", 0, "fileName");
1812
+ * ```
1813
+ */
1814
+ splitExtract(column: string, separator: string, index: number, newColumn: string): Promise<void>;
1815
+ /**
1816
+ * Splits strings in a specified column by a separator and spreads the resulting parts into multiple new columns.
1817
+ *
1818
+ * 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.
1819
+ * 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).
1820
+ * If a row has more parts than the number of new columns, an error will be thrown unless `noCheck` is set to true.
1821
+ *
1822
+ * @param column - The name of the column containing the strings to be split.
1823
+ * @param separator - The substring to use as a delimiter for splitting the strings.
1824
+ * @param newColumns - An array of column names for the extracted parts.
1825
+ * @param options - Optional configuration.
1826
+ * @param options.noCheck - If true, skips all validation checks (both max and min parts). Default is false.
1827
+ * @returns A promise that resolves when the strings have been split and spread into new columns.
1828
+ * @category Updating Data
1829
+ *
1830
+ * @example
1831
+ * ```ts
1832
+ * // Split 'fullName' by comma and spread into 'lastName' and 'firstName'
1833
+ * // e.g., "Shiab, Nael" -> lastName: "Shiab", firstName: "Nael"
1834
+ * await table.splitSpread("fullName", ",", ["lastName", "firstName"]);
1835
+ * ```
1836
+ *
1837
+ * @example
1838
+ * ```ts
1839
+ * // Split 'address' by comma and spread into three columns
1840
+ * // e.g., "123 Main St, Anytown, USA" -> street: "123 Main St", city: "Anytown", country: "USA"
1841
+ * await table.splitSpread("address", ",", ["street", "city", "country"]);
1842
+ * ```
1843
+ *
1844
+ * @example
1845
+ * ```ts
1846
+ * // Skip validation for performance with noCheck option
1847
+ * await table.splitSpread("data", "|", ["col1", "col2"], { noCheck: true });
1848
+ * ```
1849
+ */
1850
+ splitSpread(column: string, separator: string, newColumns: string[], options?: {
1851
+ noCheck?: boolean;
1852
+ }): Promise<void>;
1853
+ /**
1854
+ * Extracts a specific number of characters from the beginning (left side) of string values in the specified column.
1855
+ *
1856
+ * @param column - The name of the column containing the strings to be modified.
1857
+ * @param numberOfCharacters - The number of characters to extract from the left side of each string.
1858
+ * @returns A promise that resolves when the strings have been updated.
1859
+ * @category Updating Data
1860
+ *
1861
+ * @example
1862
+ * ```ts
1863
+ * // Replace strings in 'productCode' with their first two characters
1864
+ * // e.g., "ABC-123" becomes "AB"
1865
+ * await table.left("productCode", 2);
1866
+ * ```
1867
+ */
1868
+ left(column: string, numberOfCharacters: number): Promise<void>;
1869
+ /**
1870
+ * Extracts a specific number of characters from the end (right side) of string values in the specified column.
1871
+ *
1872
+ * @param column - The name of the column containing the strings to be modified.
1873
+ * @param numberOfCharacters - The number of characters to extract from the right side of each string.
1874
+ * @returns A promise that resolves when the strings have been updated.
1875
+ * @category Updating Data
1876
+ *
1877
+ * @example
1878
+ * ```ts
1879
+ * // Replace strings in 'productCode' with their last two characters
1880
+ * // e.g., "ABC-123" becomes "23"
1881
+ * await table.right("productCode", 2);
1882
+ * ```
1883
+ */
1884
+ right(column: string, numberOfCharacters: number): Promise<void>;
1885
+ /**
1886
+ * Replaces `NULL` values in the specified columns with a given value.
1887
+ *
1888
+ * @param columns - The column name or an array of column names in which to replace `NULL` values.
1889
+ * @param value - The value to replace `NULL` occurrences with.
1890
+ * @returns A promise that resolves when the `NULL` values have been replaced.
1891
+ * @category Updating Data
1892
+ *
1893
+ * @example
1894
+ * ```ts
1895
+ * // Replace NULL values in 'column1' with 0
1896
+ * await table.replaceNulls("column1", 0);
1897
+ * ```
1898
+ *
1899
+ * @example
1900
+ * ```ts
1901
+ * // Replace NULL values in 'columnA' and 'columnB' with the string "N/A"
1902
+ * await table.replaceNulls(["columnA", "columnB"], "N/A");
1903
+ * ```
1904
+ *
1905
+ * @example
1906
+ * ```ts
1907
+ * // Replace NULL values in 'dateColumn' with a specific date
1908
+ * await table.replaceNulls("dateColumn", new Date("2023-01-01"));
1909
+ * ```
1910
+ */
1911
+ replaceNulls(columns: string | string[], value: number | string | Date | boolean): Promise<void>;
1912
+ /**
1913
+ * Concatenates values from specified columns into a new column.
1914
+ *
1915
+ * @param columns - An array of column names whose values will be concatenated.
1916
+ * @param newColumn - The name of the new column to store the concatenated values.
1917
+ * @param options - An optional object with configuration options:
1918
+ * @param options.separator - The string used to separate concatenated values. Defaults to an empty string (`""`).
1919
+ * @returns A promise that resolves when the concatenation is complete.
1920
+ * @category Updating Data
1921
+ *
1922
+ * @example
1923
+ * ```ts
1924
+ * // Concatenate 'firstName' and 'lastName' into a new 'fullName' column
1925
+ * await table.concatenate(["firstName", "lastName"], "fullName");
1926
+ * ```
1927
+ *
1928
+ * @example
1929
+ * ```ts
1930
+ * // Concatenate 'city' and 'country' into 'location', separated by a comma and space
1931
+ * await table.concatenate(["city", "country"], "location", { separator: ", " });
1932
+ * ```
1933
+ */
1934
+ concatenate(columns: string[], newColumn: string, options?: {
1935
+ separator?: string;
1936
+ }): Promise<void>;
1937
+ /**
1938
+ * Concatenates values from multiple columns into a new column with labeled rows.
1939
+ *
1940
+ * This method creates a new column where each value is a concatenation of the specified columns,
1941
+ * with each column value prefixed by its column name and a colon, followed by a newline.
1942
+ * Column entries are separated by double newlines ("\n\n").
1943
+ *
1944
+ * All values must be string, otherwise an error will be thrown. Use the `convert()` method first to convert non-string columns to string.
1945
+ *
1946
+ * If a column value is `NULL`, it will be replaced by `'Unknown'` in the concatenated result.
1947
+ *
1948
+ * @param columns - An array of column names whose values will be concatenated with labels.
1949
+ * @param newColumn - The name of the new column to create with the concatenated values.
1950
+ * @returns A promise that resolves when the concatenation is complete.
1951
+ * @category Updating Data
1952
+ *
1953
+ * @example
1954
+ * ```ts
1955
+ * // Concatenate multiple string columns into a labeled text field
1956
+ * await table.concatenateRow(
1957
+ * ["summary", "findings", "context", "date", "quote"],
1958
+ * "fullText"
1959
+ * );
1960
+ * // Result in "fullText" will look like:
1961
+ * // summary:
1962
+ * // [value]
1963
+ * //
1964
+ * // findings:
1965
+ * // [value]
1966
+ * //
1967
+ * // context:
1968
+ * // [value]
1969
+ * //
1970
+ * // date:
1971
+ * // [value]
1972
+ * //
1973
+ * // quote:
1974
+ * // [value]
1975
+ * ```
1976
+ *
1977
+ * @example
1978
+ * ```ts
1979
+ * // Convert numeric columns to strings first, then concatenate
1980
+ * // NULL values will appear as 'Unknown'
1981
+ * await table.convert({ age: "string", salary: "string" });
1982
+ * await table.concatenateRow(["name", "age", "salary"], "profile");
1983
+ * ```
1984
+ */
1985
+ concatenateRow(columns: string[], newColumn: string): Promise<void>;
1986
+ /**
1987
+ * Unnests (expands) rows by splitting a column's string values into multiple rows based on a separator.
1988
+ *
1989
+ * 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.
1990
+ *
1991
+ * @param column - The name of the column containing string values to be split and unnested.
1992
+ * @param separator - The delimiter string used to split the column values.
1993
+ * @returns A promise that resolves when the unnesting is complete.
1994
+ * @category Updating Data
1995
+ *
1996
+ * @example
1997
+ * ```ts
1998
+ * // Unnest 'tags' column separated by commas
1999
+ * // Before: [{ id: 1, tags: "red,blue,green" }]
2000
+ * // After: [{ id: 1, tags: "red" }, { id: 1, tags: "blue" }, { id: 1, tags: "green" }]
2001
+ * await table.unnest("tags", ",");
2002
+ * ```
2003
+ *
2004
+ * @example
2005
+ * ```ts
2006
+ * // Unnest 'neighborhoods' column separated by " / "
2007
+ * // Before: [{ city: "Montreal", neighborhoods: "Old Montreal / Chinatown / Griffintown" }]
2008
+ * // After: [{ city: "Montreal", neighborhoods: "Old Montreal" },
2009
+ * // { city: "Montreal", neighborhoods: "Chinatown" },
2010
+ * // { city: "Montreal", neighborhoods: "Griffintown" }]
2011
+ * await table.unnest("neighborhoods", " / ");
2012
+ * ```
2013
+ */
2014
+ unnest(column: string, separator: string): Promise<void>;
2015
+ /**
2016
+ * Repeats rows based on the values in a column.
2017
+ *
2018
+ * 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.
2019
+ *
2020
+ * @param column - The name of the column containing the number of times each row should be repeated.
2021
+ * @param options - An optional object with configuration options:
2022
+ * @param options.index - The name of a new column to store the index of the repeated row (starting at 0).
2023
+ * @category Updating Data
2024
+ *
2025
+ * @example
2026
+ * ```ts
2027
+ * // Before: [{ id: 1, count: 2, category: "A" }, { id: 2, count: 3, category: "B" }]
2028
+ * await table.repeatRows("count");
2029
+ * // After: [{ id: 1, count: 2, category: "A" }, { id: 1, count: 2, category: "A" },
2030
+ * // { id: 2, count: 3, category: "B" }, { id: 2, count: 3, category: "B" }, { id: 2, count: 3, category: "B" }]
2031
+ * ```
2032
+ *
2033
+ * @example
2034
+ * ```ts
2035
+ * // With an index column
2036
+ * await table.repeatRows("count", { index: "copyId" });
2037
+ * // After: [{ id: 1, count: 2, category: "A", copyId: 0 }, { id: 1, count: 2, category: "A", copyId: 1 },
2038
+ * // { id: 2, count: 3, category: "B", copyId: 0 }, { id: 2, count: 3, category: "B", copyId: 1 }, { id: 2, count: 3, category: "B", copyId: 2 }]
2039
+ * ```
2040
+ */
2041
+ repeatRows(column: string, options?: {
2042
+ index?: string;
2043
+ }): Promise<void>;
2044
+ /**
2045
+ * Nests (collapses) rows by aggregating a column's values into a single string per group, separated by a delimiter.
2046
+ *
2047
+ * 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.
2048
+ *
2049
+ * @param column - The name of the column whose values will be aggregated and concatenated.
2050
+ * @param separator - The delimiter string used to join the column values.
2051
+ * @param categories - The column name or an array of column names to group by.
2052
+ * @returns A promise that resolves when the nesting is complete.
2053
+ * @category Updating Data
2054
+ *
2055
+ * @example
2056
+ * ```ts
2057
+ * // Nest 'neighborhoods' column separated by " / " for each city
2058
+ * // Before: [{ city: "Montreal", neighborhoods: "Old Montreal" },
2059
+ * // { city: "Montreal", neighborhoods: "Chinatown" },
2060
+ * // { city: "Montreal", neighborhoods: "Griffintown" }]
2061
+ * // After: [{ city: "Montreal", neighborhoods: "Old Montreal / Chinatown / Griffintown" }]
2062
+ * await table.nest("neighborhoods", " / ", "city");
2063
+ * ```
2064
+ *
2065
+ * @example
2066
+ * ```ts
2067
+ * // Nest with multiple category columns
2068
+ * // Before: [{ country: "Canada", city: "Montreal", tags: "red" },
2069
+ * // { country: "Canada", city: "Montreal", tags: "blue" }]
2070
+ * // After: [{ country: "Canada", city: "Montreal", tags: "red,blue" }]
2071
+ * await table.nest("tags", ",", ["country", "city"]);
2072
+ * ```
2073
+ */
2074
+ nest(column: string, separator: string, categories: string | string[]): Promise<void>;
2075
+ /**
2076
+ * Rounds numeric values in specified columns.
2077
+ *
2078
+ * @param columns - The column name or an array of column names containing numeric values to be rounded.
2079
+ * @param options - An optional object with configuration options:
2080
+ * @param options.decimals - The number of decimal places to round to. Defaults to `0` (rounds to the nearest integer).
2081
+ * @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"`.
2082
+ * @returns A promise that resolves when the numeric values have been rounded.
2083
+ * @category Updating Data
2084
+ *
2085
+ * @example
2086
+ * ```ts
2087
+ * // Round 'column1' values to the nearest integer
2088
+ * await table.round("column1");
2089
+ * ```
2090
+ *
2091
+ * @example
2092
+ * ```ts
2093
+ * // Round 'column1' values to 2 decimal places
2094
+ * await table.round("column1", { decimals: 2 });
2095
+ * ```
2096
+ *
2097
+ * @example
2098
+ * ```ts
2099
+ * // Round 'column1' values down to the nearest integer (floor)
2100
+ * await table.round("column1", { method: "floor" });
2101
+ * ```
2102
+ *
2103
+ * @example
2104
+ * ```ts
2105
+ * // Round 'columnA' and 'columnB' values to 1 decimal place using ceiling method
2106
+ * await table.round(["columnA", "columnB"], { decimals: 1, method: "ceiling" });
2107
+ * ```
2108
+ *
2109
+ * @example
2110
+ * ```ts
2111
+ * // Round 'column1' values to 2 decimal places using the shorthand
2112
+ * await table.round("column1", 2);
2113
+ * ```
2114
+ */
2115
+ round(columns: string | string[], options?: number | {
2116
+ decimals?: number;
2117
+ method?: "round" | "ceiling" | "floor";
2118
+ }): Promise<void>;
2119
+ /**
2120
+ * Updates values in a specified column using a SQL expression.
2121
+ *
2122
+ * @param column - The name of the column to be updated.
2123
+ * @param definition - The SQL expression used to set the new values in the column (e.g., `"column1 * 2"`, `"UPPER(column_name)"`).
2124
+ * @returns A promise that resolves when the column has been updated.
2125
+ * @category Updating Data
2126
+ *
2127
+ * @example
2128
+ * ```ts
2129
+ * // Update 'column1' with the left 5 characters of 'column2'
2130
+ * await table.updateColumn("column1", `LEFT(column2, 5)`);
2131
+ * ```
2132
+ *
2133
+ * @example
2134
+ * ```ts
2135
+ * // Double the values in 'price' column
2136
+ * await table.updateColumn("price", `price * 2`);
2137
+ * ```
2138
+ *
2139
+ * @example
2140
+ * ```ts
2141
+ * // Set 'status' to 'active' where 'isActive' is true
2142
+ * await table.updateColumn("status", `CASE WHEN isActive THEN 'active' ELSE 'inactive' END`);
2143
+ * ```
2144
+ */
2145
+ updateColumn(column: string, definition: string): Promise<void>;
2146
+ /**
2147
+ * Assigns ranks to rows in a new column based on the values of a specified column.
2148
+ *
2149
+ * @param values - The column containing the values to be used for ranking.
2150
+ * @param newColumn - The name of the new column where the ranks will be stored.
2151
+ * @param options - An optional object with configuration options:
2152
+ * @param options.order - The order of values for ranking: `"asc"` for ascending (default) or `"desc"` for descending.
2153
+ * @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.
2154
+ * @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).
2155
+ * @returns A promise that resolves when the ranks have been assigned.
2156
+ * @category Analyzing Data
2157
+ *
2158
+ * @example
2159
+ * ```ts
2160
+ * // Compute ranks in a new 'rank' column based on 'score' values (ascending)
2161
+ * await table.ranks("score", "rank");
2162
+ * ```
2163
+ *
2164
+ * @example
2165
+ * ```ts
2166
+ * // Compute ranks in a new 'descRank' column based on 'score' values (descending)
2167
+ * await table.ranks("score", "descRank", { order: "desc" });
2168
+ * ```
2169
+ *
2170
+ * @example
2171
+ * ```ts
2172
+ * // Compute ranks within 'department' categories, based on 'salary' values, without gaps
2173
+ * await table.ranks("salary", "salaryRank", { categories: "department", noGaps: true });
2174
+ * ```
2175
+ *
2176
+ * @example
2177
+ * ```ts
2178
+ * // Compute ranks within multiple categories ('department' and 'city')
2179
+ * await table.ranks("sales", "salesRank", { categories: ["department", "city"] });
2180
+ * ```
2181
+ */
2182
+ ranks(values: string, newColumn: string, options?: {
2183
+ order?: "asc" | "desc";
2184
+ categories?: string | string[];
2185
+ noGaps?: boolean;
2186
+ }): Promise<void>;
2187
+ /**
2188
+ * Assigns quantiles to rows in a new column based on specified column values.
2189
+ *
2190
+ * @param values - The column containing values from which quantiles will be assigned.
2191
+ * @param nbQuantiles - The number of quantiles to divide the data into (e.g., `4` for quartiles, `10` for deciles).
2192
+ * @param newColumn - The name of the new column where the assigned quantiles will be stored.
2193
+ * @param options - An optional object with configuration options:
2194
+ * @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.
2195
+ * @returns A promise that resolves when the quantiles have been assigned.
2196
+ * @category Analyzing Data
2197
+ *
2198
+ * @example
2199
+ * ```ts
2200
+ * // Assigns a quantile from 1 to 10 for each row in a new 'quantiles' column, based on 'column1' values.
2201
+ * await table.quantiles("column1", 10, "quantiles");
2202
+ * ```
2203
+ *
2204
+ * @example
2205
+ * ```ts
2206
+ * // Assigns quantiles within 'column2' categories, based on 'column1' values.
2207
+ * await table.quantiles("column1", 10, "quantiles", { categories: "column2" });
2208
+ * ```
2209
+ *
2210
+ * @example
2211
+ * ```ts
2212
+ * // Assigns quartiles (4 quantiles) to 'sales' data, storing results in 'salesQuartile'
2213
+ * await table.quantiles("sales", 4, "salesQuartile");
2214
+ * ```
2215
+ */
2216
+ quantiles(values: string, nbQuantiles: number, newColumn: string, options?: {
2217
+ categories?: string | string[];
2218
+ }): Promise<void>;
2219
+ /**
2220
+ * Assigns bins for specified column values based on an interval size.
2221
+ *
2222
+ * @param values - The column containing values from which bins will be computed.
2223
+ * @param interval - The interval size for binning the values.
2224
+ * @param newColumn - The name of the new column where the bins will be stored.
2225
+ * @param options - An optional object with configuration options:
2226
+ * @param options.startValue - The starting value for binning. Defaults to the minimum value in the specified column.
2227
+ * @returns A promise that resolves when the bins have been assigned.
2228
+ * @category Analyzing Data
2229
+ *
2230
+ * @example
2231
+ * ```ts
2232
+ * // Assigns a bin for each row in a new 'bins' column based on 'column1' values, with an interval of 10.
2233
+ * // If the minimum value in 'column1' is 5, the bins will follow this pattern: "[5-14]", "[15-24]", etc.
2234
+ * await table.bins("column1", 10, "bins");
2235
+ * ```
2236
+ *
2237
+ * @example
2238
+ * ```ts
2239
+ * // Assigns bins starting at a specific value (0) with an interval of 10.
2240
+ * // The bins will follow this pattern: "[0-9]", "[10-19]", "[20-29]", etc.
2241
+ * await table.bins("column1", 10, "bins", { startValue: 0 });
2242
+ * ```
2243
+ */
2244
+ bins(values: string, interval: number, newColumn: string, options?: {
2245
+ startValue?: number;
2246
+ }): Promise<void>;
2247
+ /**
2248
+ * Computes proportions horizontally across specified columns for each row.
2249
+ *
2250
+ * For example, given a table showing counts of men, women, and non-binary individuals per year:
2251
+ *
2252
+ * | Year | Men | Women | NonBinary |
2253
+ * | :--- | :-- | :---- | :-------- |
2254
+ * | 2021 | 564 | 685 | 145 |
2255
+ * | 2022 | 354 | 278 | 56 |
2256
+ * | 2023 | 856 | 321 | 221 |
2257
+ *
2258
+ * This method computes the proportion of men, women, and non-binary individuals on each row, adding new columns for these proportions.
2259
+ *
2260
+ * @example
2261
+ * ```ts
2262
+ * // Compute horizontal proportions for 'Men', 'Women', and 'NonBinary' columns, rounded to 2 decimal places
2263
+ * await table.proportionsHorizontal(["Men", "Women", "NonBinary"], { decimals: 2 });
2264
+ * ```
2265
+ *
2266
+ * The table will then look like this:
2267
+ *
2268
+ * | Year | Men | Women | NonBinary | MenPerc | WomenPerc | NonBinaryPerc |
2269
+ * | :--- | :-- | :---- | :-------- | :------ | :-------- | :------------ |
2270
+ * | 2021 | 564 | 685 | 145 | 0.4 | 0.49 | 0.10 |
2271
+ * | 2022 | 354 | 278 | 56 | 0.51 | 0.4 | 0.08 |
2272
+ * | 2023 | 856 | 321 | 221 | 0.61 | 0.23 | 0.16 |
2273
+ *
2274
+ * By default, the new columns will be named with a suffix of `"Perc"`. You can customize this suffix using the `suffix` option.
2275
+ *
2276
+ * @example
2277
+ * ```ts
2278
+ * // Compute horizontal proportions with a custom suffix "Prop"
2279
+ * await table.proportionsHorizontal(["Men", "Women", "NonBinary"], { suffix: "Prop", decimals: 2 });
2280
+ * ```
2281
+ *
2282
+ * The table will then look like this:
2283
+ *
2284
+ * | Year | Men | Women | NonBinary | MenProp | WomenProp | NonBinaryProp |
2285
+ * | :--- | :-- | :---- | :-------- | :------ | :-------- | :------------ |
2286
+ * | 2021 | 564 | 685 | 145 | 0.4 | 0.49 | 0.10 |
2287
+ * | 2022 | 354 | 278 | 56 | 0.51 | 0.4 | 0.08 |
2288
+ * | 2023 | 856 | 321 | 221 | 0.61 | 0.23 | 0.16 |
2289
+ *
2290
+ * @param columns - An array of column names for which proportions will be computed on each row.
2291
+ * @param options - An optional object with configuration options:
2292
+ * @param options.suffix - A string suffix to append to the names of the new columns storing the computed proportions. Defaults to `"Perc"`.
2293
+ * @param options.decimals - The number of decimal places to round the computed proportions. Defaults to `undefined` (no rounding).
2294
+ * @returns A promise that resolves when the horizontal proportions have been computed.
2295
+ * @category Analyzing Data
2296
+ */
2297
+ proportionsHorizontal(columns: string[], options?: {
2298
+ suffix?: string;
2299
+ decimals?: number;
2300
+ }): Promise<void>;
2301
+ /**
2302
+ * Computes proportions vertically over a column's values, relative to the sum of all values in that column (or within specified categories).
2303
+ *
2304
+ * @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.
2305
+ * @param newColumn - The name of the new column where the proportions will be stored.
2306
+ * @param options - An optional object with configuration options:
2307
+ * @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.
2308
+ * @param options.decimals - The number of decimal places to round the computed proportions. Defaults to `undefined` (no rounding).
2309
+ * @returns A promise that resolves when the vertical proportions have been computed.
2310
+ * @category Analyzing Data
2311
+ *
2312
+ * @example
2313
+ * ```ts
2314
+ * // Add a new column 'perc' with each 'column1' value divided by the sum of all 'column1' values
2315
+ * await table.proportionsVertical("column1", "perc");
2316
+ * ```
2317
+ *
2318
+ * @example
2319
+ * ```ts
2320
+ * // Compute proportions for 'column1' within 'column2' categories, rounded to two decimal places
2321
+ * await table.proportionsVertical("column1", "perc", { categories: "column2", decimals: 2 });
2322
+ * ```
2323
+ *
2324
+ * @example
2325
+ * ```ts
2326
+ * // Compute proportions for 'sales' within 'region' and 'product_type' categories
2327
+ * await table.proportionsVertical("sales", "sales_proportion", { categories: ["region", "product_type"] });
2328
+ * ```
2329
+ */
2330
+ proportionsVertical(column: string, newColumn: string, options?: {
2331
+ categories?: string | string[];
2332
+ decimals?: number;
2333
+ }): Promise<void>;
2334
+ /**
2335
+ * Creates a summary table based on specified values, categories, and summary operations.
2336
+ * This method allows you to aggregate data, calculate statistics (e.g., count, mean, sum), and group results by categorical columns.
2337
+ *
2338
+ * @param options - An object with configuration options for summarization:
2339
+ * @param options.values - The column name or an array of column names whose values will be summarized. If omitted, all columns will be summarized.
2340
+ * @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.
2341
+ * @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"`.
2342
+ * @param options.decimals - The number of decimal places to round the summarized values. Defaults to `undefined` (no rounding).
2343
+ * @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`.
2344
+ * @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.
2345
+ * @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`.
2346
+ * @returns A promise that resolves to a table instance containing the summarized data (either the modified current table or a new table).
2347
+ * @category Analyzing Data
2348
+ *
2349
+ * @example
2350
+ * ```ts
2351
+ * // Summarize all columns with all available summary operations, overwriting the current table
2352
+ * const columns = await table.getColumns();
2353
+ * await table.summarize({ values: columns });
2354
+ * ```
2355
+ *
2356
+ * @example
2357
+ * ```ts
2358
+ * // Summarize all columns and store the results in a new table with a generated name
2359
+ * const columns = await table.getColumns();
2360
+ * const summaryTable = await table.summarize({ values: columns, outputTable: true });
2361
+ * ```
2362
+ *
2363
+ * @example
2364
+ * ```ts
2365
+ * // Summarize all columns and store the results in a new table named 'mySummary'
2366
+ * const columns = await table.getColumns();
2367
+ * const mySummaryTable = await table.summarize({ values: columns, outputTable: "mySummary" });
2368
+ * ```
2369
+ *
2370
+ * @example
2371
+ * ```ts
2372
+ * // Summarize a single column ('sales') with all available summary operations
2373
+ * await table.summarize({ values: "sales" });
2374
+ * ```
2375
+ *
2376
+ * @example
2377
+ * ```ts
2378
+ * // Summarize multiple columns ('sales' and 'profit') with all available summary operations
2379
+ * await table.summarize({ values: ["sales", "profit"] });
2380
+ * ```
2381
+ *
2382
+ * @example
2383
+ * ```ts
2384
+ * // Summarize 'sales' by 'region' (single category)
2385
+ * await table.summarize({ values: "sales", categories: "region" });
2386
+ * ```
2387
+ *
2388
+ * @example
2389
+ * ```ts
2390
+ * // Summarize 'sales' by 'region' and 'product_type' (multiple categories)
2391
+ * await table.summarize({ values: "sales", categories: ["region", "product_type"] });
2392
+ * ```
2393
+ *
2394
+ * @example
2395
+ * ```ts
2396
+ * // Summarize 'sales' by 'region' with a specific summary operation (mean)
2397
+ * await table.summarize({ values: "sales", categories: "region", summaries: "mean" });
2398
+ * ```
2399
+ *
2400
+ * @example
2401
+ * ```ts
2402
+ * // Summarize 'sales' by 'region' with specific summary operations (mean and sum)
2403
+ * await table.summarize({ values: "sales", categories: "region", summaries: ["mean", "sum"] });
2404
+ * ```
2405
+ *
2406
+ * @example
2407
+ * ```ts
2408
+ * // Summarize 'sales' by 'region' with custom named summary operations
2409
+ * await table.summarize({ values: "sales", categories: "region", summaries: { averageSales: "mean", totalSales: "sum" } });
2410
+ * ```
2411
+ *
2412
+ * @example
2413
+ * ```ts
2414
+ * // Summarize 'price' and 'cost', rounding aggregated values to 2 decimal places
2415
+ * await table.summarize({ values: ["price", "cost"], decimals: 2 });
2416
+ * ```
2417
+ *
2418
+ * @example
2419
+ * ```ts
2420
+ * // Summarize 'timestamp_column' by converting to milliseconds first
2421
+ * await table.summarize({ values: "timestamp_column", toMs: true, summaries: "mean" });
2422
+ * ```
2423
+ *
2424
+ * @example
2425
+ * ```ts
2426
+ * // Summarize a single column 'value_column' without the default 'value' column in the output
2427
+ * await table.summarize({ values: "value_column", noColumnValue: true });
2428
+ * ```
2429
+ */
2430
+ summarize(options?: {
2431
+ values?: string | string[];
2432
+ categories?: string | string[];
2433
+ summaries?: ("count" | "countUnique" | "countNull" | "min" | "max" | "mean" | "median" | "sum" | "skew" | "stdDev" | "var") | ("count" | "countUnique" | "countNull" | "min" | "max" | "mean" | "median" | "sum" | "skew" | "stdDev" | "var")[] | {
2434
+ [key: string]: "count" | "countUnique" | "countNull" | "min" | "max" | "mean" | "median" | "sum" | "skew" | "stdDev" | "var";
2435
+ };
2436
+ decimals?: number;
2437
+ outputTable?: string | boolean;
2438
+ toMs?: boolean;
2439
+ noColumnValue?: boolean;
2440
+ }): Promise<this>;
2441
+ /**
2442
+ * Computes the cumulative sum of values in a column. For this method to work properly, ensure your data is sorted first.
2443
+ *
2444
+ * @param column - The name of the column storing the values to be accumulated.
2445
+ * @param newColumn - The name of the new column in which the computed cumulative values will be stored.
2446
+ * @param options - An optional object with configuration options:
2447
+ * @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.
2448
+ * @returns A promise that resolves when the cumulative sum has been computed.
2449
+ * @category Analyzing Data
2450
+ *
2451
+ * @example
2452
+ * ```ts
2453
+ * // Compute the cumulative sum of 'sales' in a new 'cumulativeSales' column
2454
+ * // Ensure the table is sorted by a relevant column (e.g., date) before calling this method.
2455
+ * await table.accumulate("sales", "cumulativeSales");
2456
+ * ```
2457
+ *
2458
+ * @example
2459
+ * ```ts
2460
+ * // Compute the cumulative sum of 'orders' within 'customer_id' categories
2461
+ * // Ensure the table is sorted by 'customer_id' and then by a relevant order column (e.g., order_date).
2462
+ * await table.accumulate("orders", "cumulativeOrders", { categories: "customer_id" });
2463
+ * ```
2464
+ *
2465
+ * @example
2466
+ * ```ts
2467
+ * // Compute the cumulative sum of 'revenue' within 'region' and 'product_category' categories
2468
+ * await table.accumulate("revenue", "cumulativeRevenue", { categories: ["region", "product_category"] });
2469
+ * ```
2470
+ */
2471
+ accumulate(column: string, newColumn: string, options?: {
2472
+ categories?: string | string[];
2473
+ }): Promise<void>;
2474
+ /**
2475
+ * Computes rolling aggregations (e.g., rolling average, min, max) over a specified column.
2476
+ * For rows without enough preceding or following rows to form a complete window, `NULL` will be returned.
2477
+ * For this method to work properly, ensure your data is sorted by the relevant column(s) first.
2478
+ *
2479
+ * @param column - The name of the column storing the values to be aggregated.
2480
+ * @param newColumn - The name of the new column in which the computed rolling values will be stored.
2481
+ * @param summary - The aggregation function to apply: `"min"`, `"max"`, `"mean"`, `"median"`, or `"sum"`.
2482
+ * @param preceding - The number of preceding rows to include in the rolling window.
2483
+ * @param following - The number of following rows to include in the rolling window.
2484
+ * @param options - An optional object with configuration options:
2485
+ * @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.
2486
+ * @param options.decimals - The number of decimal places to round the aggregated values. Defaults to `undefined` (no rounding).
2487
+ * @returns A promise that resolves when the rolling aggregation is complete.
2488
+ * @category Analyzing Data
2489
+ *
2490
+ * @example
2491
+ * ```ts
2492
+ * // Compute a 7-day rolling average of 'sales' with 3 preceding and 3 following rows
2493
+ * // (total window size of 7: 3 preceding + current + 3 following)
2494
+ * await table.rolling("sales", "rollingAvgSales", "mean", 3, 3);
2495
+ * ```
2496
+ *
2497
+ * @example
2498
+ * ```ts
2499
+ * // Compute a rolling sum of 'transactions' within 'customer_id' categories
2500
+ * await table.rolling("transactions", "rollingSumTransactions", "sum", 5, 0, { categories: "customer_id" });
2501
+ * ```
2502
+ *
2503
+ * @example
2504
+ * ```ts
2505
+ * // Compute a rolling maximum of 'temperature' rounded to 1 decimal place
2506
+ * await table.rolling("temperature", "rollingMaxTemp", "max", 2, 2, { decimals: 1 });
2507
+ * ```
2508
+ */
2509
+ rolling(column: string, newColumn: string, summary: "min" | "max" | "mean" | "median" | "sum", preceding: number, following: number, options?: {
2510
+ categories?: string | string[];
2511
+ decimals?: number;
2512
+ }): Promise<void>;
2513
+ /**
2514
+ * Calculates correlations between columns. If no `x` and `y` columns are specified, the method computes the correlations for all numeric column combinations.
2515
+ * Note that correlation is symmetrical: the correlation of `x` with `y` is the same as `y` with `x`.
2516
+ *
2517
+ * @param options - An optional object with configuration options:
2518
+ * @param options.x - The name of the column for the x-values. If omitted, correlations will be computed for all numeric columns.
2519
+ * @param options.y - The name of the column for the y-values. If omitted, correlations will be computed for all numeric columns.
2520
+ * @param options.categories - The column name or an array of column names that define categories. Correlation calculations will be performed independently for each category.
2521
+ * @param options.decimals - The number of decimal places to round the correlation values. Defaults to `undefined` (no rounding).
2522
+ * @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`.
2523
+ * @returns A promise that resolves to a table instance containing the correlation results (either the modified current table or a new table).
2524
+ * @category Analyzing Data
2525
+ *
2526
+ * @example
2527
+ * ```ts
2528
+ * // Compute correlations between all numeric columns, overwriting the current table
2529
+ * await table.correlations();
2530
+ * ```
2531
+ *
2532
+ * @example
2533
+ * ```ts
2534
+ * // Compute correlations between 'column1' and all other numeric columns
2535
+ * await table.correlations({ x: "column1" });
2536
+ * ```
2537
+ *
2538
+ * @example
2539
+ * ```ts
2540
+ * // Compute the correlation between 'column1' and 'column2'
2541
+ * await table.correlations({ x: "column1", y: "column2" });
2542
+ * ```
2543
+ *
2544
+ * @example
2545
+ * ```ts
2546
+ * // Compute correlations within 'categoryColumn' and store results in a new table
2547
+ * const correlationTable = await table.correlations({ categories: "categoryColumn", outputTable: true });
2548
+ * ```
2549
+ *
2550
+ * @example
2551
+ * ```ts
2552
+ * // Compute correlations, rounded to 2 decimal places
2553
+ * await table.correlations({ decimals: 2 });
2554
+ * ```
2555
+ */
2556
+ correlations(options?: {
2557
+ x?: string;
2558
+ y?: string;
2559
+ categories?: string | string[];
2560
+ decimals?: number;
2561
+ outputTable?: string | boolean;
2562
+ }): Promise<this>;
2563
+ /**
2564
+ * Performs linear regression analysis. The results include the slope, the y-intercept, and the R-squared value.
2565
+ * If no `x` and `y` columns are specified, the method computes linear regression analysis for all numeric column permutations.
2566
+ * Note that linear regression analysis is asymmetrical: the linear regression of `x` over `y` is not the same as `y` over `x`.
2567
+ *
2568
+ * @param options - An optional object with configuration options:
2569
+ * @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.
2570
+ * @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.
2571
+ * @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.
2572
+ * @param options.decimals - The number of decimal places to round the regression values (slope, intercept, r-squared). Defaults to `undefined` (no rounding).
2573
+ * @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`.
2574
+ * @returns A promise that resolves to a table instance containing the linear regression results (either the modified current table or a new table).
2575
+ * @category Analyzing Data
2576
+ *
2577
+ * @example
2578
+ * ```ts
2579
+ * // Compute all linear regressions between all numeric columns, overwriting the current table
2580
+ * await table.linearRegressions();
2581
+ * ```
2582
+ *
2583
+ * @example
2584
+ * ```ts
2585
+ * // Compute linear regressions with 'column1' as the independent variable and all other numeric columns as dependent variables
2586
+ * await table.linearRegressions({ x: "column1" });
2587
+ * ```
2588
+ *
2589
+ * @example
2590
+ * ```ts
2591
+ * // Compute the linear regression of 'sales' (y) over 'advertising' (x)
2592
+ * await table.linearRegressions({ x: "advertising", y: "sales" });
2593
+ * ```
2594
+ *
2595
+ * @example
2596
+ * ```ts
2597
+ * // Compute linear regressions within 'region' categories and store results in a new table
2598
+ * const regressionTable = await table.linearRegressions({ categories: "region", outputTable: true });
2599
+ * ```
2600
+ *
2601
+ * @example
2602
+ * ```ts
2603
+ * // Compute linear regressions, rounded to 3 decimal places
2604
+ * await table.linearRegressions({ decimals: 3 });
2605
+ * ```
2606
+ */
2607
+ linearRegressions(options?: {
2608
+ x?: string;
2609
+ y?: string;
2610
+ categories?: string | string[];
2611
+ decimals?: number;
2612
+ outputTable?: string | boolean;
2613
+ }): Promise<this>;
2614
+ /**
2615
+ * Identifies outliers in a specified column using the Interquartile Range (IQR) method.
2616
+ *
2617
+ * @param column - The name of the column in which outliers will be identified.
2618
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for outlier, `FALSE` otherwise) will be stored.
2619
+ * @param options - An optional object with configuration options:
2620
+ * @param options.categories - The column name or an array of column names that define categories. Outlier detection will be performed independently within each category.
2621
+ * @returns A promise that resolves when the outliers have been identified.
2622
+ * @category Analyzing Data
2623
+ *
2624
+ * @example
2625
+ * ```ts
2626
+ * // Look for outliers in the 'age' column and store results in a new 'isOutlier' column
2627
+ * await table.outliersIQR("age", "isOutlier");
2628
+ * ```
2629
+ *
2630
+ * @example
2631
+ * ```ts
2632
+ * // Look for outliers in 'salary' within 'gender' categories
2633
+ * await table.outliersIQR("salary", "salaryOutlier", { categories: "gender" });
2634
+ * ```
2635
+ */
2636
+ outliersIQR(column: string, newColumn: string, options?: {
2637
+ categories?: string | string[];
2638
+ }): Promise<void>;
2639
+ /**
2640
+ * Computes the Z-score for values in a specified column.
2641
+ *
2642
+ * @param column - The name of the column for which Z-scores will be calculated.
2643
+ * @param newColumn - The name of the new column where the computed Z-scores will be stored.
2644
+ * @param options - An optional object with configuration options:
2645
+ * @param options.categories - The column name or an array of column names that define categories. Z-scores will be calculated independently within each category.
2646
+ * @param options.decimals - The number of decimal places to round the Z-score values. Defaults to `undefined` (no rounding).
2647
+ * @returns A promise that resolves when the Z-scores have been computed.
2648
+ * @category Analyzing Data
2649
+ *
2650
+ * @example
2651
+ * ```ts
2652
+ * // Calculate the Z-score for 'age' values and store results in a new 'ageZScore' column
2653
+ * await table.zScore("age", "ageZScore");
2654
+ * ```
2655
+ *
2656
+ * @example
2657
+ * ```ts
2658
+ * // Calculate Z-scores for 'salary' within 'department' categories
2659
+ * await table.zScore("salary", "salaryZScore", { categories: "department" });
2660
+ * ```
2661
+ *
2662
+ * @example
2663
+ * ```ts
2664
+ * // Calculate Z-scores for 'score', rounded to 2 decimal places
2665
+ * await table.zScore("score", "scoreZScore", { decimals: 2 });
2666
+ * ```
2667
+ */
2668
+ zScore(column: string, newColumn: string, options?: {
2669
+ categories?: string | string[];
2670
+ decimals?: number;
2671
+ }): Promise<void>;
2672
+ /**
2673
+ * Normalizes the values in a column using min-max normalization.
2674
+ *
2675
+ * @param column - The name of the column in which values will be normalized.
2676
+ * @param newColumn - The name of the new column where normalized values will be stored.
2677
+ * @param options - An optional object with configuration options:
2678
+ * @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.
2679
+ * @param options.decimals - The number of decimal places to round the normalized values. Defaults to `undefined` (no rounding).
2680
+ * @returns A promise that resolves when the values have been normalized.
2681
+ * @category Analyzing Data
2682
+ *
2683
+ * @example
2684
+ * ```ts
2685
+ * // Normalize the values in 'column1' and store them in a new 'normalizedColumn1' column
2686
+ * await table.normalize("column1", "normalizedColumn1");
2687
+ * ```
2688
+ *
2689
+ * @example
2690
+ * ```ts
2691
+ * // Normalize 'value' within 'group' categories
2692
+ * await table.normalize("value", "normalizedValue", { categories: "group" });
2693
+ * ```
2694
+ *
2695
+ * @example
2696
+ * ```ts
2697
+ * // Normalize 'data' values, rounded to 2 decimal places
2698
+ * await table.normalize("data", "normalizedData", { decimals: 2 });
2699
+ * ```
2700
+ */
2701
+ normalize(column: string, newColumn: string, options?: {
2702
+ categories?: string | string[];
2703
+ decimals?: number;
2704
+ }): Promise<void>;
2705
+ /**
2706
+ * 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.
2707
+ * This method offers high flexibility for data manipulation but can be slow for large tables as it involves transferring data between DuckDB and JavaScript.
2708
+ * This method does not work with tables containing geometries.
2709
+ *
2710
+ * @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).
2711
+ * @returns A promise that resolves when the data has been updated.
2712
+ * @category Updating Data
2713
+ *
2714
+ * @example
2715
+ * ```ts
2716
+ * // Add 1 to values in 'column1'. If values are not numbers, they are replaced by null.
2717
+ * await table.updateWithJS((rows) => {
2718
+ * const modifiedRows = rows.map(d => ({
2719
+ * ...d,
2720
+ * column1: typeof d.column1 === "number" ? d.column1 + 1 : null,
2721
+ * }));
2722
+ * return modifiedRows;
2723
+ * });
2724
+ * ```
2725
+ *
2726
+ * @example
2727
+ * ```ts
2728
+ * // Convert a date string to a Date object in 'dateColumn'
2729
+ * await table.updateWithJS((rows) => {
2730
+ * const modifiedRows = rows.map(d => ({
2731
+ * ...d,
2732
+ * dateColumn: typeof d.dateColumn === "string" ? new Date(d.dateColumn) : d.dateColumn,
2733
+ * }));
2734
+ * return modifiedRows;
2735
+ * });
2736
+ * ```
2737
+ */
2738
+ updateWithJS(dataModifier: ((rows: {
2739
+ [key: string]: number | string | Date | boolean | null;
2740
+ }[]) => Promise<{
2741
+ [key: string]: number | string | Date | boolean | null;
2742
+ }[]>) | ((rows: {
2743
+ [key: string]: number | string | Date | boolean | null;
2744
+ }[]) => {
2745
+ [key: string]: number | string | Date | boolean | null;
2746
+ }[])): Promise<void>;
2747
+ /**
2748
+ * Returns the schema of the table, including column names and their data types.
2749
+ *
2750
+ * @returns A promise that resolves to an array of objects, where each object represents a column with its name and data type.
2751
+ * @category Getting Data
2752
+ *
2753
+ * @example
2754
+ * ```ts
2755
+ * // Get the schema of the table
2756
+ * const schema = await table.getSchema();
2757
+ * console.table(schema); // Log the schema in a readable table format
2758
+ * ```
2759
+ */
2760
+ getSchema(): Promise<{
2761
+ [key: string]: string | null;
2762
+ }[]>;
2763
+ /**
2764
+ * Returns descriptive statistical information about the columns, including details like data types, number of null values, and distinct values.
2765
+ *
2766
+ * @returns A promise that resolves to an array of objects, each representing descriptive statistics for a column.
2767
+ * @category Getting Data
2768
+ *
2769
+ * @example
2770
+ * ```ts
2771
+ * // Get and log descriptive information about the table's columns
2772
+ * const description = await table.getDescription();
2773
+ * console.table(description);
2774
+ * ```
2775
+ */
2776
+ getDescription(): Promise<{
2777
+ [key: string]: unknown;
2778
+ }[]>;
2779
+ /**
2780
+ * Returns the name of the table.
2781
+ *
2782
+ * @returns The name of the table as a string.
2783
+ * @category Getting Data
2784
+ *
2785
+ * @example
2786
+ * ```ts
2787
+ * // Get the table name
2788
+ * const tableName = table.getTableName();
2789
+ * console.log(tableName); // e.g., "employees"
2790
+ * ```
2791
+ */
2792
+ getTableName(): string;
2793
+ /**
2794
+ * Returns a list of all column names in the table.
2795
+ *
2796
+ * @returns A promise that resolves to an array of strings, where each string is a column name.
2797
+ * @category Getting Data
2798
+ *
2799
+ * @example
2800
+ * ```ts
2801
+ * // Get all column names from the table
2802
+ * const columns = await table.getColumns();
2803
+ * console.log(columns); // e.g., ["id", "name", "age"]
2804
+ * ```
2805
+ */
2806
+ getColumns(): Promise<string[]>;
2807
+ /**
2808
+ * Normalizes string values in a column by:
2809
+ * 1. Stripping accents
2810
+ * 2. Optionally stripping punctuation (default: true)
2811
+ * 3. Converting to lowercase
2812
+ * 4. Normalizing whitespace (multiple spaces/tabs/newlines → single space)
2813
+ * 5. Trimming leading/trailing whitespace
2814
+ *
2815
+ * Produces identical output to `journalism-format`'s `normalizeString()` function
2816
+ * for all common cases including accented Latin characters.
2817
+ *
2818
+ * @param column The column containing the text to normalize
2819
+ * @param newColumn The column to store the normalized results
2820
+ * @param options Configuration options
2821
+ * @param options.stripPunctuation Strip punctuation and underscores (default: true)
2822
+ *
2823
+ * @returns A promise that resolves when the operation is complete
2824
+ *
2825
+ * @example
2826
+ * ```ts
2827
+ * // Normalize text column and store in new column
2828
+ * await table.normalizeString("recipeName", "recipeNameNormalized");
2829
+ * // "Épicerie Parisienne!" → "epicerie parisienne"
2830
+ * ```
2831
+ *
2832
+ * @example
2833
+ * ```ts
2834
+ * // Keep punctuation for emails and URLs
2835
+ * await table.normalizeString("email", "emailNormalized", { stripPunctuation: false });
2836
+ * // "User@Example.com" → "user@example.com"
2837
+ * await table.normalizeString("url", "urlNormalized", { stripPunctuation: false });
2838
+ * // "https://Example.com/path" → "https://example.com/path"
2839
+ * ```
2840
+ *
2841
+ * @category Text Processing
2842
+ */
2843
+ normalizeString(column: string, newColumn: string, options?: {
2844
+ stripPunctuation?: boolean;
2845
+ }): Promise<void>;
2846
+ /**
2847
+ * Returns the number of columns in the table.
2848
+ *
2849
+ * @returns A promise that resolves to a number representing the total count of columns.
2850
+ * @category Getting Data
2851
+ *
2852
+ * @example
2853
+ * ```ts
2854
+ * // Get the number of columns in the table
2855
+ * const nbColumns = await table.getNbColumns();
2856
+ * console.log(nbColumns); // e.g., 3
2857
+ * ```
2858
+ */
2859
+ getNbColumns(): Promise<number>;
2860
+ /**
2861
+ * Returns the total number of characters in a column storing strings.
2862
+ *
2863
+ * @param column - The name of the string column to count characters from.
2864
+ * @returns A promise that resolves to the total number of characters across all rows in the specified column.
2865
+ * @category Getting Data
2866
+ *
2867
+ * @example
2868
+ * ```ts
2869
+ * // Get the total number of characters in the 'name' column
2870
+ * const totalChars = await table.getNbCharacters("name");
2871
+ * console.log(totalChars); // e.g., 523
2872
+ * ```
2873
+ */
2874
+ getNbCharacters(column: string): Promise<number>;
2875
+ /**
2876
+ * Returns the number of rows in the table.
2877
+ *
2878
+ * @param options - An optional object with configuration options:
2879
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
2880
+ * @returns A promise that resolves to a number representing the total count of rows.
2881
+ * @category Getting Data
2882
+ *
2883
+ * @example
2884
+ * ```ts
2885
+ * // Get the number of rows in the table
2886
+ * const nbRows = await table.getNbRows();
2887
+ * console.log(nbRows); // e.g., 100
2888
+ * ```
2889
+ *
2890
+ * @example
2891
+ * ```ts
2892
+ * // Get the number of rows where 'category' is 'Book'
2893
+ * const nbBooks = await table.getNbRows({ conditions: "category = 'Book'" });
2894
+ * console.log(nbBooks);
2895
+ * ```
2896
+ */
2897
+ getNbRows(options?: {
2898
+ conditions?: string;
2899
+ }): Promise<number>;
2900
+ /**
2901
+ * Returns the total number of values in the table (number of columns multiplied by the number of rows).
2902
+ *
2903
+ * @returns A promise that resolves to a number representing the total count of values.
2904
+ * @category Getting Data
2905
+ *
2906
+ * @example
2907
+ * ```ts
2908
+ * // Get the total number of values in the table
2909
+ * const nbValues = await table.getNbValues();
2910
+ * console.log(nbValues); // e.g., 300 (if 3 columns and 100 rows)
2911
+ * ```
2912
+ */
2913
+ getNbValues(): Promise<number>;
2914
+ /**
2915
+ * Returns the data types of all columns in the table.
2916
+ *
2917
+ * @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" }`).
2918
+ * @category Getting Data
2919
+ *
2920
+ * @example
2921
+ * ```ts
2922
+ * // Get the data types of all columns
2923
+ * const dataTypes = await table.getTypes();
2924
+ * console.log(dataTypes);
2925
+ * ```
2926
+ */
2927
+ getTypes(): Promise<{
2928
+ [key: string]: string;
2929
+ }>;
2930
+ /**
2931
+ * Returns all values from a specific column.
2932
+ *
2933
+ * @param column - The name of the column from which to retrieve values.
2934
+ * @returns A promise that resolves to an array containing all values from the specified column.
2935
+ * @category Getting Data
2936
+ *
2937
+ * @example
2938
+ * ```ts
2939
+ * // Get all values from the 'productName' column
2940
+ * const productNames = await table.getValues("productName");
2941
+ * console.log(productNames); // e.g., ["Laptop", "Mouse", "Keyboard"]
2942
+ * ```
2943
+ */
2944
+ getValues(column: string): Promise<(string | number | boolean | Date | null)[]>;
2945
+ /**
2946
+ * Returns the minimum value from a specific column.
2947
+ *
2948
+ * @param column - The name of the column from which to retrieve the minimum value.
2949
+ * @returns A promise that resolves to the minimum value of the specified column.
2950
+ * @category Getting Data
2951
+ *
2952
+ * @example
2953
+ * ```ts
2954
+ * // Get the minimum value from the 'price' column
2955
+ * const minPrice = await table.getMin("price");
2956
+ * console.log(minPrice); // e.g., 10.50
2957
+ * ```
2958
+ */
2959
+ getMin(column: string): Promise<string | number | boolean | Date | null>;
2960
+ /**
2961
+ * Returns the maximum value from a specific column.
2962
+ *
2963
+ * @param column - The name of the column from which to retrieve the maximum value.
2964
+ * @returns A promise that resolves to the maximum value of the specified column.
2965
+ * @category Getting Data
2966
+ *
2967
+ * @example
2968
+ * ```ts
2969
+ * // Get the maximum value from the 'price' column
2970
+ * const maxPrice = await table.getMax("price");
2971
+ * console.log(maxPrice); // e.g., 99.99
2972
+ * ```
2973
+ */
2974
+ getMax(column: string): Promise<string | number | boolean | Date | null>;
2975
+ /**
2976
+ * Returns the extent (minimum and maximum values) of a specific column as an array.
2977
+ *
2978
+ * @param column - The name of the column from which to retrieve the extent.
2979
+ * @returns A promise that resolves to an array `[min, max]` containing the minimum and maximum values of the specified column.
2980
+ * @category Getting Data
2981
+ *
2982
+ * @example
2983
+ * ```ts
2984
+ * // Get the extent of the 'temperature' column
2985
+ * const tempExtent = await table.getExtent("temperature");
2986
+ * console.log(tempExtent); // e.g., [15.2, 30.1]
2987
+ * ```
2988
+ */
2989
+ getExtent(column: string): Promise<[
2990
+ string | number | boolean | Date | null,
2991
+ string | number | boolean | Date | null
2992
+ ]>;
2993
+ /**
2994
+ * Returns the mean (average) value from a specific numeric column.
2995
+ *
2996
+ * @param column - The name of the numeric column from which to retrieve the mean value.
2997
+ * @param options - An optional object with configuration options:
2998
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
2999
+ * @returns A promise that resolves to the mean value of the specified column.
3000
+ * @category Getting Data
3001
+ *
3002
+ * @example
3003
+ * ```ts
3004
+ * // Get the mean of the 'age' column
3005
+ * const meanAge = await table.getMean("age");
3006
+ * console.log(meanAge); // e.g., 35.75
3007
+ * ```
3008
+ *
3009
+ * @example
3010
+ * ```ts
3011
+ * // Get the mean of the 'salary' column, rounded to 2 decimal places
3012
+ * const meanSalary = await table.getMean("salary", { decimals: 2 });
3013
+ * console.log(meanSalary); // e.g., 55000.23
3014
+ * ```
3015
+ */
3016
+ getMean(column: string, options?: {
3017
+ decimals?: number;
3018
+ }): Promise<number>;
3019
+ /**
3020
+ * Returns the median value from a specific numeric column.
3021
+ *
3022
+ * @param column - The name of the numeric column from which to retrieve the median value.
3023
+ * @param options - An optional object with configuration options:
3024
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3025
+ * @returns A promise that resolves to the median value of the specified column.
3026
+ * @category Getting Data
3027
+ *
3028
+ * @example
3029
+ * ```ts
3030
+ * // Get the median of the 'age' column
3031
+ * const medianAge = await table.getMedian("age");
3032
+ * console.log(medianAge); // e.g., 30
3033
+ * ```
3034
+ *
3035
+ * @example
3036
+ * ```ts
3037
+ * // Get the median of the 'salary' column, rounded to 2 decimal places
3038
+ * const medianSalary = await table.getMedian("salary", { decimals: 2 });
3039
+ * console.log(medianSalary); // e.g., 50000.00
3040
+ * ```
3041
+ */
3042
+ getMedian(column: string, options?: {
3043
+ decimals?: number;
3044
+ }): Promise<number>;
3045
+ /**
3046
+ * Returns the sum of values from a specific numeric column.
3047
+ *
3048
+ * @param column - The name of the numeric column from which to retrieve the sum.
3049
+ * @returns A promise that resolves to the sum of values in the specified column.
3050
+ * @category Getting Data
3051
+ *
3052
+ * @example
3053
+ * ```ts
3054
+ * // Get the sum of the 'quantity' column
3055
+ * const totalQuantity = await table.getSum("quantity");
3056
+ * console.log(totalQuantity); // e.g., 1250
3057
+ * ```
3058
+ */
3059
+ getSum(column: string): Promise<number>;
3060
+ /**
3061
+ * Returns the skewness of values from a specific numeric column.
3062
+ *
3063
+ * @param column - The name of the numeric column from which to retrieve the skewness.
3064
+ * @param options - An optional object with configuration options:
3065
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3066
+ * @returns A promise that resolves to the skewness value of the specified column.
3067
+ * @category Getting Data
3068
+ *
3069
+ * @example
3070
+ * ```ts
3071
+ * // Get the skewness of the 'data' column
3072
+ * const dataSkew = await table.getSkew("data");
3073
+ * console.log(dataSkew); // e.g., 0.5
3074
+ * ```
3075
+ *
3076
+ * @example
3077
+ * ```ts
3078
+ * // Get the skewness of the 'values' column, rounded to 2 decimal places
3079
+ * const valuesSkew = await table.getSkew("values", { decimals: 2 });
3080
+ * console.log(valuesSkew); // e.g., -0.25
3081
+ * ```
3082
+ */
3083
+ getSkew(column: string, options?: {
3084
+ decimals?: number;
3085
+ }): Promise<number>;
3086
+ /**
3087
+ * Returns the standard deviation of values from a specific numeric column.
3088
+ *
3089
+ * @param column - The name of the numeric column from which to retrieve the standard deviation.
3090
+ * @param options - An optional object with configuration options:
3091
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3092
+ * @returns A promise that resolves to the standard deviation value of the specified column.
3093
+ * @category Getting Data
3094
+ *
3095
+ * @example
3096
+ * ```ts
3097
+ * // Get the standard deviation of the 'height' column
3098
+ * const heightStdDev = await table.getStdDev("height");
3099
+ * console.log(heightStdDev); // e.g., 5.2
3100
+ * ```
3101
+ *
3102
+ * @example
3103
+ * ```ts
3104
+ * // Get the standard deviation of the 'score' column, rounded to 3 decimal places
3105
+ * const scoreStdDev = await table.getStdDev("score", { decimals: 3 });
3106
+ * console.log(scoreStdDev); // e.g., 12.345
3107
+ * ```
3108
+ */
3109
+ getStdDev(column: string, options?: {
3110
+ decimals?: number;
3111
+ }): Promise<number>;
3112
+ /**
3113
+ * Returns the variance of values from a specific numeric column.
3114
+ *
3115
+ * @param column - The name of the numeric column from which to retrieve the variance.
3116
+ * @param options - An optional object with configuration options:
3117
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3118
+ * @returns A promise that resolves to the variance value of the specified column.
3119
+ * @category Getting Data
3120
+ *
3121
+ * @example
3122
+ * ```ts
3123
+ * // Get the variance of the 'data' column
3124
+ * const dataVariance = await table.getVar("data");
3125
+ * console.log(dataVariance); // e.g., 25.5
3126
+ * ```
3127
+ *
3128
+ * @example
3129
+ * ```ts
3130
+ * // Get the variance of the 'values' column, rounded to 2 decimal places
3131
+ * const valuesVariance = await table.getVar("values", { decimals: 2 });
3132
+ * console.log(valuesVariance); // e.g., 10.23
3133
+ * ```
3134
+ */
3135
+ getVar(column: string, options?: {
3136
+ decimals?: number;
3137
+ }): Promise<number>;
3138
+ /**
3139
+ * Returns the value of a specific quantile from the values in a given numeric column.
3140
+ *
3141
+ * @param column - The name of the numeric column from which to calculate the quantile.
3142
+ * @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).
3143
+ * @param options - An optional object with configuration options:
3144
+ * @param options.decimals - The number of decimal places to round the result to. Defaults to `undefined` (no rounding).
3145
+ * @returns A promise that resolves to the quantile value of the specified column.
3146
+ * @category Getting Data
3147
+ *
3148
+ * @example
3149
+ * ```ts
3150
+ * // Get the first quartile (25th percentile) of 'column1'
3151
+ * const firstQuartile = await table.getQuantile("column1", 0.25);
3152
+ * console.log(firstQuartile); // e.g., 15.7
3153
+ * ```
3154
+ *
3155
+ * @example
3156
+ * ```ts
3157
+ * // Get the 90th percentile of 'score' values, rounded to 2 decimal places
3158
+ * const ninetiethPercentile = await table.getQuantile("score", 0.9, { decimals: 2 });
3159
+ * console.log(ninetiethPercentile); // e.g., 88.55
3160
+ * ```
3161
+ */
3162
+ getQuantile(column: string, quantile: number, options?: {
3163
+ decimals?: number;
3164
+ }): Promise<number>;
3165
+ /**
3166
+ * Returns unique values from a specific column. The values are returned in ascending order.
3167
+ *
3168
+ * @param column - The name of the column from which to retrieve unique values.
3169
+ * @returns A promise that resolves to an array containing the unique values from the specified column, sorted in ascending order.
3170
+ * @category Getting Data
3171
+ *
3172
+ * @example
3173
+ * ```ts
3174
+ * // Get unique values from the 'category' column
3175
+ * const uniqueCategories = await table.getUniques("category");
3176
+ * console.log(uniqueCategories); // e.g., ["Books", "Clothing", "Electronics"]
3177
+ * ```
3178
+ */
3179
+ getUniques(column: string): Promise<(string | number | boolean | Date | null)[]>;
3180
+ /**
3181
+ * Returns the first row of the table, optionally filtered by SQL conditions.
3182
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3183
+ *
3184
+ * @param options - An optional object with configuration options:
3185
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3186
+ * @returns A promise that resolves to an object representing the first row, or `null` if no rows match the conditions.
3187
+ * @category Getting Data
3188
+ *
3189
+ * @example
3190
+ * ```ts
3191
+ * // Get the very first row of the table
3192
+ * const firstRow = await table.getFirstRow();
3193
+ * console.log(firstRow);
3194
+ * ```
3195
+ *
3196
+ * @example
3197
+ * ```ts
3198
+ * // Get the first row where the 'category' is 'Book'
3199
+ * const firstRowBooks = await table.getFirstRow({ conditions: `category === 'Book'` }); // Using JS syntax
3200
+ * console.log(firstRowBooks);
3201
+ * ```
3202
+ */
3203
+ getFirstRow(options?: {
3204
+ conditions?: string;
3205
+ }): Promise<{
3206
+ [key: string]: string | number | boolean | Date | null;
3207
+ }>;
3208
+ /**
3209
+ * Returns the last row of the table, optionally filtered by SQL conditions.
3210
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3211
+ *
3212
+ * @param options - An optional object with configuration options:
3213
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3214
+ * @returns A promise that resolves to an object representing the last row, or `null` if no rows match the conditions.
3215
+ * @category Getting Data
3216
+ *
3217
+ * @example
3218
+ * ```ts
3219
+ * // Get the very last row of the table
3220
+ * const lastRow = await table.getLastRow();
3221
+ * console.log(lastRow);
3222
+ * ```
3223
+ *
3224
+ * @example
3225
+ * ```ts
3226
+ * // Get the last row where the 'category' is 'Book'
3227
+ * const lastRowBooks = await table.getLastRow({ conditions: `category === 'Book'` }); // Using JS syntax
3228
+ * console.log(lastRowBooks);
3229
+ * ```
3230
+ */
3231
+ getLastRow(options?: {
3232
+ conditions?: string;
3233
+ }): Promise<{
3234
+ [key: string]: string | number | boolean | Date | null;
3235
+ }>;
3236
+ /**
3237
+ * Returns the top `n` rows of the table, optionally filtered by SQL conditions.
3238
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3239
+ *
3240
+ * @param count - The number of rows to return from the top of the table.
3241
+ * @param options - An optional object with configuration options:
3242
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Books'"`).
3243
+ * @returns A promise that resolves to an array of objects representing the top `n` rows.
3244
+ * @category Getting Data
3245
+ *
3246
+ * @example
3247
+ * ```ts
3248
+ * // Get the first 10 rows of the table
3249
+ * const top10 = await table.getTop(10);
3250
+ * console.log(top10);
3251
+ * ```
3252
+ *
3253
+ * @example
3254
+ * ```ts
3255
+ * // Get the first 5 rows where the 'category' is 'Books'
3256
+ * const top5Books = await table.getTop(5, { conditions: `category === 'Books'` }); // Using JS syntax
3257
+ * console.log(top5Books);
3258
+ * ```
3259
+ */
3260
+ getTop(count: number, options?: {
3261
+ conditions?: string;
3262
+ }): Promise<{
3263
+ [key: string]: string | number | boolean | Date | null;
3264
+ }[]>;
3265
+ /**
3266
+ * Returns the bottom `n` rows of the table, optionally filtered by SQL conditions.
3267
+ * By default, the last row will be returned first. To preserve the original order, use the `originalOrder` option.
3268
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3269
+ *
3270
+ * @param count - The number of rows to return from the bottom of the table.
3271
+ * @param options - An optional object with configuration options:
3272
+ * @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`.
3273
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Books'"`).
3274
+ * @returns A promise that resolves to an array of objects representing the bottom `n` rows.
3275
+ * @category Getting Data
3276
+ *
3277
+ * @example
3278
+ * ```ts
3279
+ * // Get the last 10 rows (last row first)
3280
+ * const bottom10 = await table.getBottom(10);
3281
+ * console.log(bottom10);
3282
+ * ```
3283
+ *
3284
+ * @example
3285
+ * ```ts
3286
+ * // Get the last 10 rows in their original order
3287
+ * const bottom10OriginalOrder = await table.getBottom(10, { originalOrder: true });
3288
+ * console.log(bottom10OriginalOrder);
3289
+ * ```
3290
+ *
3291
+ * @example
3292
+ * ```ts
3293
+ * // Get the last 5 rows where the 'category' is 'Books' (using JS syntax)
3294
+ * const bottom5Books = await table.getBottom(5, { conditions: `category === 'Books'` });
3295
+ * console.log(bottom5Books);
3296
+ * ```
3297
+ */
3298
+ getBottom(count: number, options?: {
3299
+ originalOrder?: boolean;
3300
+ conditions?: string;
3301
+ }): Promise<{
3302
+ [key: string]: string | number | boolean | Date | null;
3303
+ }[]>;
3304
+ /**
3305
+ * 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.
3306
+ * You can also use JavaScript syntax for conditions (e.g., `AND`, `||`, `===`, `!==`).
3307
+ *
3308
+ * @param conditions - The conditions to match, specified as a SQL `WHERE` clause.
3309
+ * @param options - Optional settings:
3310
+ * @param options.noCheck - If `true`, no error will be thrown when no row or more than one row match the condition. Defaults to `false`.
3311
+ * @returns A promise that resolves to an object representing the matched row.
3312
+ * @throws {Error} If `noCheck` is `false` and no row or more than one row matches the conditions.
3313
+ * @category Getting Data
3314
+ *
3315
+ * @example
3316
+ * ```ts
3317
+ * // Get a row where 'name' is 'John'
3318
+ * const johnsRow = await table.getRow(`name = 'John'`);
3319
+ * console.log(johnsRow);
3320
+ * ```
3321
+ *
3322
+ * @example
3323
+ * ```ts
3324
+ * // Get a row where 'id' is 123 (using JS syntax)
3325
+ * const rowById = await table.getRow(`id === 123`);
3326
+ * console.log(rowById);
3327
+ * ```
3328
+ *
3329
+ * @example
3330
+ * ```ts
3331
+ * // Get a row without throwing an error if multiple matches or no match
3332
+ * const flexibleRow = await table.getRow(`status = 'pending'`, { noCheck: true });
3333
+ * console.log(flexibleRow);
3334
+ * ```
3335
+ */
3336
+ getRow(conditions: string, options?: {
3337
+ noCheck?: boolean;
3338
+ }): Promise<{
3339
+ [key: string]: string | number | boolean | Date | null;
3340
+ } | undefined>;
3341
+ /**
3342
+ * Returns the data from the table as an array of objects, optionally filtered by SQL conditions.
3343
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3344
+ *
3345
+ * @param options - An optional object with configuration options:
3346
+ * @param options.columns - An array of column names to include in the result. If omitted, all columns will be included.
3347
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3348
+ * @returns A promise that resolves to an array of objects, where each object represents a row in the table.
3349
+ * @category Getting Data
3350
+ *
3351
+ * @example
3352
+ * ```ts
3353
+ * // Get all data from the table
3354
+ * const allData = await table.getData();
3355
+ * console.log(allData);
3356
+ * ```
3357
+ *
3358
+ * @example
3359
+ * ```ts
3360
+ * // Get data filtered by a condition (using JS or SQL syntax)
3361
+ * const booksData = await table.getData({ conditions: `category === 'Book'` });
3362
+ * console.log(booksData);
3363
+ * ```
3364
+ *
3365
+ * @example
3366
+ * ```ts
3367
+ * // Get data filtered by a condition and specific columns
3368
+ * const booksData = await table.getData({ columns: ["title", "author"], conditions: `category === 'Book'` });
3369
+ * console.log(booksData);
3370
+ * ```
3371
+ */
3372
+ getData(options?: {
3373
+ columns?: string | string[];
3374
+ conditions?: string;
3375
+ }): Promise<{
3376
+ [key: string]: string | number | boolean | Date | null;
3377
+ }[]>;
3378
+ /**
3379
+ * Returns the data from the table as a CSV string, optionally filtered by SQL conditions.
3380
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
3381
+ *
3382
+ * @param options - An optional object with configuration options:
3383
+ * @param options.columns - An array of column names to include in the CSV. If omitted, all columns will be included.
3384
+ * @param options.conditions - The filtering conditions specified as a SQL `WHERE` clause (e.g., `"category = 'Book'"`).
3385
+ * @returns A promise that resolves to a CSV-formatted string representation of the table data.
3386
+ * @category Getting Data
3387
+ *
3388
+ * @example
3389
+ * ```ts
3390
+ * // Get all data from the table as CSV
3391
+ * const allDataCSV = await table.getDataAsCSV();
3392
+ * console.log(allDataCSV);
3393
+ * ```
3394
+ *
3395
+ * @example
3396
+ * ```ts
3397
+ * // Get data filtered by a condition (using JS syntax or SQL syntax) as CSV
3398
+ * const booksDataCSV = await table.getDataAsCSV({ conditions: `category === 'Book'` });
3399
+ * console.log(booksDataCSV);
3400
+ * ```
3401
+ *
3402
+ * @example
3403
+ * ```ts
3404
+ * // Get data filtered by a condition and specific columns as CSV
3405
+ * const booksDataCSV = await table.getDataAsCSV({ columns: ["title", "author"], conditions: `category === 'Book'` });
3406
+ * console.log(booksDataCSV);
3407
+ * ```
3408
+ */
3409
+ getDataAsCSV(options?: {
3410
+ columns?: string | string[];
3411
+ conditions?: string;
3412
+ }): Promise<string>;
3413
+ /**
3414
+ * Creates point geometries from latitude and longitude columns.
3415
+ *
3416
+ * @param columnLat - The name of the column storing the latitude values.
3417
+ * @param columnLon - The name of the column storing the longitude values.
3418
+ * @param newColumn - The name of the new column where the point geometries will be stored.
3419
+ * @returns A promise that resolves when the point geometries have been created.
3420
+ * @category Geospatial
3421
+ *
3422
+ * @example
3423
+ * ```ts
3424
+ * // Create point geometries in a new 'geom' column using 'lat' and 'lon' columns
3425
+ * await table.points("lat", "lon", "geom");
3426
+ * ```
3427
+ */
3428
+ points(columnLat: string, columnLon: string, newColumn: string): Promise<void>;
3429
+ /**
3430
+ * Adds a column with boolean values indicating the validity of geometries.
3431
+ *
3432
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for valid, `FALSE` for invalid) will be stored.
3433
+ * @param options - An optional object with configuration options:
3434
+ * @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.
3435
+ * @returns A promise that resolves when the validity check is complete.
3436
+ * @category Geospatial
3437
+ *
3438
+ * @example
3439
+ * ```ts
3440
+ * // Check if geometries are valid and store results in a new 'isValid' column
3441
+ * // The method will automatically detect the geometry column.
3442
+ * await table.isValidGeo("isValid");
3443
+ * ```
3444
+ *
3445
+ * @example
3446
+ * ```ts
3447
+ * // Check validity of geometries in a specific column named 'myGeom'
3448
+ * await table.isValidGeo("isValidMyGeom", { column: "myGeom" });
3449
+ * ```
3450
+ */
3451
+ isValidGeo(newColumn: string, options?: {
3452
+ column?: string;
3453
+ }): Promise<void>;
3454
+ /**
3455
+ * Adds a column with the number of vertices (points) in each geometry.
3456
+ *
3457
+ * @param newColumn - The name of the new column where the vertex counts will be stored.
3458
+ * @param options - An optional object with configuration options:
3459
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3460
+ * @returns A promise that resolves when the vertex counts have been added.
3461
+ * @category Geospatial
3462
+ *
3463
+ * @example
3464
+ * ```ts
3465
+ * // Add a new column 'vertexCount' with the number of vertices for each geometry
3466
+ * // The method will automatically detect the geometry column.
3467
+ * await table.nbVertices("vertexCount");
3468
+ * ```
3469
+ *
3470
+ * @example
3471
+ * ```ts
3472
+ * // Add vertex counts for geometries in a specific column named 'myGeom'
3473
+ * await table.nbVertices("myGeomVertices", { column: "myGeom" });
3474
+ * ```
3475
+ */
3476
+ nbVertices(newColumn: string, options?: {
3477
+ column?: string;
3478
+ }): Promise<void>;
3479
+ /**
3480
+ * Attempts to make invalid geometries valid without removing any vertices.
3481
+ *
3482
+ * @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.
3483
+ * @returns A promise that resolves when the geometries have been processed.
3484
+ * @category Geospatial
3485
+ *
3486
+ * @example
3487
+ * ```ts
3488
+ * // Fix invalid geometries in the default geometry column
3489
+ * await table.fixGeo();
3490
+ * ```
3491
+ *
3492
+ * @example
3493
+ * ```ts
3494
+ * // Fix invalid geometries in a specific column named 'myGeom'
3495
+ * await table.fixGeo("myGeom");
3496
+ * ```
3497
+ */
3498
+ fixGeo(column?: string): Promise<void>;
3499
+ /**
3500
+ * Adds a column with boolean values indicating whether geometries are closed (e.g., polygons) or open (e.g., linestrings).
3501
+ *
3502
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for closed, `FALSE` for open) will be stored.
3503
+ * @param options - An optional object with configuration options:
3504
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3505
+ * @returns A promise that resolves when the closed geometry check is complete.
3506
+ * @category Geospatial
3507
+ *
3508
+ * @example
3509
+ * ```ts
3510
+ * // Check if geometries are closed and store results in a new 'isClosed' column
3511
+ * await table.isClosedGeo("isClosed");
3512
+ * ```
3513
+ *
3514
+ * @example
3515
+ * ```ts
3516
+ * // Check closed status of geometries in a specific column named 'boundaryGeom'
3517
+ * await table.isClosedGeo("boundaryClosed", { column: "boundaryGeom" });
3518
+ * ```
3519
+ */
3520
+ isClosedGeo(newColumn: string, options?: {
3521
+ column?: string;
3522
+ }): Promise<void>;
3523
+ /**
3524
+ * Adds a column with the geometry type (e.g., `"POINT"`, `"LINESTRING"`, `"POLYGON"`) for each geometry.
3525
+ *
3526
+ * @param newColumn - The name of the new column where the geometry types will be stored.
3527
+ * @param options - An optional object with configuration options:
3528
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3529
+ * @returns A promise that resolves when the geometry types have been added.
3530
+ * @category Geospatial
3531
+ *
3532
+ * @example
3533
+ * ```ts
3534
+ * // Add a new column 'geometryType' with the type of each geometry
3535
+ * await table.typeGeo("geometryType");
3536
+ * ```
3537
+ *
3538
+ * @example
3539
+ * ```ts
3540
+ * // Get the geometry type for geometries in a specific column named 'featureGeom'
3541
+ * await table.typeGeo("featureType", { column: "featureGeom" });
3542
+ * ```
3543
+ */
3544
+ typeGeo(newColumn: string, options?: {
3545
+ column?: string;
3546
+ }): Promise<void>;
3547
+ /**
3548
+ * Flips the coordinate order of geometries in a specified column (e.g., from `[lon, lat]` to `[lat, lon]` or vice-versa).
3549
+ * **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.
3550
+ *
3551
+ * @param column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3552
+ * @returns A promise that resolves when the coordinates have been flipped.
3553
+ * @category Geospatial
3554
+ *
3555
+ * @example
3556
+ * ```ts
3557
+ * // Flip coordinates in the default geometry column
3558
+ * await table.flipCoordinates();
3559
+ * ```
3560
+ *
3561
+ * @example
3562
+ * ```ts
3563
+ * // Flip coordinates in a specific column named 'myGeom'
3564
+ * await table.flipCoordinates("myGeom");
3565
+ * ```
3566
+ */
3567
+ flipCoordinates(column?: string): Promise<void>;
3568
+ /**
3569
+ * Reduces the precision of geometries in a specified column to a given number of decimal places.
3570
+ *
3571
+ * @param decimals - The number of decimal places to keep in the coordinates of the geometries.
3572
+ * @param options - An optional object with configuration options:
3573
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3574
+ * @returns A promise that resolves when the precision of the geometries has been reduced.
3575
+ * @category Geospatial
3576
+ *
3577
+ * @example
3578
+ * ```ts
3579
+ * // Reduce the precision of geometries in the default column to 3 decimal places
3580
+ * await table.reducePrecision(3);
3581
+ * ```
3582
+ *
3583
+ * @example
3584
+ * ```ts
3585
+ * // Reduce the precision of geometries in a specific column named 'myGeom' to 2 decimal places
3586
+ * await table.reducePrecision(2, { column: "myGeom" });
3587
+ * ```
3588
+ */
3589
+ reducePrecision(decimals: number, options?: {
3590
+ column?: string;
3591
+ }): Promise<void>;
3592
+ /**
3593
+ * Reprojects the geometries in a specified column to another Spatial Reference System (SRS).
3594
+ *
3595
+ * @param to - The target SRS (e.g., `"EPSG:3347"`, `"WGS84"`).
3596
+ * @param options - An optional object with configuration options:
3597
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3598
+ * @returns A promise that resolves when the geometries have been reprojected.
3599
+ * @category Geospatial
3600
+ *
3601
+ * @example
3602
+ * ```ts
3603
+ * // Reproject geometries in the default column to EPSG:3347 (NAD83/Statistics Canada Lambert)
3604
+ * await table.reproject("EPSG:3347");
3605
+ * ```
3606
+ *
3607
+ * @example
3608
+ * ```ts
3609
+ * // Reproject geometries in a specific column named 'myGeom' to EPSG:3347
3610
+ * await table.reproject("EPSG:3347", { column: "myGeom" });
3611
+ * ```
3612
+ */
3613
+ reproject(to: string, options?: {
3614
+ column?: string;
3615
+ }): Promise<void>;
3616
+ /**
3617
+ * Computes the area of geometries in square meters (`"m2"`) or optionally square kilometers (`"km2"`).
3618
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3619
+ *
3620
+ * @param newColumn - The name of the new column where the computed areas will be stored.
3621
+ * @param options - An optional object with configuration options:
3622
+ * @param options.unit - The unit for the computed area: `"m2"` (square meters) or `"km2"` (square kilometers). Defaults to `"m2"`.
3623
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3624
+ * @returns A promise that resolves when the areas have been computed.
3625
+ * @category Geospatial
3626
+ *
3627
+ * @example
3628
+ * ```ts
3629
+ * // Compute the area of geometries in square meters and store in 'area_m2'
3630
+ * await table.area("area_m2");
3631
+ * ```
3632
+ *
3633
+ * @example
3634
+ * ```ts
3635
+ * // Compute the area of geometries in square kilometers and store in 'area_km2'
3636
+ * await table.area("area_km2", { unit: "km2" });
3637
+ * ```
3638
+ *
3639
+ * @example
3640
+ * ```ts
3641
+ * // Compute the area of geometries in a specific column named 'myGeom'
3642
+ * await table.area("myGeomArea", { column: "myGeom" });
3643
+ * ```
3644
+ */
3645
+ area(newColumn: string, options?: {
3646
+ unit?: "m2" | "km2";
3647
+ column?: string;
3648
+ }): Promise<void>;
3649
+ /**
3650
+ * Computes the length of line geometries in meters (`"m"`) or optionally kilometers (`"km"`).
3651
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3652
+ *
3653
+ * @param newColumn - The name of the new column where the computed lengths will be stored.
3654
+ * @param options - An optional object with configuration options:
3655
+ * @param options.unit - The unit for the computed length: `"m"` (meters) or `"km"` (kilometers). Defaults to `"m"`.
3656
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3657
+ * @returns A promise that resolves when the lengths have been computed.
3658
+ * @category Geospatial
3659
+ *
3660
+ * @example
3661
+ * ```ts
3662
+ * // Compute the length of line geometries in meters and store in 'length_m'
3663
+ * await table.length("length_m");
3664
+ * ```
3665
+ *
3666
+ * @example
3667
+ * ```ts
3668
+ * // Compute the length of line geometries in kilometers and store in 'length_km'
3669
+ * await table.length("length_km", { unit: "km" });
3670
+ * ```
3671
+ *
3672
+ * @example
3673
+ * ```ts
3674
+ * // Compute the length of geometries in a specific column named 'routeGeom'
3675
+ * await table.length("routeLength", { column: "routeGeom" });
3676
+ * ```
3677
+ */
3678
+ length(newColumn: string, options?: {
3679
+ unit?: "m" | "km";
3680
+ column?: string;
3681
+ }): Promise<void>;
3682
+ /**
3683
+ * Computes the perimeter of polygon geometries in meters (`"m"`) or optionally kilometers (`"km"`).
3684
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3685
+ *
3686
+ * @param newColumn - The name of the new column where the computed perimeters will be stored.
3687
+ * @param options - An optional object with configuration options:
3688
+ * @param options.unit - The unit for the computed perimeter: `"m"` (meters) or `"km"` (kilometers). Defaults to `"m"`.
3689
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3690
+ * @returns A promise that resolves when the perimeters have been computed.
3691
+ * @category Geospatial
3692
+ *
3693
+ * @example
3694
+ * ```ts
3695
+ * // Compute the perimeter of polygon geometries in meters and store in 'perimeter_m'
3696
+ * await table.perimeter("perimeter_m");
3697
+ * ```
3698
+ *
3699
+ * @example
3700
+ * ```ts
3701
+ * // Compute the perimeter of polygon geometries in kilometers and store in 'perimeter_km'
3702
+ * await table.perimeter("perimeter_km", { unit: "km" });
3703
+ * ```
3704
+ *
3705
+ * @example
3706
+ * ```ts
3707
+ * // Compute the perimeter of geometries in a specific column named 'landParcelGeom'
3708
+ * await table.perimeter("landParcelPerimeter", { column: "landParcelGeom" });
3709
+ * ```
3710
+ */
3711
+ perimeter(newColumn: string, options?: {
3712
+ unit?: "m" | "km";
3713
+ column?: string;
3714
+ }): Promise<void>;
3715
+ /**
3716
+ * Computes a buffer (a polygon representing a specified distance around a geometry) for geometries in a specified column.
3717
+ * The distance is in the Spatial Reference System (SRS) unit of the input geometries.
3718
+ *
3719
+ * @param newColumn - The name of the new column where the buffered geometries will be stored.
3720
+ * @param distance - The distance for the buffer. This value is in the units of the geometry's SRS.
3721
+ * @param options - An optional object with configuration options:
3722
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3723
+ * @returns A promise that resolves when the buffers have been computed.
3724
+ * @category Geospatial
3725
+ *
3726
+ * @example
3727
+ * ```ts
3728
+ * // Create a buffer of 1 unit around geometries in the default column, storing results in 'bufferedGeom'
3729
+ * await table.buffer("bufferedGeom", 1);
3730
+ * ```
3731
+ *
3732
+ * @example
3733
+ * ```ts
3734
+ * // Create a buffer of 10 units around geometries in a specific column named 'pointsGeom'
3735
+ * await table.buffer("pointsBuffer", 10, { column: "pointsGeom" });
3736
+ * ```
3737
+ */
3738
+ buffer(newColumn: string, distance: number, options?: {
3739
+ column?: string;
3740
+ }): Promise<void>;
3741
+ /**
3742
+ * Merges the data of this table (considered the left table) with another table (the right table) based on a spatial relationship.
3743
+ * Note that the order of rows in the returned data is not guaranteed to be the same as in the original tables.
3744
+ * This operation might create temporary files in a `.tmp` folder; consider adding `.tmp` to your `.gitignore`.
3745
+ *
3746
+ * @param rightTable - The SimpleTable instance to be joined with this table.
3747
+ * @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).
3748
+ * @param options - An optional object with configuration options:
3749
+ * @param options.leftTableColumn - The name of the column storing geometries in the left table (this table). If omitted, the method attempts to find one.
3750
+ * @param options.rightTableColumn - The name of the column storing geometries in the right table. If omitted, the method attempts to find one.
3751
+ * @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.
3752
+ * @param options.distance - Required if `method` is `"within"`. The target distance for the spatial join. The unit depends on `distanceMethod`.
3753
+ * @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).
3754
+ * @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`.
3755
+ * @returns A promise that resolves to a table instance containing the spatially joined data (either the modified current table or a new table).
3756
+ * @category Geospatial
3757
+ *
3758
+ * @example
3759
+ * ```ts
3760
+ * // Merge data based on intersecting geometries, overwriting tableA
3761
+ * await tableA.joinGeo(tableB, "intersect");
3762
+ * ```
3763
+ *
3764
+ * @example
3765
+ * ```ts
3766
+ * // Merge data where geometries in tableA are inside geometries in tableB
3767
+ * await tableA.joinGeo(tableB, "inside");
3768
+ * ```
3769
+ *
3770
+ * @example
3771
+ * ```ts
3772
+ * // Merge data where geometries in tableA are within 10 units (SRS) of geometries in tableB
3773
+ * await tableA.joinGeo(tableB, "within", { distance: 10 });
3774
+ * ```
3775
+ *
3776
+ * @example
3777
+ * ```ts
3778
+ * // Merge data where geometries in tableA are within 10 kilometers (Haversine) of geometries in tableB
3779
+ * // Input geometries must be in EPSG:4326.
3780
+ * await tableA.joinGeo(tableB, "within", { distance: 10, distanceMethod: "haversine", unit: "km" });
3781
+ * ```
3782
+ *
3783
+ * @example
3784
+ * ```ts
3785
+ * // Merge data with specific geometry columns and an inner join type, storing results in a new table
3786
+ * const tableC = await tableA.joinGeo(tableB, "intersect", {
3787
+ * leftTableColumn: "geometriesA",
3788
+ * rightTableColumn: "geometriesB",
3789
+ * type: "inner",
3790
+ * outputTable: true,
3791
+ * });
3792
+ * ```
3793
+ */
3794
+ joinGeo(rightTable: SimpleTable, method: "intersect" | "inside" | "within", options?: {
3795
+ leftTableColumn?: string;
3796
+ rightTableColumn?: string;
3797
+ type?: "inner" | "left" | "right" | "full";
3798
+ distance?: number;
3799
+ distanceMethod?: "srs" | "haversine" | "spheroid";
3800
+ outputTable?: string | boolean;
3801
+ }): Promise<this>;
3802
+ /**
3803
+ * Computes the intersection of two sets of geometries, creating new geometries where they overlap.
3804
+ *
3805
+ * @param column1 - The name of the first column storing geometries.
3806
+ * @param column2 - The name of the second column storing geometries. Both columns must have the same projection.
3807
+ * @param newColumn - The name of the new column where the computed intersection geometries will be stored.
3808
+ * @returns A promise that resolves when the intersection geometries have been computed.
3809
+ * @category Geospatial
3810
+ *
3811
+ * @example
3812
+ * ```ts
3813
+ * // Compute the intersection of geometries in 'geomA' and 'geomB' columns, storing results in 'intersectGeom'
3814
+ * await table.intersection("geomA", "geomB", "intersectGeom");
3815
+ * ```
3816
+ */
3817
+ intersection(column1: string, column2: string, newColumn: string): Promise<void>;
3818
+ /**
3819
+ * Removes the intersection of two geometries from the first geometry, effectively computing the geometric difference.
3820
+ *
3821
+ * @param column1 - The name of the column storing the reference geometries. These geometries will have the intersection removed.
3822
+ * @param column2 - The name of the column storing the geometries used to compute the intersection. Both columns must have the same projection.
3823
+ * @param newColumn - The name of the new column where the resulting geometries (without the intersection) will be stored.
3824
+ * @returns A promise that resolves when the geometries have been processed.
3825
+ * @category Geospatial
3826
+ *
3827
+ * @example
3828
+ * ```ts
3829
+ * // Remove the intersection of 'geomB' from 'geomA', storing the result in 'geomA_minus_geomB'
3830
+ * await table.removeIntersection("geomA", "geomB", "geomA_minus_geomB");
3831
+ * ```
3832
+ */
3833
+ removeIntersection(column1: string, column2: string, newColumn: string): Promise<void>;
3834
+ /**
3835
+ * Fills holes in polygon geometries.
3836
+ *
3837
+ * @param column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3838
+ * @returns A promise that resolves when the holes have been filled.
3839
+ * @category Geospatial
3840
+ *
3841
+ * @example
3842
+ * ```ts
3843
+ * // Fill holes in geometries in the default geometry column
3844
+ * await table.fillHoles();
3845
+ * ```
3846
+ *
3847
+ * @example
3848
+ * ```ts
3849
+ * // Fill holes in geometries in a specific column named 'polygonGeom'
3850
+ * await table.fillHoles("polygonGeom");
3851
+ * ```
3852
+ */
3853
+ fillHoles(column?: string): Promise<void>;
3854
+ /**
3855
+ * Returns `TRUE` if two geometries intersect (overlap in any way), and `FALSE` otherwise.
3856
+ *
3857
+ * @param column1 - The name of the first column storing geometries.
3858
+ * @param column2 - The name of the second column storing geometries. Both columns must have the same projection.
3859
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for intersection, `FALSE` otherwise) will be stored.
3860
+ * @returns A promise that resolves when the intersection check is complete.
3861
+ * @category Geospatial
3862
+ *
3863
+ * @example
3864
+ * ```ts
3865
+ * // Check if geometries in 'geomA' and 'geomB' intersect, storing results in 'doIntersect'
3866
+ * await table.intersect("geomA", "geomB", "doIntersect");
3867
+ * ```
3868
+ */
3869
+ intersect(column1: string, column2: string, newColumn: string): Promise<void>;
3870
+ /**
3871
+ * Returns `TRUE` if all points of a geometry in `column1` lie inside a geometry in `column2`, and `FALSE` otherwise.
3872
+ *
3873
+ * @param column1 - The name of the column storing the geometries to be tested for containment.
3874
+ * @param column2 - The name of the column storing the geometries to be tested as containers. Both columns must have the same projection.
3875
+ * @param newColumn - The name of the new column where the boolean results (`TRUE` for inside, `FALSE` otherwise) will be stored.
3876
+ * @returns A promise that resolves when the containment check is complete.
3877
+ * @category Geospatial
3878
+ *
3879
+ * @example
3880
+ * ```ts
3881
+ * // Check if geometries in 'pointGeom' are inside 'polygonGeom', storing results in 'isInsidePolygon'
3882
+ * await table.inside("pointGeom", "polygonGeom", "isInsidePolygon");
3883
+ * ```
3884
+ */
3885
+ inside(column1: string, column2: string, newColumn: string): Promise<void>;
3886
+ /**
3887
+ * Computes the union of two geometries, creating a new geometry that represents the merged area of both.
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 computed union geometries will be stored.
3892
+ * @returns A promise that resolves when the union geometries have been computed.
3893
+ * @category Geospatial
3894
+ *
3895
+ * @example
3896
+ * ```ts
3897
+ * // Compute the union of geometries in 'geomA' and 'geomB', storing results in 'unionGeom'
3898
+ * await table.union("geomA", "geomB", "unionGeom");
3899
+ * ```
3900
+ */
3901
+ union(column1: string, column2: string, newColumn: string): Promise<void>;
3902
+ /**
3903
+ * Extracts the latitude and longitude coordinates from point geometries.
3904
+ * The input geometry is assumed to be in the EPSG:4326 coordinate system (WGS84).
3905
+ *
3906
+ * @param column - The name of the column storing the point geometries.
3907
+ * @param columnLat - The name of the new column where the extracted latitude values will be stored.
3908
+ * @param columnLon - The name of the new column where the extracted longitude values will be stored.
3909
+ * @returns A promise that resolves when the latitude and longitude have been extracted.
3910
+ * @category Geospatial
3911
+ *
3912
+ * @example
3913
+ * ```ts
3914
+ * // Extract latitude and longitude from 'geom' column into new 'lat' and 'lon' columns
3915
+ * await table.latLon("geom", "lat", "lon");
3916
+ * ```
3917
+ */
3918
+ latLon(column: string, columnLat: string, columnLon: string): Promise<void>;
3919
+ /**
3920
+ * Simplifies geometries while preserving their overall coverage. A higher tolerance results in more significant simplification.
3921
+ *
3922
+ * @param tolerance - A numeric value representing the simplification tolerance. A higher value leads to greater simplification.
3923
+ * @param options - An optional object with configuration options:
3924
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3925
+ * @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.
3926
+ * @returns A promise that resolves when the geometries have been simplified.
3927
+ * @category Geospatial
3928
+ *
3929
+ * @example
3930
+ * ```ts
3931
+ * // Simplify geometries in the default column with a tolerance of 0.1
3932
+ * await table.simplify(0.1);
3933
+ * ```
3934
+ *
3935
+ * @example
3936
+ * ```ts
3937
+ * // Simplify geometries in 'myGeom' column, preserving the boundary
3938
+ * await table.simplify(0.05, { column: "myGeom", simplifyBoundary: false });
3939
+ * ```
3940
+ */
3941
+ simplify(tolerance: number, options?: {
3942
+ column?: string;
3943
+ simplifyBoundary?: boolean;
3944
+ }): Promise<void>;
3945
+ /**
3946
+ * Computes the centroid of geometries.
3947
+ * The values are returned in the SRS unit of the input geometries.
3948
+ *
3949
+ * @param newColumn - The name of the new column where the computed centroid geometries will be stored.
3950
+ * @param options - An optional object with configuration options:
3951
+ * @param options.column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
3952
+ * @returns A promise that resolves when the centroids have been computed.
3953
+ * @category Geospatial
3954
+ *
3955
+ * @example
3956
+ * ```ts
3957
+ * // Compute the centroid of geometries in the default column, storing results in 'centerPoint'
3958
+ * await table.centroid("centerPoint");
3959
+ * ```
3960
+ *
3961
+ * @example
3962
+ * ```ts
3963
+ * // Compute the centroid of geometries in a specific column named 'areaGeom'
3964
+ * await table.centroid("areaCentroid", { column: "areaGeom" });
3965
+ * ```
3966
+ */
3967
+ centroid(newColumn: string, options?: {
3968
+ column?: string;
3969
+ }): Promise<void>;
3970
+ /**
3971
+ * Generates a random point within the geometries of a specified column.
3972
+ *
3973
+ * @param newColumn - The name of the new column where the random points will be stored.
3974
+ * @param nbPointsToTry - The number of points to generate within the bounding box of each geometry to find one that is within the geometry itself.
3975
+ * @param options - An optional object with configuration options:
3976
+ * @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.
3977
+ * @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.
3978
+ *
3979
+ * @example
3980
+ * ```ts
3981
+ * // Generate a random point for each geometry in the default column, trying 100 points
3982
+ * await table.randomPoint("randomPoint", 100);
3983
+ * ```
3984
+ *
3985
+ * @example
3986
+ * ```ts
3987
+ * // Generate a random point for each geometry in a specific column named 'areaGeom', trying 50 points
3988
+ * await table.randomPoint("pointInArea", 50, { column: "areaGeom" });
3989
+ * ```
3990
+ *
3991
+ * @example
3992
+ * ```ts
3993
+ * // Generate a random point for each geometry, but don't throw if some points cannot be generated
3994
+ * await table.randomPoint("pointInArea", 1, { try: true });
3995
+ * ```
3996
+ */
3997
+ randomPoint(newColumn: string, nbPointsToTry: number, options?: {
3998
+ column?: string;
3999
+ try?: boolean;
4000
+ }): Promise<void>;
4001
+ /**
4002
+ * Computes the distance between geometries in two specified columns.
4003
+ * By default, the distance is calculated in the Spatial Reference System (SRS) unit of the input geometries.
4004
+ * You can optionally specify `"spheroid"` or `"haversine"` methods to get results in meters or kilometers.
4005
+ * If using `"spheroid"` or `"haversine"`, the input geometries must be in the EPSG:4326 coordinate system (WGS84).
4006
+ *
4007
+ * @param column1 - The name of the first column storing geometries.
4008
+ * @param column2 - The name of the second column storing geometries.
4009
+ * @param newColumn - The name of the new column where the computed distances will be stored.
4010
+ * @param options - An optional object with configuration options:
4011
+ * @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).
4012
+ * @param options.unit - If `method` is `"spheroid"` or `"haversine"`, you can choose between `"m"` (meters, default) or `"km"` (kilometers).
4013
+ * @param options.decimals - The number of decimal places to round the distance values. Defaults to `undefined` (no rounding).
4014
+ * @returns A promise that resolves when the distances have been computed.
4015
+ * @category Geospatial
4016
+ *
4017
+ * @example
4018
+ * ```ts
4019
+ * // Compute distance between 'geomA' and 'geomB' in SRS units, store in 'distance_srs'
4020
+ * await table.distance("geomA", "geomB", "distance_srs");
4021
+ * ```
4022
+ *
4023
+ * @example
4024
+ * ```ts
4025
+ * // Compute Haversine distance in meters between 'point1' and 'point2', store in 'distance_m'
4026
+ * // Input geometries must be in EPSG:4326.
4027
+ * await table.distance("point1", "point2", "distance_m", { method: "haversine" });
4028
+ * ```
4029
+ *
4030
+ * @example
4031
+ * ```ts
4032
+ * // Compute Haversine distance in kilometers, rounded to 2 decimal places
4033
+ * // Input geometries must be in EPSG:4326.
4034
+ * await table.distance("point1", "point2", "distance_km", { method: "haversine", unit: "km", decimals: 2 });
4035
+ * ```
4036
+ *
4037
+ * @example
4038
+ * ```ts
4039
+ * // Compute Spheroid distance in kilometers
4040
+ * // Input geometries must be in EPSG:4326.
4041
+ * await table.distance("area1", "area2", "distance_spheroid_km", { method: "spheroid", unit: "km" });
4042
+ * ```
4043
+ */
4044
+ distance(column1: string, column2: string, newColumn: string, options?: {
4045
+ unit?: "m" | "km";
4046
+ method?: "srs" | "haversine" | "spheroid";
4047
+ decimals?: number;
4048
+ }): Promise<void>;
4049
+ /**
4050
+ * Unnests geometries recursively, transforming multi-part geometries (e.g., MultiPolygon) into individual single-part geometries (e.g., Polygon).
4051
+ *
4052
+ * @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.
4053
+ * @returns A promise that resolves when the geometries have been unnested.
4054
+ * @category Geospatial
4055
+ *
4056
+ * @example
4057
+ * ```ts
4058
+ * // Unnest geometries in the default column
4059
+ * await table.unnestGeo();
4060
+ * ```
4061
+ *
4062
+ * @example
4063
+ * ```ts
4064
+ * // Unnest geometries in a specific column named 'multiGeom'
4065
+ * await table.unnestGeo("multiGeom");
4066
+ * ```
4067
+ */
4068
+ unnestGeo(column?: string): Promise<void>;
4069
+ /**
4070
+ * Aggregates geometries in a specified column based on a chosen aggregation method.
4071
+ *
4072
+ * @param method - The aggregation method to apply: `"union"` (combines all geometries into a single multi-geometry) or `"intersection"` (computes the intersection of all geometries).
4073
+ * @param options - An optional object with configuration options:
4074
+ * @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.
4075
+ * @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.
4076
+ * @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`.
4077
+ * @returns A promise that resolves to a table instance containing the aggregated geometries (either the modified current table or a new table).
4078
+ * @category Geospatial
4079
+ *
4080
+ * @example
4081
+ * ```ts
4082
+ * // Aggregate all geometries in the default column into a single union geometry
4083
+ * await table.aggregateGeo("union");
4084
+ * ```
4085
+ *
4086
+ * @example
4087
+ * ```ts
4088
+ * // Aggregate geometries by 'country' and compute their union
4089
+ * await table.aggregateGeo("union", { categories: "country" });
4090
+ * ```
4091
+ *
4092
+ * @example
4093
+ * ```ts
4094
+ * // Aggregate geometries in 'regions' column into their intersection, storing results in a new table
4095
+ * const intersectionTable = await table.aggregateGeo("intersection", { column: "regions", outputTable: true });
4096
+ * ```
4097
+ */
4098
+ aggregateGeo(method: "union" | "intersection", options?: {
4099
+ column?: string;
4100
+ categories?: string | string[];
4101
+ outputTable?: string | boolean;
4102
+ }): Promise<this>;
4103
+ /**
4104
+ * Transforms closed linestring geometries into polygon geometries.
4105
+ *
4106
+ * @param column - The name of the column storing the linestring geometries. If omitted, the method will automatically attempt to find a geometry column.
4107
+ * @returns A promise that resolves when the transformation is complete.
4108
+ * @category Geospatial
4109
+ *
4110
+ * @example
4111
+ * ```ts
4112
+ * // Transform closed linestrings in the default geometry column into polygons
4113
+ * await table.linesToPolygons();
4114
+ * ```
4115
+ *
4116
+ * @example
4117
+ * ```ts
4118
+ * // Transform closed linestrings in a specific column named 'routeLines' into polygons
4119
+ * await table.linesToPolygons("routeLines");
4120
+ * ```
4121
+ */
4122
+ linesToPolygons(column?: string): Promise<void>;
4123
+ /**
4124
+ * Returns the bounding box of geometries in `[minLat, minLon, maxLat, maxLon]` order.
4125
+ * 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).
4126
+ *
4127
+ * @param column - The name of the column storing geometries. If omitted, the method will automatically attempt to find a geometry column.
4128
+ * @returns A promise that resolves to an array `[minLat, minLon, maxLat, maxLon]` representing the bounding box.
4129
+ * @category Geospatial
4130
+ *
4131
+ * @example
4132
+ * ```ts
4133
+ * // Get the bounding box of geometries in the default column
4134
+ * const bbox = await table.getBoundingBox();
4135
+ * console.log(bbox); // e.g., [45.0, -75.0, 46.0, -73.0]
4136
+ * ```
4137
+ *
4138
+ * @example
4139
+ * ```ts
4140
+ * // Get the bounding box of geometries in a specific column named 'areaGeom'
4141
+ * const areaBbox = await table.getBoundingBox("areaGeom");
4142
+ * console.log(areaBbox);
4143
+ * ```
4144
+ */
4145
+ getBoundingBox(column?: string): Promise<[number, number, number, number]>;
4146
+ /**
4147
+ * Returns the table's geospatial data as a GeoJSON object.
4148
+ * If the table has multiple geometry columns, you must specify which one to use.
4149
+ *
4150
+ * @param column - The name of the column storing the geometries. If omitted, the method will automatically attempt to find a geometry column.
4151
+ * @param options - An optional object with configuration options:
4152
+ * @param options.rewind - If `true`, rewinds the coordinates of polygons to follow the spherical winding order (important for D3.js). Defaults to `false`.
4153
+ * @returns A promise that resolves to a GeoJSON object representing the table's geospatial data.
4154
+ * @category Getting Data
4155
+ *
4156
+ * @example
4157
+ * ```ts
4158
+ * // Get GeoJSON data from the default geometry column
4159
+ * const geojson = await table.getGeoData();
4160
+ * console.log(geojson);
4161
+ * ```
4162
+ *
4163
+ * @example
4164
+ * ```ts
4165
+ * // Get GeoJSON data from a specific geometry column named 'myGeometries'
4166
+ * const myGeomJson = await table.getGeoData("myGeometries");
4167
+ * console.log(myGeomJson);
4168
+ * ```
4169
+ *
4170
+ * @example
4171
+ * ```ts
4172
+ * // Get GeoJSON data and rewind polygon coordinates for D3.js compatibility
4173
+ * const rewoundGeojson = await table.getGeoData(undefined, { rewind: true });
4174
+ * console.log(rewoundGeojson);
4175
+ * ```
4176
+ */
4177
+ getGeoData(column?: string, options?: {
4178
+ rewind?: boolean;
4179
+ }): Promise<{
4180
+ type: string;
4181
+ features: unknown[];
4182
+ }>;
4183
+ /**
4184
+ * Writes the table's data to a file in various formats (CSV, JSON, Parquet, DuckDB, SQLite).
4185
+ * If the specified path does not exist, it will be created.
4186
+ *
4187
+ * @param file - The absolute path to the output file (e.g., `"./output.csv"`, `"./output.json"`).
4188
+ * @param options - An optional object with configuration options:
4189
+ * @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`.
4190
+ * @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.
4191
+ * @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`.
4192
+ * @returns A promise that resolves when the data has been written to the file.
4193
+ * @category File Operations
4194
+ *
4195
+ * @example
4196
+ * ```ts
4197
+ * // Write data to a CSV file
4198
+ * await table.writeData("./output.csv");
4199
+ * ```
4200
+ *
4201
+ * @example
4202
+ * ```ts
4203
+ * // Write data to a JSON file with GZIP compression.
4204
+ * // The output file will be named output.json.gz.
4205
+ * await table.writeData("./output.json", { compression: true });
4206
+ * ```
4207
+ *
4208
+ * @example
4209
+ * ```ts
4210
+ * // Write data to a Parquet file
4211
+ * await table.writeData("./output.parquet");
4212
+ * ```
4213
+ *
4214
+ * @example
4215
+ * ```ts
4216
+ * // Write data to a DuckDB database file
4217
+ * await table.writeData("./my_database.db");
4218
+ * ```
4219
+ *
4220
+ * @example
4221
+ * ```ts
4222
+ * // Write data to a SQLite database file
4223
+ * await table.writeData("./my_database.sqlite");
4224
+ * ```
4225
+ *
4226
+ * @example
4227
+ * ```ts
4228
+ * // Write JSON data with dates formatted as ISO strings
4229
+ * await table.writeData("./output_dates.json", { formatDates: true });
4230
+ * ```
4231
+ */
4232
+ writeData(file: string, options?: {
4233
+ compression?: boolean;
4234
+ dataAsArrays?: boolean;
4235
+ formatDates?: boolean;
4236
+ }): Promise<void>;
4237
+ /**
4238
+ * Writes the table's geospatial data to a file in GeoJSON, GeoParquet, or Shapefile format.
4239
+ * If the specified path does not exist, it will be created.
4240
+ *
4241
+ * @param file - The absolute path to the output file (e.g., `"./output.geojson"`, `"./output.geoparquet"`, `"./shapefile-folder/output.shp"`).
4242
+ * @param options - An optional object with configuration options:
4243
+ * @param options.precision - For GeoJSON, the maximum number of figures after the decimal separator to write in coordinates. Defaults to `undefined` (full precision).
4244
+ * @param options.compression - For GeoParquet, if `true`, the output will be ZSTD compressed. Defaults to `false`.
4245
+ * @param options.rewind - For GeoJSON, if `true`, rewinds the coordinates of polygons to follow the right-hand rule (RFC 7946). Defaults to `false`.
4246
+ * @param options.metadata - For GeoJSON, an object to be added as top-level metadata to the GeoJSON output.
4247
+ * @param options.formatDates - For GeoJSON, if `true`, formats date and timestamp columns to ISO 8601 strings. Defaults to `false`.
4248
+ * @returns A promise that resolves when the geospatial data has been written to the file.
4249
+ * @category File Operations
4250
+ *
4251
+ * @example
4252
+ * ```ts
4253
+ * // Write geospatial data to a GeoJSON file
4254
+ * await table.writeGeoData("./output.geojson");
4255
+ * ```
4256
+ *
4257
+ * @example
4258
+ * ```ts
4259
+ * // Write geospatial data to a compressed GeoParquet file
4260
+ * await table.writeGeoData("./output.geoparquet", { compression: true });
4261
+ * ```
4262
+ *
4263
+ * @example
4264
+ * ```ts
4265
+ * // Write geospatial data to a Shapefile with all relevant files in the same folder
4266
+ * await table.writeGeoData("./shapefile-folder/output.shp");
4267
+ * ```
4268
+ *
4269
+ * @example
4270
+ * ```ts
4271
+ * // Write GeoJSON with specific precision and metadata
4272
+ * await table.writeGeoData("./output_high_precision.geojson", {
4273
+ * precision: 6,
4274
+ * metadata: { source: "SimpleDataAnalysis" },
4275
+ * });
4276
+ * ```
4277
+ */
4278
+ writeGeoData(file: string, options?: {
4279
+ precision?: number;
4280
+ compression?: boolean;
4281
+ rewind?: boolean;
4282
+ metadata?: unknown;
4283
+ formatDates?: boolean;
4284
+ }): Promise<void>;
4285
+ /**
4286
+ * Caches the results of computations in `./.sda-cache`.
4287
+ * You should add `./.sda-cache` to your `.gitignore` file.
4288
+ *
4289
+ * @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.
4290
+ * @param options - An optional object with configuration options:
4291
+ * @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.
4292
+ * @returns A promise that resolves when the computations are complete or the data is loaded from cache.
4293
+ * @category Caching
4294
+ *
4295
+ * @example
4296
+ * ```ts
4297
+ * // Basic usage: computations are cached and re-run only if the function content changes
4298
+ * const sdb = new SimpleDB();
4299
+ * const table = sdb.newTable();
4300
+ *
4301
+ * await table.cache(async () => {
4302
+ * await table.loadData("items.csv");
4303
+ * await table.summarize({
4304
+ * values: "price",
4305
+ * categories: "department",
4306
+ * summaries: ["min", "max", "mean"],
4307
+ * });
4308
+ * });
4309
+ *
4310
+ * // It's important to call done() on the SimpleDB instance to clean up the cache.
4311
+ * // This prevents the cache from growing indefinitely.
4312
+ * await sdb.done();
4313
+ * ```
4314
+ *
4315
+ * @example
4316
+ * ```ts
4317
+ * // Cache with a Time-To-Live (TTL) of 60 seconds
4318
+ * // The computations will be re-run if the cached data is older than 1 minute or if the function content changes.
4319
+ * const sdb = new SimpleDB();
4320
+ * const table = sdb.newTable();
4321
+ *
4322
+ * await table.cache(async () => {
4323
+ * await table.loadData("items.csv");
4324
+ * await table.summarize({
4325
+ * values: "price",
4326
+ * categories: "department",
4327
+ * summaries: ["min", "max", "mean"],
4328
+ * });
4329
+ * }, { ttl: 60 });
4330
+ *
4331
+ * await sdb.done();
4332
+ * ```
4333
+ *
4334
+ * @example
4335
+ * ```ts
4336
+ * // Enable verbose logging for cache operations via SimpleDB instance
4337
+ * const sdb = new SimpleDB({ cacheVerbose: true });
4338
+ * const table = sdb.newTable();
4339
+ *
4340
+ * await table.cache(async () => {
4341
+ * await table.loadData("items.csv");
4342
+ * await table.summarize({
4343
+ * values: "price",
4344
+ * categories: "department",
4345
+ * summaries: ["min", "max", "mean"],
4346
+ * });
4347
+ * });
4348
+ *
4349
+ * await sdb.done();
4350
+ * ```
4351
+ */
4352
+ cache(run: () => Promise<void>, options?: {
4353
+ ttl?: number;
4354
+ }): Promise<void>;
4355
+ /**
4356
+ * Logs a specified number of rows from the table to the console. By default, the first 10 rows are logged.
4357
+ * You can optionally log the column types and filter the data based on conditions.
4358
+ * You can also use JavaScript syntax for conditions (e.g., `&&`, `||`, `===`, `!==`).
4359
+ *
4360
+ * @param options - Either the number of rows to log (a specific number or `"all"`) or an object with configuration options:
4361
+ * @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.
4362
+ * @param options.types - If `true`, logs the column types along with the data. Defaults to `false`.
4363
+ * @param options.conditions - A SQL `WHERE` clause condition to filter the data before logging. Defaults to no condition.
4364
+ * @returns A promise that resolves when the table data has been logged.
4365
+ * @category Logging
4366
+ *
4367
+ * @example
4368
+ * ```ts
4369
+ * // Log the first 10 rows (default behavior)
4370
+ * await table.logTable();
4371
+ * ```
4372
+ *
4373
+ * @example
4374
+ * ```ts
4375
+ * // Log the first 50 rows
4376
+ * await table.logTable(50);
4377
+ * ```
4378
+ *
4379
+ * @example
4380
+ * ```ts
4381
+ * // Log all rows
4382
+ * await table.logTable("all");
4383
+ * ```
4384
+ *
4385
+ * @example
4386
+ * ```ts
4387
+ * // Log the first 20 rows and include column types
4388
+ * await table.logTable({ nbRowsToLog: 20, types: true });
4389
+ * ```
4390
+ *
4391
+ * @example
4392
+ * ```ts
4393
+ * // Log rows where 'status' is 'active' (using JS syntax for conditions)
4394
+ * await table.logTable({ conditions: `status === 'active'` });
4395
+ * ```
4396
+ */
4397
+ logTable(options?: "all" | number | {
4398
+ nbRowsToLog?: number | "all";
4399
+ types?: boolean;
4400
+ conditions?: string;
4401
+ }): Promise<void>;
4402
+ /**
4403
+ * Generates and logs a histogram of a numeric column to the console.
4404
+ *
4405
+ * @param values - The name of the numeric column for which to generate the histogram.
4406
+ * @param options - An optional object with configuration options:
4407
+ * @param options.bins - The number of bins (intervals) to use for the histogram. Defaults to 10.
4408
+ * @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.
4409
+ * @param options.compact - If `true`, the histogram will be displayed in a more compact format. Defaults to `false`.
4410
+ * @param options.width - The maximum width of the histogram bars in characters.
4411
+ * @returns A promise that resolves when the histogram has been logged to the console.
4412
+ * @category Dataviz
4413
+ *
4414
+ * @example
4415
+ * // Basic histogram of the 'temperature' column
4416
+ * ```typescript
4417
+ * await table.logHistogram("temperature")
4418
+ * ```
4419
+ *
4420
+ * @example
4421
+ * // Histogram with 20 bins and custom label formatting
4422
+ * ```typescript
4423
+ * await table.logHistogram("age", {
4424
+ * bins: 20,
4425
+ * formatLabels: (min, max) => `${min}-${max} years`,
4426
+ * });
4427
+ * ```
4428
+ */
4429
+ /**
4430
+ * 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.
4431
+ * It internally calls the `getDescription` method to retrieve the descriptive statistics.
4432
+ *
4433
+ * @returns A promise that resolves when the column description has been logged to the console.
4434
+ * @category Logging
4435
+ *
4436
+ * @example
4437
+ * ```ts
4438
+ * // Log descriptive information for all columns in the table
4439
+ * await table.logDescription();
4440
+ * ```
4441
+ */
4442
+ logDescription(): Promise<void>;
4443
+ /**
4444
+ * Retrieves the projection of a specified geospatial column.
4445
+ *
4446
+ * @param column - The name of the geospatial column for which to retrieve the projection.
4447
+ * @returns A promise that resolves to the projection of the specified column.
4448
+ * @category Geospatial
4449
+ *
4450
+ * @example
4451
+ * ```ts
4452
+ * // Get the projection of the 'geom' column
4453
+ * const projection = await table.getProjection("geom");
4454
+ * ```
4455
+ */
4456
+ getProjection(column: string): Promise<string>;
4457
+ /**
4458
+ * Logs the projections of the geospatial data (if any) to the console.
4459
+ *
4460
+ * @returns A promise that resolves to the SimpleTable instance after logging the projections.
4461
+ * @category Logging
4462
+ *
4463
+ * @example
4464
+ * ```ts
4465
+ * // Log the geospatial projections of the table
4466
+ * await table.logProjections();
4467
+ * ```
4468
+ */
4469
+ logProjections(): Promise<this>;
4470
+ /**
4471
+ * Logs the types of all columns in the table to the console.
4472
+ *
4473
+ * @returns A promise that resolves to the SimpleTable instance after logging the column types.
4474
+ * @category Logging
4475
+ *
4476
+ * @example
4477
+ * ```ts
4478
+ * // Log the data types of all columns in the table
4479
+ * await table.logTypes();
4480
+ * ```
4481
+ */
4482
+ logTypes(): Promise<this>;
4483
+ /**
4484
+ * Logs unique values for a specified column to the console. By default, a maximum of 100 values are logged (depending on your runtime).
4485
+ * You can optionally stringify the values to see them all.
4486
+ *
4487
+ * @param column - The name of the column from which to retrieve and log unique values.
4488
+ * @param options - An optional object with configuration options:
4489
+ * @param options.stringify - If `true`, converts the unique values to a JSON string before logging. Defaults to `false`.
4490
+ * @returns A promise that resolves to the SimpleTable instance after logging the unique values.
4491
+ * @category Logging
4492
+ *
4493
+ * @example
4494
+ * ```ts
4495
+ * // Logs unique values for the column "name"
4496
+ * await table.logUniques("name");
4497
+ * ```
4498
+ *
4499
+ * @example
4500
+ * ```ts
4501
+ * // Logs unique values for the column "name" and stringifies them
4502
+ * await table.logUniques("name", { stringify: true });
4503
+ * ```
4504
+ */
4505
+ logUniques(column: string, options?: {
4506
+ stringify?: boolean;
4507
+ }): Promise<this>;
4508
+ /**
4509
+ * Logs the columns in the table to the console. You can optionally include their data types.
4510
+ *
4511
+ * @param options - An optional object with configuration options:
4512
+ * @param options.types - If `true`, logs the column names along with their data types. Defaults to `false`.
4513
+ * @returns A promise that resolves to the SimpleTable instance after logging the columns.
4514
+ * @category Logging
4515
+ *
4516
+ * @example
4517
+ * ```ts
4518
+ * // Log only the column names
4519
+ * await table.logColumns();
4520
+ * ```
4521
+ *
4522
+ * @example
4523
+ * ```ts
4524
+ * // Log column names along with their types
4525
+ * await table.logColumns({ types: true });
4526
+ * ```
4527
+ */
4528
+ logColumns(options?: {
4529
+ types?: boolean;
4530
+ }): Promise<this>;
4531
+ /**
4532
+ * Logs the total number of rows in the table to the console.
4533
+ *
4534
+ * @returns A promise that resolves to the SimpleTable instance after logging the row count.
4535
+ * @category Logging
4536
+ *
4537
+ * @example
4538
+ * ```ts
4539
+ * // Log the total number of rows in the table
4540
+ * await table.logNbRows();
4541
+ * ```
4542
+ */
4543
+ logNbRows(): Promise<this>;
4544
+ /**
4545
+ * 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.
4546
+ *
4547
+ * @param count - The number of rows to log from the bottom of the table. Defaults to the table's `nbRowsToLog` option if not specified.
4548
+ * @param options - An optional object with logging preferences.
4549
+ * @param options.originalOrder - If true, the rows are displayed in their original order (top to bottom). Defaults to false.
4550
+ * @returns A promise that resolves when the rows have been logged to the console.
4551
+ * @category Logging
4552
+ *
4553
+ * @example
4554
+ * ```ts
4555
+ * // Log bottom rows with default count (uses table's nbRowsToLog option)
4556
+ * await table.logBottom();
4557
+ * ```
4558
+ *
4559
+ * @example
4560
+ * ```ts
4561
+ * // Log the last 10 rows (displayed with last row first)
4562
+ * await table.logBottom(10);
4563
+ * ```
4564
+ *
4565
+ * @example
4566
+ * ```ts
4567
+ * // Log the last 5 rows in original order (top to bottom)
4568
+ * await table.logBottom(5, { originalOrder: true });
4569
+ * ```
4570
+ */
4571
+ logBottom(count?: number, options?: {
4572
+ originalOrder?: boolean;
4573
+ }): Promise<void>;
4574
+ /**
4575
+ * Logs the extent (minimum and maximum values) of a numeric column to the console.
4576
+ *
4577
+ * @param column - The name of the numeric column for which to log the extent.
4578
+ * @returns A promise that resolves when the column extent has been logged to the console.
4579
+ * @category Logging
4580
+ *
4581
+ * @example
4582
+ * ```ts
4583
+ * // Log the extent of the 'price' column
4584
+ * await table.logExtent("price");
4585
+ * ```
4586
+ */
4587
+ logExtent(column: string): Promise<void>;
4588
+ }
4589
+ //# sourceMappingURL=SimpleTable.d.ts.map