{"id":16639968,"url":"https://github.com/kiddyuchina/knex-cloudflare-d1","last_synced_at":"2025-03-21T15:32:04.138Z","repository":{"id":233286365,"uuid":"786042604","full_name":"kiddyuchina/knex-cloudflare-d1","owner":"kiddyuchina","description":"Cloudflare D1 dialect for Knex.js.","archived":false,"fork":false,"pushed_at":"2024-04-21T19:39:23.000Z","size":3,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-13T07:07:33.776Z","etag":null,"topics":["cloudflare-d1","d1","knex"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiddyuchina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-13T08:50:28.000Z","updated_at":"2024-08-31T16:46:23.000Z","dependencies_parsed_at":"2024-04-15T14:26:01.692Z","dependency_job_id":"c6da1b45-2813-4b51-8aa5-e4a6b3ff488f","html_url":"https://github.com/kiddyuchina/knex-cloudflare-d1","commit_stats":null,"previous_names":["kiddyuchina/knex-cloudflare-d1"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddyuchina%2Fknex-cloudflare-d1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddyuchina%2Fknex-cloudflare-d1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddyuchina%2Fknex-cloudflare-d1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiddyuchina%2Fknex-cloudflare-d1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiddyuchina","download_url":"https://codeload.github.com/kiddyuchina/knex-cloudflare-d1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221816454,"owners_count":16885337,"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-d1","d1","knex"],"created_at":"2024-10-12T07:07:30.410Z","updated_at":"2024-10-28T10:22:09.153Z","avatar_url":"https://github.com/kiddyuchina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# knex-cloudflare-d1\n\n[![Version](https://img.shields.io/npm/v/knex-cloudflare-d1.svg)](https://npmjs.com/package/knex-cloudflare-d1)\n\nCloudflare D1 dialect for Knex.js.\n\n## Install\n\n```\nnpm i knex-cloudflare-d1\n// Or\npnpm add knex-cloudflare-d1\n```\n\n## Usage\n\n```js\nimport Knex from 'knex';\nimport ClientD1 from 'knex-cloudflare-d1';\n\nexport interface Env {\n  DB: D1Database;\n}\n\nexport default {\n  fetch: (req: Request, env: Env) =\u003e {\n    // ...\n\n    const knex = Knex({\n      client: ClientD1,\n      connection: {\n        database: env.DB\n      },\n      useNullAsDefault: true,\n    });\n\n    // ...\n  }\n}\n\n```\n\n## Author\n\nKidd Yu \u003chttps://github.com/kiddyuchina\u003e\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiddyuchina%2Fknex-cloudflare-d1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiddyuchina%2Fknex-cloudflare-d1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiddyuchina%2Fknex-cloudflare-d1/lists"}