drizzle-orm-d1
Build type-safe D1 databases with Drizzle ORM, managing schemas, migrations, and preventing common SQL errors.
Install this skill
Security score
The drizzle-orm-d1 skill was audited on Feb 9, 2026 and we found 16 security issues across 3 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 146 | query = query.where(like(users.name, `%${filters.name}%`)); |
Template literal with variable interpolation in command context
| 522 | const upsertSql = sql`insert into ${schema.subscriptions} |
Template literal with variable interpolation in command context
| 602 | const flatFile = path.join(migrationsDir, `${entry.name}.sql`); |
Template literal with variable interpolation in command context
| 610 | console.log(`Flattened: ${entry.name}/migration.sql → ${entry.name}.sql`); |
Access to .env file
| 42 | accountId: process.env.CLOUDFLARE_ACCOUNT_ID!, |
Access to .env file
| 43 | databaseId: process.env.CLOUDFLARE_DATABASE_ID!, |
Access to .env file
| 44 | token: process.env.CLOUDFLARE_D1_TOKEN!, |
External URL reference
| 100 | # Opens http://local.drizzle.studio |
External URL reference
| 281 | **Source**: [drizzle-orm#2479](https://github.com/drizzle-team/drizzle-orm/issues/2479), [Cloudflare D1 Limits](https://developers.cloudflare.com/d1/platform/limits/) |
External URL reference
| 411 | **Source**: [drizzle-orm#4538](https://github.com/drizzle-team/drizzle-orm/issues/4538), [D1 Generated Columns](https://developers.cloudflare.com/d1/reference/generated-columns/) |
External URL reference
| 721 | - **Drizzle ORM**: https://orm.drizzle.team/ |
External URL reference
| 722 | - **Drizzle with D1**: https://orm.drizzle.team/docs/connect-cloudflare-d1 |
External URL reference
| 723 | - **Drizzle Kit**: https://orm.drizzle.team/docs/kit-overview |
External URL reference
| 724 | - **Drizzle Migrations**: https://orm.drizzle.team/docs/migrations |
External URL reference
| 726 | - **Cloudflare D1**: https://developers.cloudflare.com/d1/ |
External URL reference
| 727 | - **Wrangler D1 Commands**: https://developers.cloudflare.com/workers/wrangler/commands/#d1 |