{"_id":"@bungres/orm","_rev":"15-5215ff5288850d23ae4087136bf25bef","name":"@bungres/orm","dist-tags":{"latest":"1.3.2"},"versions":{"0.1.0":{"name":"@bungres/orm","version":"0.1.0","author":{"name":"aniket khote"},"_id":"@bungres/orm@0.1.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"e0262c2054d358a10c086c18850632015eb37def","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-0.1.0.tgz","fileCount":52,"integrity":"sha512-7B15LeY0CMnqH6fjVqAMKWGFjg8yWXhPN1eCTo25EPwmmwNrJ9p+2RxttSDJWcisffvp1jR0AXDAeG3nFoo5RA==","signatures":[{"sig":"MEUCIQCrUg9aY9kSiqcTW/kVG6wzlLHX22cbWHP03iVsAPx+vgIgcBYebTx6qKQaZi62rRrAjby+KVb/5gfX1BcRDrivktE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":212014},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"6a73220f5b8ad35f9007e6db1512cbbbaad7981c","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/@bungres/orm"},"_npmVersion":"10.9.8","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_0.1.0_1784271734071_0.3360663477519903","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bungres/orm","version":"0.2.0","author":{"name":"aniket khote"},"_id":"@bungres/orm@0.2.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"931a0ae65389954cd01da597c8bf111bb332f884","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-0.2.0.tgz","fileCount":52,"integrity":"sha512-zeOwRPlqyWDSxRgZQ+FEUV0UW1C08AVqmOxbV5eBTDqa6aK0feEMDIV50bIHPOIKYfisZK7GiBlB+CbPLzMYww==","signatures":[{"sig":"MEUCIDgTC+MWZLQAldIbiWA0rAtPKKHFG0qoQH11wXHAUyPwAiEA82Tf/MIwE0mcBgsagMNXdL8YnlFIJO/l1+y80RA0VfQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":214129},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0c53e8a35b0fd4d42e843e746ad9cd6efcdcad98","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/@bungres/orm"},"_npmVersion":"10.9.8","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_0.2.0_1784283674068_0.8860932010110523","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@bungres/orm","version":"0.3.0","author":{"name":"aniket khote"},"_id":"@bungres/orm@0.3.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"adf3d644760f5e03486c017574352bfc0b0ee570","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-0.3.0.tgz","fileCount":73,"integrity":"sha512-XWZ8z1Tw6ypjszy6VthnviWJ4lhKVjr+E0XJKACQm2BbSbStadukmlPrGZXKkcDCkSjnsg8ZCx7cJJplpAe2dw==","signatures":[{"sig":"MEQCICemRnLxQc4nE/26xP40ziLvmlJf30b4izXA7h0BVmsqAiAIb8eK8HlWnwGcVQiu9yptOpZ143Md6t7soEP/jAv0vQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":256306},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5358fc488dd334b8acdc226495f72b74ceb1caed","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/@bungres/orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_0.3.0_1784298069990_0.04996308653164605","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@bungres/orm","version":"0.4.0","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@0.4.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"fe8a332214494da9359e150833cd9c71a69f62c2","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-0.4.0.tgz","fileCount":52,"integrity":"sha512-RS7IXP97E5ORZoI5qPlPzpiqW6l2RU9C3uO2WERqgPvgGPFcaIvb255PAVbiw8XcIsZ4VDyyWCuNFOaHwmF9tA==","signatures":[{"sig":"MEQCIFE2KI27qrFKPEytiBujbQWx9l2LiCerWosSdAR6eNRsAiAluO0gpU78qr78eEtkUobaFHtRyZAtX8n+5N5wCVyy5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":146193},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c2bac78eeaa43641a4178b5cc39fa2e20bd037f2","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/@bungres/orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_0.4.0_1784352565399_0.6631049157711908","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@bungres/orm","version":"0.5.0","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@0.5.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"5626a2b993ac0f44d4942925ae61f5ba7f48c1f8","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-0.5.0.tgz","fileCount":52,"integrity":"sha512-mSC4XGp56J6m7vadFwSMsH3pJ3CVsLzJfdH+K/JFVeLYfa8roP0l/01bD3DaThhc9qL/eLhs2wEKGJege41v4g==","signatures":[{"sig":"MEUCIEHpIXFRS2toZBJTbHyXzEuAc33XW51P0VUShvr/4+o+AiEA6I/0kKml+WvH/ssEIpQPQxEJzvhnNefhJtInwtYwYzQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":146829},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9e2ae0fa050bce6014ccd9a531af0e7de9ca2fcc","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_0.5.0_1784379568886_0.8695795355883593","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@bungres/orm","version":"0.6.0","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@0.6.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"e74eaa12652753e38cd3998022315d6b62f42f23","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-0.6.0.tgz","fileCount":52,"integrity":"sha512-ekOK1ODUuOlo0W/DWy4IFulxSDNJ6/R86HYzVq/XEOOAA7yABE0fnsh8fxjqixHhfCallK+jRJj6oSTnINOCDg==","signatures":[{"sig":"MEUCIQC8FRJLZ5Gc6+q8tLTRsFecIPmL1y70pLjYB7nAWWNJ9wIgKYRLU6zPU5D5pVav9g6XRO3BH5aifiXLUYEzEzfooB0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":148791},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"36277272b6a46d2d0da2b334b83c7ed7217714a6","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_0.6.0_1784386312165_0.2735458111826299","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@bungres/orm","version":"1.0.0","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.0.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"a9896557f666623a2ddbc9132f801e69b178f21a","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.0.0.tgz","fileCount":60,"integrity":"sha512-HYwhIfRejcglvGQtx0gyDvXe1qa4SutqVxqYfSI+XlXszQv/af+0fyy44Ax75/RNWPATWbQrfnmlrVbkLVf6Iw==","signatures":[{"sig":"MEYCIQDJQ8PaUTlmwmt8Krufef6qeq//FjJ9q12l9knIQeV1cwIhAP1ena7o7JdnWdAXxI8o0MCg/8MzLAzpPxIMmnyKDb20","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":177478},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"d20b16a9030159fa2c06094010ec85d5c93d68b7","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.0.0_1784568439931_0.9338297771396014","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@bungres/orm","version":"1.1.0","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.1.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"ade069b4d907fcb6dda8a062c564ca3ffdad181c","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.1.0.tgz","fileCount":60,"integrity":"sha512-sH8wuRGXxdI++7BKfBXy1m6vLnBKCPQ9jvP19qKyvap2HYv2FKBiT//2YZXcGAodFs8smTZiV6x+rbHcgOO26g==","signatures":[{"sig":"MEUCIA8e1Jcs14mGZgH4G7a1u1pFwE4ECwTqU0UAWQcXSXkOAiEAymi5/LAZP/FgvRr0phIoX/y2L82SprJeYrMU6xCLDK8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":181054},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"33a87c16b797a64cf5c12122742bf1be5a0bb3ad","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.1.0_1784615658669_0.7194257222293048","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@bungres/orm","version":"1.1.1","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.1.1","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"f45d9946b0444574e5b57427b6a98cee268943e7","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.1.1.tgz","fileCount":60,"integrity":"sha512-l8GlU2NpGbC2UpMyvnlZNxWDJAfS8KUsX4mE5Pxe8Q7Xv0IJBmlaCXDh2xLZX4stsJPtAmiM7BX1U6AMRVWLBQ==","signatures":[{"sig":"MEQCICqx7RuVQtWVhz6F0GHZ8qieKCgG+cqI/zjOfxUoIP/fAiB03AVP0LXPyojdnfSfSckoQjGHGh6A6ye+ucXrkV+Bbg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":181315},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"e76e75bbea16086261c78550b75f6949b21f25a9","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.1.1_1784636946705_0.257173139890041","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@bungres/orm","version":"1.2.0","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.2.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"a1ff69092ba32cf4baf01d158a7a9bf20a4fd757","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.2.0.tgz","fileCount":44,"integrity":"sha512-AAkKgfiDmkwUuWA3TXkzE9qIewTAoVd1vaSJUXo8wwxtSrbqDJZ+FTb/Jb5dRxyMK5PZgDXXxYTfd8U8D6jf6Q==","signatures":[{"sig":"MEQCIAPEgyvvnBCJyhiYDwyeXC6YViB5SLIxyYJRxowz8CNYAiACO0NOTobTYDCmsJqNlhvp7fEv/ZDNOl6/0W2mWfM93A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182196},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"800f7e82e3066e069d0155a0309ee36074d270ae","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.14","typescript":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.2.0_1784835450484_0.5636541125949988","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@bungres/orm","version":"1.2.1","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.2.1","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"e22ea53daa3ee2cf63ec6a7524b5c9702b253922","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.2.1.tgz","fileCount":44,"integrity":"sha512-vyfZ0rlqiQ2L8LmGujbpaey9afSDDBkOaS5qQmXwuiWKY9OXHIaAXT4bU56bz3TsOeNqPK5D+S2KuqbLmCixiA==","signatures":[{"sig":"MEQCIAFF02InCEeUj2O030yQDTWmCBKtICwh3z8EV40fZYkSAiA3qwHZuq3q0q4Uwn/0FhJ8Vrd+yKPqhy3JopNvtFHTKQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182873},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"32343a7ed024f939d13f63216a59088e09db06ae","scripts":{"dev":"bun --watch src/index.ts","test":"bun test src/tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm && npm run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.14","typescript":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.2.1_1784836913017_0.9834731085766824","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@bungres/orm","version":"1.2.2","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.2.2","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"4c3d0f7c6512a7c790740dbfd55ceaf554959550","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.2.2.tgz","fileCount":49,"integrity":"sha512-RhdN1RxfifgyptTsCzn5FbNNm8UajaI2s9ks++w7aXZTCMdeAilzFHruUJSZM65XLramx6OKizy31wEgUWlGYA==","signatures":[{"sig":"MEYCIQCIY/a4xOrXy2Az5zlVBlWp1y492b4buzN0Claftvz5HAIhALzF7gp+t6vZUkvhhnL/QUFktUiF37dg+8eyQDAzujzH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":314351},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"d289bc1390e5cea6ba8a310e5a3a6d69c7bc76cd","scripts":{"dev":"bun --watch src/index.ts","test":"bun test tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm --minify --sourcemap=external --packages=external && bun run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.14","typescript":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.2.2_1785169729990_0.717780470026661","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@bungres/orm","version":"1.3.0","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.3.0","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"38d70a55c2998623339d983c0d997815bd52e9cf","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.3.0.tgz","fileCount":55,"integrity":"sha512-mNMD5r+MaP/b4vHTVDJt0iJQXA9KlvdhAnPKjpXSeARKDJ29z9Bq09WQRQG+9hmMufI2KbR0p3N4MQspQ7pfTw==","signatures":[{"sig":"MEUCIBo/YQTzZi4+HZShijwhSEbl9LdB9b2X+4pVfHZToOlJAiEAqlUIAh8QVih0lYVDIDfeeIvCt+q16FBjCqofs7O5TpY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":343526},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0","node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"f400a9881891a64faca77a3a75d243f4e1a7b75e","scripts":{"dev":"bun --watch src/index.ts","test":"bun test tests","build":"bun build ./src/index.ts --outdir ./dist --target bun --format esm --minify --sourcemap=external --packages=external && bun run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.14","typescript":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.3.0_1785213731552_0.14929794039384814","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@bungres/orm","version":"1.3.1","keywords":["bun","postgres","orm","sql","database","typescript"],"author":{"name":"aniket khote"},"license":"MIT","_id":"@bungres/orm@1.3.1","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"homepage":"https://github.com/bungres/bungres#readme","bugs":{"url":"https://github.com/bungres/bungres/issues"},"dist":{"shasum":"ada202374104a96736ba6b0ffff51ded31f62562","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.3.1.tgz","fileCount":54,"integrity":"sha512-8quHr/0Lfz8UxW0fjIsmk87sOO7JZ0vgggCwZaccHKCoLCe3idime3hrhcxfMAIooWsf+v0bh2+wYmvd2Aw5Wg==","signatures":[{"sig":"MEUCIAeZTa8ofiQdmR2iP8IPGytUgTbY5IaZVDuVt7Vz7lxOAiEAmNPRsSWpuuRU7lwfSaF9rOpDZepxgB4HZvfUVjD2s5E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":169459},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.3.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"32491fbcfc1c4cc9430b524f430d199a804bffd1","scripts":{"dev":"bun --watch src/index.ts","test":"bun test","build":"rm -rf ./dist && bun build ./src/index.ts --outdir ./dist --target bun --format esm --minify --packages=external && bun run build:types","build:types":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"repository":{"url":"git+https://github.com/bungres/bungres.git","type":"git","directory":"packages/bungres-orm"},"_npmVersion":"11.16.0","description":"Type-safe ORM for Postgres using Bun native SQL","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.14","typescript":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/orm_1.3.1_1785223465945_0.8012361760683149","host":"s3://npm-registry-packages-npm-production"}},"1.3.2":{"name":"@bungres/orm","version":"1.3.2","description":"Type-safe ORM for Postgres using Bun native SQL","license":"MIT","engines":{"bun":">=1.3.0"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"author":{"name":"aniket khote"},"repository":{"type":"git","url":"git+https://github.com/bungres/bungres.git","directory":"packages/bungres-orm"},"bugs":{"url":"https://github.com/bungres/bungres/issues"},"homepage":"https://github.com/bungres/bungres#readme","keywords":["bun","postgres","orm","sql","database","typescript"],"scripts":{"build:types":"tsc --emitDeclarationOnly","build":"rm -rf ./dist && bun build ./src/index.ts --outdir ./dist --target bun --format esm --minify --packages=external && bun run build:types","dev":"bun --watch src/index.ts","test":"bun test"},"devDependencies":{"bun-types":"^1.3.14","typescript":"^7.0.2"},"gitHead":"2d02e29d969519928fd2b13ce132a991158011fb","_id":"@bungres/orm@1.3.2","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-IGf3u+gEYZEcZita2JmfOLIFhGpqp4Ef5D+2vh+PI1d+MrjOC618ehD02XTYe+jpSqVHlMU8rtq0WWIDUuwkGQ==","shasum":"e57950582aaf7dc482a1161938e6633b3f01ad71","tarball":"https://registry.npmjs.org/@bungres/orm/-/orm-1.3.2.tgz","fileCount":54,"unpackedSize":169488,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEbMBBNtmIYV6UzZPUMl1jODWtpQrtheNKw8k78AheweAiEAm/nUvpXCkTF9xKTV5onv00vxLWKoVM4ZcyBPBBZxohY="}]},"_npmUser":{"name":"aniketkhote","email":"aniketkhote99@gmail.com"},"directories":{},"maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/orm_1.3.2_1785475082200_0.23565996813129075"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-17T07:02:13.976Z","modified":"2026-07-31T05:18:02.544Z","0.1.0":"2026-07-17T07:02:14.234Z","0.2.0":"2026-07-17T10:21:14.214Z","0.3.0":"2026-07-17T14:21:10.160Z","0.4.0":"2026-07-18T05:29:25.561Z","0.5.0":"2026-07-18T12:59:29.039Z","0.6.0":"2026-07-18T14:51:52.316Z","1.0.0":"2026-07-20T17:27:20.069Z","1.1.0":"2026-07-21T06:34:19.004Z","1.1.1":"2026-07-21T12:29:06.828Z","1.2.0":"2026-07-23T19:37:30.632Z","1.2.1":"2026-07-23T20:01:53.174Z","1.2.2":"2026-07-27T16:28:50.128Z","1.3.0":"2026-07-28T04:42:11.721Z","1.3.1":"2026-07-28T07:24:26.096Z","1.3.2":"2026-07-31T05:18:02.377Z"},"bugs":{"url":"https://github.com/bungres/bungres/issues"},"author":{"name":"aniket khote"},"license":"MIT","homepage":"https://github.com/bungres/bungres#readme","keywords":["bun","postgres","orm","sql","database","typescript"],"repository":{"type":"git","url":"git+https://github.com/bungres/bungres.git","directory":"packages/bungres-orm"},"description":"Type-safe ORM for Postgres using Bun native SQL","maintainers":[{"name":"aniketkhote","email":"aniketkhote99@gmail.com"}],"readme":"# @bungres/orm\n\n[![npm version](https://img.shields.io/npm/v/@bungres/orm.svg)](https://www.npmjs.com/package/@bungres/orm)\n[![license](https://img.shields.io/npm/l/@bungres/orm.svg)](https://github.com/aniket/bungres/blob/main/LICENSE)\n\nType-safe Postgres ORM for [Bun](https://bun.sh), using Bun's native `Bun.SQL` — no external database driver needed! 🐘\n\nPart of the **Bungres** ecosystem. For migrations and CLI tools, see [`@bungres/kit`](https://www.npmjs.com/package/@bungres/kit).\n\n## Requirements\n\n- **Bun ≥ 1.3** (uses `Bun.SQL` which is built-in)\n- **Postgres ≥ 16**\n\n## Installation\n\n```bash\nbun add @bungres/orm\n```\n\n## Quick Start\n\n### 1. Define your schema\n\n```ts\nimport {\n  pgTable,\n  uuid,\n  varchar,\n  text,\n  boolean,\n  timestamptz,\n  unique,\n  index,\n} from \"@bungres/orm\";\n\nexport const users = pgTable(\n  \"users\",\n  {\n    id: uuid({ primaryKey: true }),\n    email: varchar({ length: 255, notNull: true }),\n    username: varchar({ length: 80, notNull: true }),\n    fullName: text(),\n    verified: boolean({ notNull: true, default: false }),\n    createdAt: timestamptz({ notNull: true, defaultRaw: \"NOW()\" }),\n  },\n  (t) => [\n    unique().on(t.email),\n    unique().on(t.username),\n    index().on(t.createdAt),\n  ],\n);\n```\n\n### 2. Create a DB client\n\n```ts\nimport { bungres } from \"@bungres/orm\";\n\nexport const db = bungres(Bun.env.DATABASE_URL!);\n```\n\n### 3. Querying\n\n```ts\nimport { eq, and, ilike } from \"@bungres/orm\";\n\n// SELECT\nconst user = await db.select().from(users).where(eq(users.id, userId)).single();\n\n// FIND FIRST / FIND MANY (Alternative Syntax)\nconst userByEmail = await db.users.findFirst({\n  where: eq(users.email, \"alice@example.com\"),\n});\n\n// INSERT\nconst newUser = await db\n  .insert(users)\n  .values({ email: \"alice@example.com\", username: \"alice\" })\n  .returning()\n  .single();\n\n// UPDATE\nconst updated = await db\n  .update(users)\n  .set({ verified: true })\n  .where(eq(users.id, userId))\n  .returning()\n  .single();\n\n// DELETE\nawait db.delete(users).where(eq(users.id, userId));\n```\n\n## Key Features\n\n### 1. Casing API\n\nAutomatically convert camelCase JS keys to snake_case DB columns without manually typing names!\n\n```ts\nimport { pgTable, uuid, varchar, text } from \"@bungres/orm\";\n\n// Creates \"users\" table, maps `fullName` to `full_name` automatically!\nexport const users = pgTable(\"users\", {\n  id: uuid({ primaryKey: true }),\n  email: varchar({ length: 255, notNull: true, unique: true }),\n  fullName: text(),\n});\n```\n\n### 2. Column Aliases\n\nEasily alias columns in your selects!\n\n```ts\nconst rows = await db\n  .select(users.id, users.fullName.as(\"userName\"))\n  .from(users);\n// returns { id: '...', userName: '...' }\n```\n\n### 3. SQL Commenter\n\nAdd comments to your generated SQL for better debugging and query profiling.\n\n```ts\ndb.select(users).comment(\"Get user list for dashboard\");\n// SELECT ... FROM \"users\" /* Get user list for dashboard */\n```\n\n### 4. Zero-Boilerplate Many-to-Many Relations\n\nBungres automatically detects junction tables based on foreign keys! Just query your deep relations directly.\n\n```ts\nexport const users = pgTable(\"users\", {\n  id: uuid({ primaryKey: true }),\n  name: text(),\n});\n\nexport const groups = pgTable(\"groups\", {\n  id: uuid({ primaryKey: true }),\n  name: text(),\n});\n\nexport const userGroups = pgTable(\"user_groups\", {\n  id: uuid({ primaryKey: true }),\n  userId: uuid({ references: { table: \"users\", column: \"id\" } }),\n  groupId: uuid({ references: { table: \"groups\", column: \"id\" } }),\n});\n\nconst db = bungres({ url: DB_URL, schema: { users, groups, userGroups } });\n\n// Easily pull many-to-many relationships!\nconst result = await db.users.findMany({\n  with: {\n    groups: true, // \"groups\" relation automatically discovered through user_groups junction!\n  },\n});\n```\n\n## Advanced Features\n\n### 1. 100% Schema Parity\n\nBungres supports advanced Postgres schema definitions seamlessly:\n\n```ts\nimport {\n  pgTable,\n  pgEnum,\n  pgView,\n  text,\n  integer,\n  customType,\n} from \"@bungres/orm\";\n\nexport const roles = pgEnum(\"roles\", [\"admin\", \"user\"]);\n\nconst citext = customType<string>(\"citext\");\n\nexport const users = pgTable(\"users\", {\n  role: roles(\"role\").default(\"user\"),\n  tags: text(\"tags\").array(), // Arrays!\n  email: citext(\"email\").unique(), // Custom extensions\n  fullName: text(\"full_name\").generatedAlwaysAs(\n    \"first_name || ' ' || last_name\",\n  ), // Postgres 12+ generated\n});\n\n// Views and Materialized Views\nexport const activeUsers = pgView(\n  \"active_users\",\n  db.select().from(users).where(eq(users.role, \"admin\")),\n);\n```\n\n### 2. Advanced Querying Power\n\nWe support Subqueries, CTEs, Window Functions, and Set Operations:\n\n```ts\nimport { withCte, union, over, sum } from \"@bungres/orm\";\n\n// CTEs\nconst regionalSales = withCte(\"regional_sales\").as(\n  db.select().from(sales).where(eq(sales.region, \"NA\")),\n);\n\nconst rows = await db.with(regionalSales).select().from(regionalSales);\n\n// Window Functions\nconst result = await db\n  .select(\n    users.name,\n    over(sum(orders.total))\n      .partitionBy(users.department)\n      .orderBy(orders.createdAt)\n      .as(\"dept_total\"),\n  )\n  .from(users)\n  .leftJoin(orders, eq(users.id, orders.customerId));\n```\n\n### 3. Native Postgres Operators\n\nQuery JSONB, Arrays, and Full Text Search naturally:\n\n```ts\nimport {\n  containsJson,\n  arrayContains,\n  tsMatch,\n  toTsvector,\n  plainToTsquery,\n} from \"@bungres/orm\";\n\n// JSONB\ndb.select()\n  .from(users)\n  .where(containsJson(users.metadata, { role: \"admin\" }));\n\n// Arrays\ndb.select()\n  .from(posts)\n  .where(arrayContains(posts.tags, [\"javascript\"]));\n\n// Full Text Search\ndb.select()\n  .from(articles)\n  .where(tsMatch(toTsvector(articles.body), plainToTsquery(\"bun orm\")));\n```\n\n### 4. Nested Transactions (Savepoints)\n\nStart a transaction inside an existing transaction! Bungres automatically uses Postgres `SAVEPOINT`s to allow inner blocks to roll back without destroying outer progress.\n\n```ts\nconst result = await db.transaction(async (tx) => {\n  await tx.insert(users).values(data);\n\n  try {\n    // Automatically creates a SAVEPOINT instead of BEGIN\n    await tx.transaction(async (nested) => {\n      await nested.insert(logs).values({ msg: \"User created\" });\n      throw new Error(\"Oops\"); // Rolls back ONLY the log insert\n    });\n  } catch (e) {\n    // User insert is completely safe!\n  }\n});\n```\n\n### Raw SQL\n\n```ts\n// Tagged template — fully parameterized\nimport { sql } from \"@bungres/orm\";\n\nconst chunk = sql`SELECT * FROM \"users\" WHERE email = ${email}`;\nconst rows = await db.execute(chunk);\n\n// Raw string (for DDL or trusted queries)\nconst rows = await db.raw(`SELECT COUNT(*) FROM \"users\"`);\n```\n\n### Condition helpers\n\n```ts\nimport {\n  eq,\n  ne,\n  gt,\n  gte,\n  lt,\n  lte,\n  like,\n  ilike,\n  isNull,\n  isNotNull,\n  inArray,\n  and,\n  or,\n  not,\n} from \"@bungres/orm\";\n\ndb.select(posts).where(\n  and(\n    eq(\"published\", true),\n    or(ilike(\"title\", \"%bun%\"), ilike(\"body\", \"%bun%\")),\n  ),\n);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}