{"_id":"@candypay/planetscale-database-js","_rev":"5-3933edf80ec5e79af3a7f9affe76992b","name":"@candypay/planetscale-database-js","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"@candypay/planetscale-database-js","version":"0.0.1","publishConfig":{"access":"public"},"description":"A Fetch API-compatible PlanetScale database driver","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/esm/index.d.js","engines":{"node":">=16"},"type":"module","prettier":{"semi":false,"trailingComma":"none","singleQuote":true,"printWidth":120,"tabWidth":2,"useTabs":false,"bracketSpacing":true},"scripts":{"clean":"rm -rf dist/","prebuild":"npm run clean","build":"npm run build:esm && npm run build:cjs","build:esm":"tsc","build:cjs":"tsc --target es2017 --module commonjs --outDir dist/cjs","lint":"eslint src/ __tests__/","pretest":"npm run build","test":"jest","version":"echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/planetscale/database-js.git"},"keywords":["planetscale","database","mysql","vitess","serverless","vercel","lambda"],"author":{"name":"PlanetScale"},"license":"Apache-2.0","bugs":{"url":"https://github.com/planetscale/database-js/issues"},"homepage":"https://github.com/planetscale/database-js#readme","devDependencies":{"@types/jest":"^28.1.6","@types/sqlstring":"^2.3.0","@typescript-eslint/eslint-plugin":"^5.31.0","@typescript-eslint/parser":"^5.31.0","eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.3","prettier":"^2.7.1","sqlstring":"^2.3.3","ts-jest":"^28.0.7","ts-node":"^10.9.1","typescript":"^4.7.4","undici":"^5.8.0"},"eslintConfig":{"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:prettier/recommended"],"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"rules":{"no-control-regex":"off","prettier/prettier":["error",{},{"usePrettierrc":true}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/ban-ts-comment":"off"},"root":true,"env":{"browser":true,"node":true}},"gitHead":"f4e424571f01518982c64b159b4e37fc2ec63dbc","_id":"@candypay/planetscale-database-js@0.0.1","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-T8yTuR8nfRzQh/O+fMCUs9T83ZOUMCOFAPEJ9wzKW2D/68FrxF4xU8MovA+NUbLF9KsMVGU4oRHHWb3GQftGsQ==","shasum":"3487046f8bb3291471a12bf0654bc74ab75cece6","tarball":"https://registry.npmjs.org/@candypay/planetscale-database-js/-/planetscale-database-js-0.0.1.tgz","fileCount":19,"unpackedSize":43281,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8SOWkLTpxfLizQ/3mwTthbU48S1eOM9eoXZ6/dIMLtAIgMay7LFb5WADf4VwagNArz3kLB5xzWKXMHKh6+7P+Cas="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBh+zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCrhAAkMJSzUmgoxivCh/3LdPib4FNfDfvKNAMkz7E8waiaKB7U4J0\r\n1xNRtPEK3ScxwkdK85Z99fXmxJKUTbcuHSSsxjUc3sV/5IkEBZOurS3Ozdy1\r\nd/Ss5sIuhZQlOGxJMvhBBFjvP8WlChbns215YGguBdFFHeP6QqtYWTsqLMlj\r\nIINVnvJxAMzyBa5Yq3xfiQsWYnjT1h4zUvJsKJMA74tjYWVFUVllABp7Xdri\r\nDxoQOIY0yO+eS88UogzEqc0gESJCwhGoLxL47M8so5YrLmwM3qAxZg+5DnoT\r\nlCVi09W/4vPP13FI7DV1lHJbEwVnasMXowsBWDnlKbk9rMWRMf1AdVvdattA\r\nY59zFHOHNF8bVGILnCVfgM0tsFCm1x5eqCQD0WIaAW/ioN5M0vLv2cW3lxOP\r\nvGpKm0X4xF89bFBjz/3PlRa946lioheVSv1rMwgZ3KP2VTm3KrJ5ZrMFZpAm\r\nu7oNyeCJwotOiMDyi56ABiaoBw71k6E/VlvIYfYUfQ4LOu0JVtJiW9Dw4QcG\r\nCuet/53K/yZF6sEOSG1pgYl4VwBaPlxTbz3DXzJfvf7gKl1J2UTrRAe5JiF+\r\nP4/Pb9KZcyzUIhVF+MLEpAAwAfYBssolJZsnlGpVPydVRIwblm84+AM+zxeQ\r\nwRkfAfgVwYbnCzMsNlXnCPaJihZaERGFGXk=\r\n=gEV0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},"directories":{},"maintainers":[{"name":"imanuraglol","email":"kr.anurag24@gmail.com"},{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},{"name":"candypay-dev","email":"hello@candypay.fun"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/planetscale-database-js_0.0.1_1678122931605_0.9603258015818017"},"_hasShrinkwrap":false},"0.0.2":{"name":"@candypay/planetscale-database-js","version":"0.0.2","publishConfig":{"access":"public"},"description":"A Fetch API-compatible PlanetScale database driver","main":"dist/index.js","engines":{"node":">=16"},"prettier":{"semi":false,"trailingComma":"none","singleQuote":true,"printWidth":120,"tabWidth":2,"useTabs":false,"bracketSpacing":true},"scripts":{"clean":"rm -rf dist/","prebuild":"npm run clean","build":"tsc --target es2017 --module commonjs --outDir dist","lint":"eslint src/ __tests__/","pretest":"npm run build","test":"jest","version":"echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/planetscale/database-js.git"},"keywords":["planetscale","database","mysql","vitess","serverless","vercel","lambda"],"author":{"name":"PlanetScale"},"license":"Apache-2.0","bugs":{"url":"https://github.com/planetscale/database-js/issues"},"homepage":"https://github.com/planetscale/database-js#readme","devDependencies":{"@types/jest":"^28.1.6","@types/sqlstring":"^2.3.0","@typescript-eslint/eslint-plugin":"^5.31.0","@typescript-eslint/parser":"^5.31.0","eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.3","prettier":"^2.7.1","sqlstring":"^2.3.3","ts-jest":"^28.0.7","ts-node":"^10.9.1","typescript":"^4.7.4","undici":"^5.8.0"},"eslintConfig":{"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:prettier/recommended"],"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"rules":{"no-control-regex":"off","prettier/prettier":["error",{},{"usePrettierrc":true}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/ban-ts-comment":"off"},"root":true,"env":{"browser":true,"node":true}},"types":"./dist/index.d.ts","gitHead":"f4e424571f01518982c64b159b4e37fc2ec63dbc","_id":"@candypay/planetscale-database-js@0.0.2","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-fuyGBWHX0hRY0TCVI5PabtqajtSOmwofYEY7gfFFRFTzGjtPSPuqFkpq5Jj/a6uGRmMToc2q+ifWMEmmLk2AYw==","shasum":"4299025e4c077fb493c29a670a0054a14775243b","tarball":"https://registry.npmjs.org/@candypay/planetscale-database-js/-/planetscale-database-js-0.0.2.tgz","fileCount":11,"unpackedSize":31473,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHz8DHSXQJanrAQr0+lj+fD4qghjYHRJfl1az0d2Kr31AiEAjJPg18fvDj0uNu5P+wOW8hqpiMvv849AyhvYIdb/6o0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBiFDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqvsA/8DS8hNjDFaY8D6rx2zl7j0GV7TEBhOK/6N/HJ+MzAXxP6xsvq\r\n1fwSBwCgO9eUCFbID0gnSR+FB+uQqSTXQFhG4gT+sCWQTJGFNuztnn5UMLKI\r\ni3hxnLBqOLVfZLHumVjv2nR4ZiiUAxyVh2aNJLzsNEMRAT6UE3HsnRsfGIxx\r\nOYg5u1L/r7Eh6nPWcS7i5rgRRq0am8WZRlSnslPocZA+4wjaLUp4G3TFU+FZ\r\n1ZFn6GzgduoKuoEd4oRa8IPUVBJ9ZsdZ1bP8zxhuhGBfUwpCCNELhLLXlPI1\r\nEh8uKtjFB2YxLVMOhIuo5rTI5m7aeuhaP5OYIlQnjdYlyNaxDh6u/xvS6KIR\r\nM1VzqjmW928WAlNLGBD3fliz2W6Vfn57ePKTd2SfrNTN1eIx2vVEJSI8Ag0n\r\nnkIhLkStgDwy9bjS5NTvyTrCZ2aY+CI1NzI6WEaHDXzXOLfyzScreab0S5SF\r\njWuj9EGbqb5pexhBCdcvbAy1JCkTH9I0foF+FuSp+eY0cdeTrQCd1dxraSJU\r\nLmrmy1/Vc7hIs/bBnLF0d5VZycl4zzChNftzwMdU+PmN7bSb19Kwpl6XShT8\r\nUKLLzHJ6jvnOxGi8QY8LhpyP5McrnHi+R5cI0rqWcEdON9ZF0n7bMV5GqN4B\r\nEmHi4SRNF0lwoYsyqQcRhWYx0Bx/zodNufU=\r\n=RTzW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},"directories":{},"maintainers":[{"name":"imanuraglol","email":"kr.anurag24@gmail.com"},{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},{"name":"candypay-dev","email":"hello@candypay.fun"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/planetscale-database-js_0.0.2_1678123331367_0.4159606482185705"},"_hasShrinkwrap":false},"0.0.3":{"name":"@candypay/planetscale-database-js","version":"0.0.3","description":"A Fetch API-compatible PlanetScale database driver","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16"},"type":"module","prettier":{"semi":false,"trailingComma":"none","singleQuote":true,"printWidth":120,"tabWidth":2,"useTabs":false,"bracketSpacing":true},"scripts":{"clean":"rm -rf dist/","prebuild":"npm run clean","build":"tsc --module commonjs --outDir dist","lint":"eslint src/ __tests__/","pretest":"npm run build","test":"jest","version":"echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build","prepublishOnly":"npm run build","postpublish":"npm publish --ignore-scripts --@planetscale:registry='https://npm.pkg.github.com'"},"repository":{"type":"git","url":"git+https://github.com/planetscale/database-js.git"},"keywords":["planetscale","database","mysql","vitess","serverless","vercel","lambda"],"author":{"name":"PlanetScale"},"license":"Apache-2.0","bugs":{"url":"https://github.com/planetscale/database-js/issues"},"homepage":"https://github.com/planetscale/database-js#readme","devDependencies":{"@types/jest":"^28.1.6","@types/sqlstring":"^2.3.0","@typescript-eslint/eslint-plugin":"^5.31.0","@typescript-eslint/parser":"^5.31.0","eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.3","prettier":"^2.7.1","sqlstring":"^2.3.3","ts-jest":"^28.0.7","ts-node":"^10.9.1","typescript":"^4.7.4","undici":"^5.8.0"},"eslintConfig":{"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:prettier/recommended"],"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"rules":{"no-control-regex":"off","prettier/prettier":["error",{},{"usePrettierrc":true}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/ban-ts-comment":"off"},"root":true,"env":{"browser":true,"node":true}},"gitHead":"47d856134fe1c3e09d504d6f566336c143df311a","_id":"@candypay/planetscale-database-js@0.0.3","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Te/aYMebQH33UmVZAaIWg1k3K7xjmFPDU7IihK2DnNj44LIY7+ThZwIDopOUJPeZw+WAYMG11FKiMUB9WnSCDQ==","shasum":"c68d3e4e311190fb86541378b2367c7810a7ff2f","tarball":"https://registry.npmjs.org/@candypay/planetscale-database-js/-/planetscale-database-js-0.0.3.tgz","fileCount":11,"unpackedSize":32070,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEivxjflbSDdx6E5fkXcb52952oMCJae8Pi08PuoWoTgIgXpMeW80Z+WIW5XjyT3phbyJxELxWMUOxzr9s5CqEuE8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ9IWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLkg/+OxX08FOO3Q/ieg7dn5m3RMxtilCOL0bBVNbq14fDzQqb98Cs\r\nba9ZIwfi52XgQwjOrsVnx//0AeAPqwXW55Cx8I8zXDDN4RtQkEUfJRPZJudw\r\nayO81lssQxOAsX7wbliSKB2f3TgFeBRh0NdZhn8wPRIIazE7yKiQtsYCwxYH\r\nEjccu5eJpkZR5xXdApY2gydBwVupx7MRzY0SITKHqS3eT/5n9kIEMzYhMftn\r\nBomoVLFl6DJzqAs7U1vQMWQOZe0I3JD4/WN85EazjR8vblvyhAW611qQq0De\r\nx5bR4Owa73JUSv4WtDLmo0mk/qHaAOcuyTTI15IfagLwTRF3VtmpluAldvUF\r\njZgHo5mHh0dHuCF0UYZ108DqX4DWsN6qXZDc+s4D5yOwpcbQpsVneOw25Npu\r\njkOSFctYOuwmIq+0cpR9VesgCU2CaDIOTcN+/ZWlxdLWWg5EvZoYxo+Ex8UZ\r\n6rCr3ePPY+F3GbHDktmSq7vxuB0cQ+WMRXS6STG2rycSpQRcY543zCDZEGEC\r\nAQttfL1jEVhest7Au2CFpQwfPHGn+gpsS6NYerqv0tUrBVi3EGymvX7ts0hF\r\nvRUHpzyn0wIi4ZVR5eYn240hUriytA6vS6MUTpm8r8Rk0SVTnX0Hwbir1pP8\r\npycN8+7I9DIbwOidkkx9FbrFhy0ozyttE90=\r\n=KS2F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},"directories":{},"maintainers":[{"name":"imanuraglol","email":"kr.anurag24@gmail.com"},{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},{"name":"candypay-dev","email":"hello@candypay.fun"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/planetscale-database-js_0.0.3_1680331286057_0.8736750302966092"},"_hasShrinkwrap":false},"0.0.4":{"name":"@candypay/planetscale-database-js","version":"0.0.4","description":"A Fetch API-compatible PlanetScale database driver","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16"},"type":"module","prettier":{"semi":false,"trailingComma":"none","singleQuote":true,"printWidth":120,"tabWidth":2,"useTabs":false,"bracketSpacing":true},"scripts":{"clean":"rm -rf dist/","prebuild":"npm run clean","build":"tsc --module commonjs --outDir dist","lint":"eslint src/ __tests__/","pretest":"npm run build","test":"jest","version":"echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build","prepublishOnly":"npm run build","postpublish":"npm publish --ignore-scripts --@planetscale:registry='https://npm.pkg.github.com'"},"repository":{"type":"git","url":"git+https://github.com/planetscale/database-js.git"},"keywords":["planetscale","database","mysql","vitess","serverless","vercel","lambda"],"author":{"name":"PlanetScale"},"license":"Apache-2.0","bugs":{"url":"https://github.com/planetscale/database-js/issues"},"homepage":"https://github.com/planetscale/database-js#readme","devDependencies":{"@types/jest":"^28.1.6","@types/sqlstring":"^2.3.0","@typescript-eslint/eslint-plugin":"^5.31.0","@typescript-eslint/parser":"^5.31.0","eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.3","prettier":"^2.7.1","sqlstring":"^2.3.3","ts-jest":"^28.0.7","ts-node":"^10.9.1","typescript":"^4.7.4","undici":"^5.8.0"},"eslintConfig":{"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:prettier/recommended"],"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"rules":{"no-control-regex":"off","prettier/prettier":["error",{},{"usePrettierrc":true}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/ban-ts-comment":"off"},"root":true,"env":{"browser":true,"node":true}},"gitHead":"47d856134fe1c3e09d504d6f566336c143df311a","_id":"@candypay/planetscale-database-js@0.0.4","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-hfBIhZYJVe5L+LPMWRGzXA/l7zC2NFabTYNlXDnYk0yO67fkgp9Q8yVKbYK+NvINR5Y8vfa+QamWtNd5Q3BfMw==","shasum":"0d72a34e68162794127de10f7df6414ff8783483","tarball":"https://registry.npmjs.org/@candypay/planetscale-database-js/-/planetscale-database-js-0.0.4.tgz","fileCount":11,"unpackedSize":32070,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMxOPn804edCYBU1Xj7NURW5t1EvagyOwjZdOR7ex4zAIgSo8portDsNL/f2Dzy/3kGwHurSeqQVQSu7caOaAF4YY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ9IuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMJw/9Hiu7KjseiDU0kam29uw2tVKhbOX4d7fhLV5H3nKN9KHNhdFl\r\nq5b2gBoB1IGItzZZvKn9W6yWv2lfwihQBKzEQqIiXheRM0qmJPh2lO+ak4I1\r\nAM9o5Zye8Qj5j2XuGBmhvAYoph8INkPxvinoGd6i6qFmhMwy0JNHK1NWyiYq\r\nMA3QpWCzoAgExwnPEqNuD1Rs1ihPGBcs1a6pInIyKoCg0tr7h8Q7WasgUGFo\r\nwTPFyR/7lr2SKqWSg2nDzpInp62WDMsdNZz+ehb0OVc78ZPsjUm2yc3/H95R\r\nHrDLME8J5/xg+71JQbDUgT9jhD/U+YNCoCvPCeioj6TDEEGH9W3oCXoUPRiq\r\nNb5MAp7mLB1/UtlQuVUrovTCZBZgUlzByy/9F7J93U32uqSPlzlIBPo3fDLs\r\nlX4gGN/0sB//ZgnynqL3u0vMXw4v1mzekrAdZ+HJzQ7GMaPatvvBzdce0xL8\r\nxYRW6bflUQQduNDAWVz/l9dzPlNOORRu+dLplCKXOih4dgt/ZoYF2vGD0oKR\r\nGxUwqK52IEweRtxO7XBEa4Uy6N8pcx85Jn5gnXtY77ylIRsesCXndgJHGCkn\r\nd1VC5+SkQ0sXUIPVIkSFkCNLeWAj9OO2KUqZQPWePe0T9NYWQpq6pYGyKXTO\r\nNhmeXjwLeRfrgagTkunndeG6vr5K8n7eGH8=\r\n=YwEi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},"directories":{},"maintainers":[{"name":"imanuraglol","email":"kr.anurag24@gmail.com"},{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},{"name":"candypay-dev","email":"hello@candypay.fun"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/planetscale-database-js_0.0.4_1680331310655_0.9485133777669694"},"_hasShrinkwrap":false},"0.0.5":{"name":"@candypay/planetscale-database-js","version":"0.0.5","description":"A Fetch API-compatible PlanetScale database driver","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16"},"prettier":{"semi":false,"trailingComma":"none","singleQuote":true,"printWidth":120,"tabWidth":2,"useTabs":false,"bracketSpacing":true},"scripts":{"clean":"rm -rf dist/","prebuild":"npm run clean","build":"tsc --module commonjs --outDir dist","lint":"eslint src/ __tests__/","pretest":"npm run build","test":"jest","version":"echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/planetscale/database-js.git"},"keywords":["planetscale","database","mysql","vitess","serverless","vercel","lambda"],"author":{"name":"PlanetScale"},"license":"Apache-2.0","bugs":{"url":"https://github.com/planetscale/database-js/issues"},"homepage":"https://github.com/planetscale/database-js#readme","devDependencies":{"@types/jest":"^28.1.6","@types/sqlstring":"^2.3.0","@typescript-eslint/eslint-plugin":"^5.31.0","@typescript-eslint/parser":"^5.31.0","eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.3","prettier":"^2.7.1","sqlstring":"^2.3.3","ts-jest":"^28.0.7","ts-node":"^10.9.1","typescript":"^4.7.4","undici":"^5.8.0"},"eslintConfig":{"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:prettier/recommended"],"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"rules":{"no-control-regex":"off","prettier/prettier":["error",{},{"usePrettierrc":true}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/ban-ts-comment":"off"},"root":true,"env":{"browser":true,"node":true}},"gitHead":"47d856134fe1c3e09d504d6f566336c143df311a","_id":"@candypay/planetscale-database-js@0.0.5","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-9uEmD1LN7yZsnKjLPNb8u+uz5O6g0AfcVE0jHtyOy2XYZNBVPYhdUVq9evJ8vVi3OYtyRKP8CLxjkpXD+ZUMvQ==","shasum":"06daf80017da9ed7eeca38b48c946a790e3babb9","tarball":"https://registry.npmjs.org/@candypay/planetscale-database-js/-/planetscale-database-js-0.0.5.tgz","fileCount":11,"unpackedSize":31946,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtMrbCWA6bNqsIbei4q3aCGnoKKVdtMbY7XDmH9wX6jQIhAP9CvO5DwttZn3SwTouG1WtSakkANE1Ery+lfOVrfqXQ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ9SoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocfhAApILxLo6pCebW/VZVWvq2/BVFCoUAVO8PeX6ifq6ZO2ROHdPp\r\n83dBfTw3JQpe82htzIu6kj5LoMTr4z+LnEM8qSWrI4fhBS04wxXLqLnd+LDb\r\nDYqQJyA0nPCA37PAL+PSLH5XGKU38vUUXsgHWzI9Fc0y8b9Gdrdug2WjV7A0\r\nPEEm8ioag4KUblFUR0ICNYEl7RsAjnJCh9Q9mXfTelwGHDJ3KqAC9lYN59je\r\nULRDB6QH1ndUaLJ8VAAxb59PLkxUfSHtXOuj5FeensBt9JbOszEo5CSjm4PR\r\nqltwgG0MaWKxYvQ4H3dyfztNvCam1w8gJI7Qc0Xrn40wJMKNcIOd+gNjecE0\r\nyIfXp9zSfF41eQ6EW+WCUHzc5xsaHejevT7sPwl2OcAlAMX9KaKbcmx6HQzB\r\nVefAcIvS9XuYQiwfcB2w3/r9fQk72Fh5y8ljM37YWk/HOlZkK66rrcTe2kAM\r\n5dvaJ0L7s3WJX+WTnYo/T6vKL6CI788L5ULp9qr3m9QbdNaC4t85k0eQp5Kq\r\nJ352H0LvGZ06wu9/lKt5nxbcL8mGQsDwxevsY3hBn3oCNmNW2EctRRnqkE7a\r\nLGwXrMCFiCKlaMHKBUr6KB9ULhrwDoJS05youqgsbUqidtMDrhwwjNHY3Mb/\r\nHR2X7AxOl6I/CQSPLeed3hxHUCSPFomUaPs=\r\n=56ie\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},"directories":{},"maintainers":[{"name":"imanuraglol","email":"kr.anurag24@gmail.com"},{"name":"kira272921","email":"hey.mukesh272921@gmail.com"},{"name":"candypay-dev","email":"hello@candypay.fun"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/planetscale-database-js_0.0.5_1680331944657_0.18902281773131757"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-06T17:15:31.525Z","0.0.1":"2023-03-06T17:15:31.838Z","modified":"2023-07-02T16:12:53.777Z","0.0.2":"2023-03-06T17:22:11.499Z","0.0.3":"2023-04-01T06:41:26.219Z","0.0.4":"2023-04-01T06:41:50.819Z","0.0.5":"2023-04-01T06:52:24.856Z"},"maintainers":[{"email":"ritvij2001@gmail.com","name":"ritvij14"},{"email":"kr.anurag24@gmail.com","name":"imanuraglol"},{"email":"hey.mukesh272921@gmail.com","name":"kira272921"},{"email":"hello@candypay.fun","name":"candypay-dev"}],"description":"A Fetch API-compatible PlanetScale database driver","homepage":"https://github.com/planetscale/database-js#readme","keywords":["planetscale","database","mysql","vitess","serverless","vercel","lambda"],"repository":{"type":"git","url":"git+https://github.com/planetscale/database-js.git"},"author":{"name":"PlanetScale"},"bugs":{"url":"https://github.com/planetscale/database-js/issues"},"license":"Apache-2.0","readme":"# PlanetScale Serverless Driver for JavaScript\n\nA Fetch API-compatible PlanetScale database driver for serverless and edge compute platforms that require HTTP external connections, such as Cloudflare Workers or Vercel Edge Functions\n\n## Installation\n\n```\nnpm install @planetscale/database\n```\n\n## Usage\n\n```ts\nimport { connect } from '@planetscale/database'\n\nconst config = {\n  host: '<host>',\n  username: '<user>',\n  password: '<password>'\n}\n\nconst conn = connect(config)\nconst results = await conn.execute('select 1 from dual where 1=?', [1])\nconsole.log(results)\n```\n\n### Database URL\n\nA single database URL value can be used to configure the `host`, `username`, and `password` values.\n\n```ts\nimport { connect } from '@planetscale/database'\n\nconst config = {\n  url: process.env['DATABASE_URL'] || 'mysql://user:pass@host'\n}\n\nconst conn = connect(config)\n```\n\n### Connection factory\n\nUse the `Client` connection factory class to create fresh connections for each transaction or web request handler.\n\n```ts\nimport { Client } from '@planetscale/database'\n\nconst client = new Client({\n  host: '<host>',\n  username: '<user>',\n  password: '<password>'\n})\n\nconst conn = client.connection()\nconst results = await conn.execute('select 1 from dual')\nconsole.log(results)\n```\n\n### Transactions\n\nUse the `transaction` function to safely perform database transactions. If any unhandled errors are thrown during execution of the transaction, the transaction will be rolled back.\n\nThe following example is based on [the Slotted Counter Pattern](https://planetscale.com/blog/the-slotted-counter-pattern).\n\n```ts\nimport { connect } from '@planetscale/database'\n\nconst config = {\n  host: '<host>',\n  username: '<user>',\n  password: '<password>'\n}\n\nconst conn = connect(config)\nconst results = await conn.transaction(async (tx) => {\n  const whenBranch = await tx.execute('INSERT INTO branches (database_id, name) VALUES (?, ?)', [42, \"planetscale\"])\n  const whenCounter = await tx.execute('INSERT INTO slotted_counters(record_type, record_id, slot, count) VALUES (?, ?, RAND() * 100, 1) ON DUPLICATE KEY UPDATE count = count + 1', ['branch_count', 42])\n  return [whenBranch, whenCounter]\n})\nconsole.log(results)\n```\n\n### Custom fetch function\n\nNode.js version 18 includes a built-in global `fetch` function. When using an older version of Node.js, you can provide a custom fetch function implementation. We recommend the [`undici`][1] package on which Node's built-in fetch is based.\n\n[1]: https://github.com/nodejs/undici\n\n```ts\nimport { connect } from '@planetscale/database'\nimport { fetch } from 'undici'\n\nconst config = {\n  fetch,\n  host: '<host>',\n  username: '<user>',\n  password: '<password>'\n}\n\nconst conn = connect(config)\nconst results = await conn.execute('select 1 from dual')\nconsole.log(results)\n```\n\nTo leverage HTTP/2, you can use the [`fetch-h2`][1] shim. `fetch-h2` also supports Node.js 12+.\n\n[1]: https://www.npmjs.com/package/fetch-h2\n\n```ts\nimport { connect } from '@planetscale/database'\nimport { context } from 'fetch-h2'\nconst { fetch, disconnectAll } = context()\n\nconst config = {\n  fetch,\n  host: '<host>',\n  username: '<user>',\n  password: '<password>'\n}\n\nconst conn = connect(config)\nconst results = await conn.execute('select 1 from dual')\nconsole.log(results)\nawait disconnectAll()\n```\n\n### Custom query parameter format function\n\nQuery replacement parameters identified with `?` are replaced with escaped values. Named replacement parameters are supported with a colon prefix.\n\n```ts\nconst results1 = await conn.execute('select 1 from dual where 1=?', [42])\nconst results2 = await conn.execute('select 1 from dual where 1=:id', { id: 42 })\n```\n\nProviding a custom format function overrides the built-in escaping with an external library, like [`sqlstring`](https://github.com/mysqljs/sqlstring).\n\n```ts\nimport { connect } from '@planetscale/database'\nimport SqlString from 'sqlstring'\n\nconst config = {\n  format: SqlString.format,\n  host: '<host>',\n  username: '<user>',\n  password: '<password>'\n}\n\nconst conn = connect(config)\nconst results = await conn.execute('select 1 from dual where 1=?', [42])\nconsole.log(results)\n```\n\n### Custom type casting function\n\nColumn values are converted to their corresponding JavaScript data types. This can be customized by providing a `cast` function.\n\n```ts\nimport { connect, cast } from '@planetscale/database'\n\nfunction inflate(field, value) {\n  if (field.type === 'INT64' || field.type === 'UINT64') {\n    return BigInt(value)\n  }\n  return cast(field, value)\n}\n\nconst config = {\n  cast: inflate,\n  host: '<host>',\n  username: '<user>',\n  password: '<password>'\n}\n\nconst conn = connect(config)\n```\n\nYou can also pass a custom `cast` function to `execute`. If present, this will override the `cast` function set by the connection:\n\n```ts\nconst result = await conn.execute(\n  'SELECT userId, SUM(balance) AS balance FROM UserBalanceItem GROUP BY userId',\n  {},\n  {\n    cast: (field, value) => {\n      if (field.name === 'balance') {\n        return BigInt(value)\n      }\n      return cast(field, value)\n    }\n  }\n)\n```\n\n### Row return values\n\nRows can be returned as an object or an array of column values by passing an `as` option to `execute`.\n\n```ts\nconst query = 'select 1 as one, 2 as two where 1=?'\nconst objects = conn.execute(query, [1], { as: 'object' })\n// objects.rows => [{one: '1', two: '2'}]\n\nconst arrays = conn.execute(query, [1], { as: 'array' })\n// arrays.rows => [['1', '2']]\n```\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the Apache 2.0 license. See LICENSE for details.\n","readmeFilename":"README.md"}