{"_id":"@bolkauth/driver-mysql2","name":"@bolkauth/driver-mysql2","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.2":{"name":"@bolkauth/driver-mysql2","version":"0.1.2","description":"MySQL driver helper for BolkAuth wrapping mysql2 and Drizzle ORM","license":"MIT","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/Shreyvats01/bolkauth.git","directory":"packages/driver-mysql2"},"publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"peerDependencies":{"drizzle-orm":">=0.29.0","mysql2":"^3.0.0"},"dependencies":{"@bolkauth/adapter-drizzle":"0.1.2","@bolkauth/core":"0.2.1"},"devDependencies":{"@types/node":"^20.11.0","drizzle-orm":"^0.29.3","mysql2":"^3.9.0","tsup":"^8.0.0","typescript":"^5.3.3","vitest":"^1.2.0"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run"},"_id":"@bolkauth/driver-mysql2@0.1.2","bugs":{"url":"https://github.com/Shreyvats01/bolkauth/issues"},"homepage":"https://github.com/Shreyvats01/bolkauth#readme","_integrity":"sha512-kNHBuwO24M1Ua5dIzIxTiAVyfRe1TKb7AOJJdkHeUs1WxlOjZ3QFisIXY7mHD8+6UK66nZoGYo9Dy2RV7Xkltw==","_resolved":"/tmp/5e442b8f5ec8c6f9b1fd922e4efc2594/bolkauth-driver-mysql2-0.1.2.tgz","_from":"file:bolkauth-driver-mysql2-0.1.2.tgz","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-kNHBuwO24M1Ua5dIzIxTiAVyfRe1TKb7AOJJdkHeUs1WxlOjZ3QFisIXY7mHD8+6UK66nZoGYo9Dy2RV7Xkltw==","shasum":"71c50ce6b12d26b502faf954b1768c696df2dcdc","tarball":"https://registry.npmjs.org/@bolkauth/driver-mysql2/-/driver-mysql2-0.1.2.tgz","fileCount":13,"unpackedSize":13532,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDdTue39CWnZCVS3ZxASLzYGP2dKpGaSwga4oYlY2GgfwIhALPH5AoLmw0uRl9b4viAnQEMuI0AmCTNrZV/jqRFw96e"}]},"_npmUser":{"name":"shreyvats01","email":"techtechnicalshrey@gmail.com"},"directories":{},"maintainers":[{"name":"shreyvats01","email":"techtechnicalshrey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/driver-mysql2_0.1.2_1785789333395_0.4635520376027489"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T20:35:33.199Z","0.1.2":"2026-08-03T20:35:33.556Z","modified":"2026-08-03T20:35:33.813Z"},"maintainers":[{"name":"shreyvats01","email":"techtechnicalshrey@gmail.com"}],"description":"MySQL driver helper for BolkAuth wrapping mysql2 and Drizzle ORM","homepage":"https://github.com/Shreyvats01/bolkauth#readme","repository":{"type":"git","url":"git+https://github.com/Shreyvats01/bolkauth.git","directory":"packages/driver-mysql2"},"bugs":{"url":"https://github.com/Shreyvats01/bolkauth/issues"},"license":"MIT","readme":"# @bolkauth/driver-mysql2\n\n[![npm version](https://img.shields.io/npm/v/@bolkauth/driver-mysql2.svg)](https://www.npmjs.com/package/@bolkauth/driver-mysql2)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nMySQL driver factory helper for **BolkAuth**. Connects via `mysql2` and returns an initialized Drizzle ORM database instance along with a ready-to-use BolkAuth MySQL adapter.\n\n## Installation\n\n```bash\npnpm add @bolkauth/driver-mysql2 @bolkauth/adapter-drizzle @bolkauth/core drizzle-orm mysql2\n```\n\n## Quickstart\n\n```typescript\nimport { createMysql2Driver } from \"@bolkauth/driver-mysql2\";\nimport { createBolkAuth } from \"@bolkauth/core\";\n\n// 1. Initialize MySQL connection and BolkAuth adapter in one step\nconst { connection, db, adapter } = await createMysql2Driver({\n  connectionString: process.env.DATABASE_URL!,\n});\n\n// 2. Initialize BolkAuth engine\nexport const auth = createBolkAuth({\n  adapter,\n  secret: process.env.BOLKAUTH_SECRET!,\n});\n```\n\n## License\n\n[MIT](./LICENSE) © BolkAuth\n","readmeFilename":"README.md","_rev":"1-2338385f5c3f8225796577f35bd58afe"}