{"_id":"@math.gl/sql@5.0.0-beta.11","bugs":{"url":"https://github.com/visgl/math.gl/issues"},"dist":{"shasum":"5e49f329111aaca0e8b7ea48e91b1adc57811ad7","tarball":"http://registry-npm.ywwl.com/@math.gl/sql/download/@math.gl/sql-5.0.0-beta.11.tgz","fileCount":334,"integrity":"sha512-VxpySm0tH3muEYcbL6+f/XMPyByNdo2F55YBxxFCx1wp05jeaQkxgdqR6AHxzmg4WPZUYHGOqEcrXIW0WEG4dw==","signatures":[{"sig":"MEUCID4zwhslZeWc1hPgl73t7XW+eN/LaqOZeW/NZT5ZntCQAiEA7/1EeD6KI80wmX2ied4gsqhvO3xMGJjY47h/P4ibJZ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQChd1kQO5sTWnERpFBHPbSQUQeWXN26/x+zBKqwr133bwIhAJrzgZcclx9LUoVWGFGeUnUGjpq5cQnOjoS9vDWQx9Xb"}],"unpackedSize":2657800,"size":585233,"noattachment":false,"key":"/@math.gl/sql/-/@math.gl/sql-5.0.0-beta.11.tgz"},"main":"dist/index.cjs","name":"@math.gl/sql","type":"module","_from":"file:/private/tmp/mathgl-sql-beta11.ct5cYX/math.gl-sql-5.0.0-beta.11.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./arrow":{"types":"./dist/arrow/index.d.ts","import":"./dist/arrow/index.js","require":"./dist/arrow/index.cjs"},"./parser":{"types":"./dist/sql/index.d.ts","import":"./dist/sql/index.js","require":"./dist/sql/index.cjs"},"./scales":{"types":"./dist/scales/index.d.ts","import":"./dist/scales/index.js","require":"./dist/scales/index.cjs"},"./worker":{"types":"./dist/arrow/worker.d.ts","import":"./dist/arrow/worker.js","require":"./dist/arrow/worker.cjs"},"./expressions":{"types":"./dist/expressions/index.d.ts","import":"./dist/expressions/index.js","require":"./dist/expressions/index.cjs"},"./arrow-scales":{"types":"./dist/scales/arrow-scales.d.ts","import":"./dist/scales/arrow-scales.js","require":"./dist/scales/arrow-scales.cjs"},"./math-functions":{"types":"./dist/math/index.d.ts","import":"./dist/math/index.js","require":"./dist/math/index.cjs"},"./color-functions":{"types":"./dist/color/index.d.ts","import":"./dist/color/index.js","require":"./dist/color/index.cjs"},"./worker-entry.js":"./dist/arrow/worker-entry.js","./query-worker-entry.js":"./dist/arrow/query-worker-entry.js"},"license":"MIT","version":"5.0.0-beta.11","_npmUser":{"name":"ibgreen","email":"ib@unfolded.ai"},"homepage":"https://github.com/visgl/math.gl#readme","_resolved":"/private/tmp/mathgl-sql-beta11.ct5cYX/math.gl-sql-5.0.0-beta.11.tgz","_integrity":"sha512-VxpySm0tH3muEYcbL6+f/XMPyByNdo2F55YBxxFCx1wp05jeaQkxgdqR6AHxzmg4WPZUYHGOqEcrXIW0WEG4dw==","repository":{"url":"git+https://github.com/visgl/math.gl.git","type":"git"},"_npmVersion":"11.21.1","description":"Lightweight SQL query engine for Apache Arrow tables","directories":{},"maintainers":[{"name":"ibgreen","email":"ib@unfolded.ai"},{"name":"pessimistress","email":"cxiaoji@gmail.com"}],"sideEffects":["./dist/arrow/worker-entry.js","./src/arrow/worker-entry.ts","./dist/arrow/query-worker-entry.js","./src/arrow/query-worker-entry.ts"],"_nodeVersion":"24.5.0","dependencies":{"@math.gl/core":"5.0.0-beta.11","@math.gl/arrow":"5.0.0-beta.11","@math.gl/tasks":"5.0.0-beta.11","@math.gl/geometry":"5.0.0-beta.11"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"apache-arrow":">=17.0.0"},"peerDependenciesMeta":{"apache-arrow":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sql_5.0.0-beta.11_1794855986063_0.06007245317200127"},"readme":"# @math.gl/sql\n\nA lightweight SQL query engine for Apache Arrow tables.\n\n```bash\nnpm install @math.gl/sql apache-arrow\n```\n\n```ts\nimport {tableFromArrays} from 'apache-arrow';\nimport {queryArrowSQL} from '@math.gl/sql';\n\nconst orders = tableFromArrays({quantity: new Int32Array([2, 1, 3])});\nconst result = queryArrowSQL(\n  'SELECT SUM(quantity) AS units FROM orders',\n  new Map([['orders', orders]])\n);\nconsole.log(result.getChild('units')?.get(0)); // 6n\n```\n\nQuery native Arrow tables, compute columns, aggregate record batches, or run structured queries\nin workers. Apache Arrow 17 or later is required for execution. The `/parser` and `/expressions`\nentry points work without Arrow. Optional `/math-functions` and `/color-functions` entries\nprovide typed query functions.\n\nSee the [SQL documentation](https://math.gl/docs/modules/sql) for the supported SQL subset,\nstreaming APIs, worker execution, and examples.\n","publish_time":1794855986183,"_cnpm_publish_time":1794855986183,"dist-tags":{"beta":"5.0.0-beta.12","latest":"5.0.0-beta.11"}}