{"_id":"@timescaledb/core","_rev":"10-1625ed83bac6c23d1f4f4cfec35db5df","name":"@timescaledb/core","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0-alpha.0":{"name":"@timescaledb/core","version":"0.0.0-alpha.0","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.0","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"ff0fb7788523cf7196719864d731af08aa02a8bd","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.0.tgz","fileCount":23,"integrity":"sha512-pT134RJmMKLq5MNhDPw/Z3dMlbWEq6iDyS1tMKaV3gw1kv7rl+8ZplW0cp5LYJZjmOum6WdX8+iDqPsPmbISLw==","signatures":[{"sig":"MEUCIDFJ9GcgBBDFfbnRotlZE6IcdrGQ+NlPJkCubR59I28jAiEA2xiot7JB4ei8DGxSdrhe9V9uyl/vaCNu49uwcfTWLmQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38581},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"87a6cd59355dc7ba885b335e375cf085724ef404","scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"This package contains the core functionality for working with TimescaleDB in Node.js. It includes the main `TimescaleDB` class for generating the appropriate SQL queries for usage with your TypeScript ORM's. See the migrations directory in the `examples/n","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"workspace:^","@timescaledb/schemas":"workspace:^"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.0_1737946955841_0.58382247892739","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.1":{"name":"@timescaledb/core","version":"0.0.0-alpha.1","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.1","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"be13a93c10aa9901e1031249511078ed3fda3d9a","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.1.tgz","fileCount":24,"integrity":"sha512-kIepwifU6EY2eNsaGU+7KprvCdntcEsnCuOnd86VRbe/hsKt2dNg3hQnpdonAstg5Qav8yDT/oQRiKpe6MY/sA==","signatures":[{"sig":"MEUCICatSRvhwpplwdmszWBKxx+s70kldNTn7qDUOA7mzRS8AiEA3CHiLEZlg4iaZ+9hKC3Y037rZt2+5rSqWzy7FwYR608=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39650},"main":"dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.1.tgz","types":"dist/index.d.ts","scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/9c901fcf02bb68cd9570c56e5fe249b5/timescaledb-core-0.0.0-alpha.1.tgz","_integrity":"sha512-kIepwifU6EY2eNsaGU+7KprvCdntcEsnCuOnd86VRbe/hsKt2dNg3hQnpdonAstg5Qav8yDT/oQRiKpe6MY/sA==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"This package contains the core functionality for working with TimescaleDB in Node.js. It includes the main `TimescaleDB` class for generating the appropriate SQL queries for usage with your TypeScript ORM's. See the migrations directory in the `examples/n","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.1","@timescaledb/schemas":"0.0.0-alpha.1"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.1_1738001340152_0.3245662622732586","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.2":{"name":"@timescaledb/core","version":"0.0.0-alpha.2","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.2","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"6a78db1e54532cbf31e8771a9fb1111998de1526","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.2.tgz","fileCount":27,"integrity":"sha512-HvlDeq48+LPXVT3dms/2OFzlJD26EKZO7AWWKL4kvQIQWUktI0ckF3mFXVVPwZi4DWUrpt8BTlAWZjf7E7SIYw==","signatures":[{"sig":"MEQCIGxFZOm4c8lqC1sVCJ2uv0AQZgI1QXNjUQiarYrHqtUlAiAa+cVhHLXi8JMHFGIDa5/QDGHI3rDrG6NZqbZ6llaqrA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55963},"main":"dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.2.tgz","types":"dist/index.d.ts","scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/f80e22c067f7f2e0d726f76da6804517/timescaledb-core-0.0.0-alpha.2.tgz","_integrity":"sha512-HvlDeq48+LPXVT3dms/2OFzlJD26EKZO7AWWKL4kvQIQWUktI0ckF3mFXVVPwZi4DWUrpt8BTlAWZjf7E7SIYw==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.2","@timescaledb/schemas":"0.0.0-alpha.2"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.2_1738701342327_0.12221177029265484","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.3":{"name":"@timescaledb/core","version":"0.0.0-alpha.3","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.3","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"a58278ad323ae3f936f5cb50aef2743a773b64d9","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.3.tgz","fileCount":33,"integrity":"sha512-BQw4C6ZqKxMlBk9JRjiPThTrTAbCdgox92/cW3DNZioveoi3tCJqrQV/gI+/4OSQLq2gMK21meWjtrDMY94/IA==","signatures":[{"sig":"MEQCICYjyK5tvw+qCgduIsLjOm1CGwPtgIxfQAU19sq/arbeAiAB0/BThMfzjOobsNnylKbo71J+8Djn5u6dAKvGDMHTAA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72371},"main":"dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.3.tgz","types":"dist/index.d.ts","scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/0b439a6cc8abcd71890996865e97ff3f/timescaledb-core-0.0.0-alpha.3.tgz","_integrity":"sha512-BQw4C6ZqKxMlBk9JRjiPThTrTAbCdgox92/cW3DNZioveoi3tCJqrQV/gI+/4OSQLq2gMK21meWjtrDMY94/IA==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.3","@timescaledb/schemas":"0.0.0-alpha.3"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.3_1739384138779_0.5999145909383257","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.4":{"name":"@timescaledb/core","version":"0.0.0-alpha.4","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.4","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"b96b8d495f3c79ab8ec4f62fa54858fdf2b67ed2","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.4.tgz","fileCount":36,"integrity":"sha512-LKGGIhINCKgLPnIlMzHIjNJITtvAk/h/3Uq15hd45tAkLERdLaGH5sxsSGp9Lg7kk/w1P6rOY8E3oGUej7U5Xw==","signatures":[{"sig":"MEQCIEistyKlU9xvWPLNlNKHIs2x4fuXFi9KX+danecJl3nwAiAb9pQffTlVvkfMdYNBihgBAsY2AmWlzogNs8m0cQDuRA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79862},"main":"dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.4.tgz","types":"dist/index.d.ts","scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/f196b05cd61671353f54707aaffe3c4b/timescaledb-core-0.0.0-alpha.4.tgz","_integrity":"sha512-LKGGIhINCKgLPnIlMzHIjNJITtvAk/h/3Uq15hd45tAkLERdLaGH5sxsSGp9Lg7kk/w1P6rOY8E3oGUej7U5Xw==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.4","@timescaledb/schemas":"0.0.0-alpha.4"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.4_1739486973485_0.47454423404280033","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.5":{"name":"@timescaledb/core","version":"0.0.0-alpha.5","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.5","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"c2cc129003d4158dab703a79cfcaa6ce533f8c0a","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.5.tgz","fileCount":36,"integrity":"sha512-c7x9yk6jgB52B6ahZ0q6zoM2fDJkxl7CLXgTajx/SyayqR9/jeJhMUMwloUr18jNBFttRgGmAEyW5Borxa1h/g==","signatures":[{"sig":"MEUCIQCyNCbqAi4GHo37CklHdyDRVSIBy/yGQ4ZkWgQ3DMrUxgIgX1oVWaaF0sOqMPstb3Hau4VCvyXjbQKnB2xzMyeIRrg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80009},"main":"./dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.5.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/d59b121248e2a58dc909b38254789ca7/timescaledb-core-0.0.0-alpha.5.tgz","_integrity":"sha512-c7x9yk6jgB52B6ahZ0q6zoM2fDJkxl7CLXgTajx/SyayqR9/jeJhMUMwloUr18jNBFttRgGmAEyW5Borxa1h/g==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.5","@timescaledb/schemas":"0.0.0-alpha.5"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.5_1739498966000_0.7107162290761193","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.6":{"name":"@timescaledb/core","version":"0.0.0-alpha.6","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.6","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"5c8dbe010be5e101b14f48acbe40edb6d36cff4c","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.6.tgz","fileCount":36,"integrity":"sha512-V8VKRvQG6pMvvt+pLesukpAFrx4xQFqhbGc8jMquCqN4GUPFHbpZqS/ROtK3EWZJ3WvmhPn3Lv86UWNkz6WQRw==","signatures":[{"sig":"MEUCIQC78tfQGX3AtosCiOAu399ejcOTgRP0bKgbPEDTLRNloAIgAK+PbMN//OIgXSNRC7JBSwJk6uylYOlQ1XVQPRd5in8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81737},"main":"./dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.6.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/7160c20c21e50ab96e9ee27b86c05ae5/timescaledb-core-0.0.0-alpha.6.tgz","_integrity":"sha512-V8VKRvQG6pMvvt+pLesukpAFrx4xQFqhbGc8jMquCqN4GUPFHbpZqS/ROtK3EWZJ3WvmhPn3Lv86UWNkz6WQRw==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.6","@timescaledb/schemas":"0.0.0-alpha.6"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.6_1739500605240_0.9706718155619212","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.7":{"name":"@timescaledb/core","version":"0.0.0-alpha.7","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.7","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"5b39a1765bec45b82db13d945c66bce3d8a255c5","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.7.tgz","fileCount":36,"integrity":"sha512-VtkqzKlCI8CuEZR9+YlVYEpd4+XUjjR26K1GIa7Dw+WBMV687O29LgHsoFGfATC1RDPDzY6awBsJsfsKo1hZ/g==","signatures":[{"sig":"MEYCIQCCsOn7c/KpjkID/iK0iespkC4d+XyXP3g+FEoE17MLuwIhAIOfBKc1Xs8Rk3RWBwbEaTI6017qtLpE1od44NGcUhSQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81737},"main":"./dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.7.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/6b11b3704a149ef18c6d87273dc8e731/timescaledb-core-0.0.0-alpha.7.tgz","_integrity":"sha512-VtkqzKlCI8CuEZR9+YlVYEpd4+XUjjR26K1GIa7Dw+WBMV687O29LgHsoFGfATC1RDPDzY6awBsJsfsKo1hZ/g==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.7","@timescaledb/schemas":"0.0.0-alpha.7"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.7_1740526201918_0.10007343880998265","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.8":{"name":"@timescaledb/core","version":"0.0.0-alpha.8","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","_id":"@timescaledb/core@0.0.0-alpha.8","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"homepage":"https://github.com/timescale/timescaledb-ts","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"dist":{"shasum":"8159e0d554b4264a40c54a33cd65b2adf67ce6d6","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.0-alpha.8.tgz","fileCount":36,"integrity":"sha512-pFLQU6pdBUrlCQszgdK8hvN+6lHYsHrxMXCqvK1egIVUzQjvCrgpZROF3XUEQo/BV2tuks84eSQDMuAh7hBRIg==","signatures":[{"sig":"MEUCIAP6+oY/9uHma1lb1h8TXYcBvtdJzafKoELH1SkMMWbsAiEAhQbiOq1CSgYNe3YX1kka5mArwU4xfoMCp9jLJpXKit4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81737},"main":"./dist/index.js","_from":"file:timescaledb-core-0.0.0-alpha.8.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"test":"jest --runInBand","build":"tsc"},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"_resolved":"/tmp/5ea3194def2f06356506cf960f34680d/timescaledb-core-0.0.0-alpha.8.tgz","_integrity":"sha512-pFLQU6pdBUrlCQszgdK8hvN+6lHYsHrxMXCqvK1egIVUzQjvCrgpZROF3XUEQo/BV2tuks84eSQDMuAh7hBRIg==","repository":{"url":"git+https://github.com/timescale/timescaledb-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@timescaledb/utils":"0.0.0-alpha.8","@timescaledb/schemas":"0.0.0-alpha.8"},"typesVersions":{"*":{"*":["src/*"]}},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.0-alpha.8_1744456587585_0.6638530544215298","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@timescaledb/core","version":"0.0.1","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"homepage":"https://github.com/timescale/timescaledb-ts","repository":{"type":"git","url":"git+https://github.com/timescale/timescaledb-ts.git"},"keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"author":{"name":"Timescale"},"license":"MIT","bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"typesVersions":{"*":{"*":["src/*"]}},"dependencies":{"@timescaledb/schemas":"0.0.1","@timescaledb/utils":"0.0.1"},"devDependencies":{},"scripts":{"build":"tsc","test":"jest --runInBand"},"_id":"@timescaledb/core@0.0.1","description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","_integrity":"sha512-T+X8u6qjke6F5pZFSA+L2UJnXkOIKE1isg9LkwyRFgVJR91zmZuLONzf9I3c937czExc0enZapBLreMsJYv2Zg==","_resolved":"/tmp/471bdd32be85545b15ea42e4faf15259/timescaledb-core-0.0.1.tgz","_from":"file:timescaledb-core-0.0.1.tgz","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-T+X8u6qjke6F5pZFSA+L2UJnXkOIKE1isg9LkwyRFgVJR91zmZuLONzf9I3c937czExc0enZapBLreMsJYv2Zg==","shasum":"88cd8d9643f7584156f806cf3bff51ab82549942","tarball":"https://registry.npmjs.org/@timescaledb/core/-/core-0.0.1.tgz","fileCount":36,"unpackedSize":81713,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEDrjP3sjKjbao2UrAJ6a8umfoQ5m6TxS4LXKyWVEST4AiBaIpDWa8JhROkcYh8IOnhM5LixX8tYJYKeK3odcsD9CA=="}]},"_npmUser":{"name":"danstarns","email":"danielstarns@hotmail.com"},"directories":{},"maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.0.1_1745422955370_0.8136352296683924"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-27T03:02:35.721Z","modified":"2025-04-23T15:42:35.804Z","0.0.0-alpha.0":"2025-01-27T03:02:36.046Z","0.0.0-alpha.1":"2025-01-27T18:09:00.316Z","0.0.0-alpha.2":"2025-02-04T20:35:42.518Z","0.0.0-alpha.3":"2025-02-12T18:15:38.989Z","0.0.0-alpha.4":"2025-02-13T22:49:33.687Z","0.0.0-alpha.5":"2025-02-14T02:09:26.204Z","0.0.0-alpha.6":"2025-02-14T02:36:45.427Z","0.0.0-alpha.7":"2025-02-25T23:30:02.115Z","0.0.0-alpha.8":"2025-04-12T11:16:27.756Z","0.0.1":"2025-04-23T15:42:35.576Z"},"bugs":{"url":"https://github.com/timescale/timescaledb-ts/issues"},"author":{"name":"Timescale"},"license":"MIT","homepage":"https://github.com/timescale/timescaledb-ts","keywords":["timescaledb","timeseries","database","query","typescript","core","genration","builder"],"repository":{"type":"git","url":"git+https://github.com/timescale/timescaledb-ts.git"},"description":"The `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other T","maintainers":[{"name":"danstarns","email":"danielstarns@hotmail.com"}],"readme":"# @timescaledb/core\n\nThe `@timescaledb/core` package provides fundamental building blocks for working with TimescaleDB in TypeScript/JavaScript applications. It includes SQL query builders and utilities for managing hypertables, continuous aggregates, compression, and other TimescaleDB-specific features.\n\n## Installation\n\n```bash\nnpm install @timescaledb/core\n```\n\n## Quick Start\n\n```typescript\nimport { TimescaleDB } from '@timescaledb/core';\n\n// Create a hypertable\nconst hypertable = TimescaleDB.createHypertable('measurements', {\n  by_range: { column_name: 'time' },\n});\n\n// Generate SQL to create the hypertable\nconst sql = hypertable.up().build();\n// SELECT create_hypertable('measurements', by_range('time'));\n```\n\n## API Reference\n\n### TimescaleDB Class\n\nThe main entry point for all functionality.\n\n#### Creating a Hypertable\n\n```typescript\nconst hypertable = TimescaleDB.createHypertable('table_name', {\n  by_range: {\n    column_name: 'time',\n  },\n  compression: {\n    compress: true,\n    compress_orderby: 'time',\n    compress_segmentby: 'device_id',\n    policy: {\n      schedule_interval: '7 days',\n    },\n  },\n});\n\n// Generate creation SQL\nconst createSql = hypertable.up().build();\n\n// Generate drop SQL\nconst dropSql = hypertable.down().build();\n\n// Check if hypertable exists\nconst checkSql = hypertable.inspect().build();\n```\n\n#### Creating a Continuous Aggregate\n\n```typescript\nconst aggregate = TimescaleDB.createContinuousAggregate('daily_summary', 'raw_data', {\n  bucket_interval: '1 day',\n  time_column: 'time',\n  aggregates: {\n    avg_temp: {\n      type: 'avg',\n      column: 'temperature',\n      column_alias: 'average_temperature',\n    },\n    max_temp: {\n      type: 'max',\n      column: 'temperature',\n      column_alias: 'max_temperature',\n    },\n  },\n  refresh_policy: {\n    start_offset: '3 days',\n    end_offset: '1 hour',\n    schedule_interval: '1 hour',\n  },\n});\n\n// Generate creation SQL\nconst createSql = aggregate.up().build();\n\n// Generate drop SQL\nconst dropSql = aggregate.down().build();\n```\n\n#### Managing Compression\n\n```typescript\nconst hypertable = TimescaleDB.createHypertable('measurements', {\n  by_range: { column_name: 'time' },\n  compression: {\n    compress: true,\n    compress_orderby: 'time',\n    compress_segmentby: 'device_id',\n  },\n});\n\n// Get compression statistics\nconst statsSql = hypertable\n  .compression()\n  .stats({\n    select: {\n      total_chunks: true,\n      compressed_chunks: true,\n    },\n  })\n  .build();\n```\n\n#### Time Bucket Queries\n\n```typescript\nconst hypertable = TimescaleDB.createHypertable('measurements', {\n  by_range: { column_name: 'time' },\n});\n\n// Basic time bucket query\nconst { sql, params } = hypertable\n  .timeBucket({\n    interval: '1 hour',\n    metrics: [\n      { type: 'count', alias: 'total' },\n      { type: 'distinct_count', column: 'device_id', alias: 'unique_devices' },\n    ],\n  })\n  .build({\n    range: {\n      start: new Date('2025-01-01'),\n      end: new Date('2025-02-01'),\n    },\n  });\n\n// With where clause filtering\nconst { sql: filteredSql, params: filteredParams } = hypertable\n  .timeBucket({\n    interval: '1 hour',\n    metrics: [\n      { type: 'count', alias: 'total' },\n      { type: 'distinct_count', column: 'device_id', alias: 'unique_devices' },\n    ],\n  })\n  .build({\n    range: {\n      start: new Date('2025-01-01'),\n      end: new Date('2025-02-01'),\n    },\n    where: {\n      device_id: 'sensor-123', // Simple equality\n      temperature: { '>': 25 }, // Comparison operator\n      status: { IN: ['active', 'warning'] }, // IN clause\n      location: { 'NOT IN': ['zone-a', 'zone-b'] }, // NOT IN clause\n    },\n  });\n```\n\n#### Creating Candlestick Aggregates\n\n```typescript\nconst candlestick = TimescaleDB.createCandlestickAggregate('stock_prices', {\n  time_column: 'timestamp',\n  price_column: 'price',\n  volume_column: 'volume', // optional\n  bucket_interval: '1 hour', // defaults to '1 hour'\n});\n\n// Basic candlestick query\nconst { sql, params } = candlestick.build({\n  range: {\n    start: new Date('2025-01-01'),\n    end: new Date('2025-01-02'),\n  },\n});\n\n// With where clause filtering\nconst { sql: filteredSql, params: filteredParams } = candlestick.build({\n  range: {\n    start: new Date('2025-01-01'),\n    end: new Date('2025-01-02'),\n  },\n  where: {\n    symbol: 'AAPL',\n    volume: { '>': 1000000 },\n    exchange: { IN: ['NYSE', 'NASDAQ'] },\n  },\n});\n\n// Returns candlestick data:\n// bucket_time, open, high, low, close, volume, vwap, etc.\nconst results = await query(sql, params);\n```\n\n## Examples\n\nCheck out our example projects:\n\n- [Node.js + TypeORM Example](https://github.com/timescale/timescaledb-ts/tree/main/examples/node-typeorm)\n- [Node.js + Sequelize Example](https://github.com/timescale/timescaledb-ts/tree/main/examples/node-sequelize)\n\n## Advanced Usage\n\n### Custom SQL Generation\n\nAll builders support granular SQL generation:\n\n```typescript\nconst hypertable = TimescaleDB.createHypertable('measurements', {\n  by_range: { column_name: 'time' },\n});\n\n// Generate only the hypertable creation SQL\nconst createSql = hypertable.up().build();\n\n// Generate only the compression SQL\nconst compressionSql = hypertable\n  .compression()\n  .stats({ select: { total_chunks: true } })\n  .build();\n```\n\n### Migration Integration\n\nThe package works well with migration systems:\n\n```typescript\n// In a migration file\nimport { TimescaleDB } from '@timescaledb/core';\n\nexport async function up(queryRunner) {\n  // Create extension\n  const extension = TimescaleDB.createExtension();\n  await queryRunner.query(extension.up().build());\n\n  // Create hypertable\n  const hypertable = TimescaleDB.createHypertable('measurements', {\n    by_range: { column_name: 'time' },\n  });\n  await queryRunner.query(hypertable.up().build());\n}\n\nexport async function down(queryRunner) {\n  // Drop hypertable\n  const hypertable = TimescaleDB.createHypertable('measurements', {\n    by_range: { column_name: 'time' },\n  });\n  await queryRunner.query(hypertable.down().build());\n\n  // Drop extension\n  const extension = TimescaleDB.createExtension();\n  await queryRunner.query(extension.down().build());\n}\n```\n","readmeFilename":"README.md"}