{"id":28894021,"url":"https://github.com/drizzle-team/drizzle-orm-d1-example","last_synced_at":"2025-07-19T11:38:23.755Z","repository":{"id":143519283,"uuid":"570173071","full_name":"drizzle-team/drizzle-orm-d1-example","owner":"drizzle-team","description":"Drizzle ORM D1 SQLite sample project","archived":false,"fork":false,"pushed_at":"2022-12-07T16:55:50.000Z","size":26,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T09:35:36.596Z","etag":null,"topics":["cloudflare","cloudflared1","drizzleorm","orm","sqlite","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drizzle-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-24T13:58:55.000Z","updated_at":"2025-02-10T23:10:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fef7afb-9677-4107-b3d4-1a088146d192","html_url":"https://github.com/drizzle-team/drizzle-orm-d1-example","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"4d681cbe0055e7448776105fa7c108582910c7fc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drizzle-team/drizzle-orm-d1-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drizzle-team%2Fdrizzle-orm-d1-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drizzle-team%2Fdrizzle-orm-d1-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drizzle-team%2Fdrizzle-orm-d1-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drizzle-team%2Fdrizzle-orm-d1-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drizzle-team","download_url":"https://codeload.github.com/drizzle-team/drizzle-orm-d1-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drizzle-team%2Fdrizzle-orm-d1-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265417438,"owners_count":23761608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflared1","drizzleorm","orm","sqlite","typescript"],"created_at":"2025-06-21T03:42:21.310Z","updated_at":"2025-07-19T11:38:23.747Z","avatar_url":"https://github.com/drizzle-team.png","language":"TypeScript","readme":"Example project for [Drizzle ORM D1 SQLite package](https://github.com/drizzle-team/drizzle-orm/tree/main/drizzle-orm-sqlite)  \nSubscribe to our updates on [Twitter](https://twitter.com/DrizzleOrm)!\n\n## Initial project setup\nTo setup project for your Cloudflare D1 - please refer to [official docs](https://developers.cloudflare.com/d1/)\n\n```toml\n## your wrangler.toml will loke somthing like this\n\nname = \"YOU PROJECT NAME\"\nmain = \"src/index.ts\"\ncompatibility_date = \"2022-11-07\"\nnode_compat = true\n\n[[ d1_databases ]]\nbinding = \"DB\"\ndatabase_name = \"YOU DB NAME\"\ndatabase_id = \"YOUR DB ID\"\n```\n\nTo init local database and run server locally\n```bash\nwrangler d1 execute \u003cDATABASE_NAME\u003e --local --file=./drizzle/20221126113135/migration.sql\nwrangler dev --local --persist\n```\n\nInstall Drizzle ORM and SQLite packages\n```bash\nnpm install drizzle-orm drizzle-orm-sqlite\n```\n\nTo automatically generate migration .sql files, when src/schema.ts chages\n```bash\nnpm install drizzle-kit\n\n## package.json\n{\n  ...\n  scripts: {\n    \"generate\": \"drizzle-kit generate --schema=src/schema.ts dialect=sqlite\"\n  }\n}\n\nnpm run generate\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrizzle-team%2Fdrizzle-orm-d1-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrizzle-team%2Fdrizzle-orm-d1-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrizzle-team%2Fdrizzle-orm-d1-example/lists"}