Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leaysgur/sveltekit-d1-drizzle-template
Template for SvelteKit on Cloudflare Pages using Cloudflare D1 via DrizzleORM
https://github.com/leaysgur/sveltekit-d1-drizzle-template
Last synced: 24 days ago
JSON representation
Template for SvelteKit on Cloudflare Pages using Cloudflare D1 via DrizzleORM
- Host: GitHub
- URL: https://github.com/leaysgur/sveltekit-d1-drizzle-template
- Owner: leaysgur
- Created: 2023-08-18T03:29:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-14T01:45:44.000Z (11 months ago)
- Last Synced: 2024-04-15T07:12:06.221Z (7 months ago)
- Language: TypeScript
- Size: 52.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sveltekit-drizzle-d1-template
```sh
npm run migrate
wrangler d1 migrations apply myapp --localwrangler dev ./node_modules/cfw-bindings-wrangler-bridge/worker/index.js
npm run devnpx tsx ./scripts/add-todos.ts
npx tsx ./scripts/delete-todos.tsnpx cfw-storage-bindings-studio
```## Drizzle + D1 issues
- `WITHOUT ROWID` is not supported
- https://github.com/drizzle-team/drizzle-orm/issues/408
- `CHECK` is not supported
- https://github.com/drizzle-team/drizzle-orm/issues/880
- `sql` helper is needed to avoid D1 bug when select the same column name from joined 2 tables
- https://github.com/drizzle-team/drizzle-orm/issues/555