{"id":28791987,"url":"https://github.com/deanc/kysely-schema-generator","last_synced_at":"2025-10-14T07:33:08.692Z","repository":{"id":201833747,"uuid":"707402054","full_name":"deanc/kysely-schema-generator","owner":"deanc","description":"A schema generator for kysely","archived":false,"fork":false,"pushed_at":"2024-01-22T19:17:40.000Z","size":82,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T00:38:44.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deanc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-19T20:27:25.000Z","updated_at":"2025-06-11T15:38:39.000Z","dependencies_parsed_at":"2024-01-04T15:44:15.876Z","dependency_job_id":null,"html_url":"https://github.com/deanc/kysely-schema-generator","commit_stats":null,"previous_names":["deanc/kysely-schema-generator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/deanc/kysely-schema-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanc%2Fkysely-schema-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanc%2Fkysely-schema-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanc%2Fkysely-schema-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanc%2Fkysely-schema-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deanc","download_url":"https://codeload.github.com/deanc/kysely-schema-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanc%2Fkysely-schema-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018221,"owners_count":26086307,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-06-18T00:31:17.447Z","updated_at":"2025-10-14T07:33:08.686Z","avatar_url":"https://github.com/deanc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kysely schema generator\n\nA very quickly hacked-together schema generator for [Kysely](https://kysely.dev/) which (currently) only\nsupports MySQL.\n\n## Installation\n\nWith your package manager of choice install:\n\n```sh\nnpm install --save @deanc/kysely-schema-generator\nyarn add @deanc/kysely-schema-generator\npnpm add @deanc/kysely-schema-generator\n```\n\n# Configuration\n\nEither in your project root or somewhere else create a `.env` file with a `DATABASE_URL` environmental variable:\n\n```shell\nDATABASE_URL='mysql://user:password@host:3306/databaseName'\n```\n\n## Usage\n\n**Option 1 (.env in project root and run)**\n\n```sh\nkysely-schema-generator\n```\n\n**Option 2 (.env somewhere else)**\n\n```sh\nkysely-schema-generator -p /path/to/.env\n```\n\nNote if command can't be found you might need to use your package manager to run it (e.g. `pnpm exec kysely-schema-generator`)\n\n# Todo\n\n(Contributions very welcome)\n\n- Ensure all MySQL field types are mapped correctly\n- Add support for other database engines (Postgres, SQLite at least)\n- Add test coverage\n- (Maybe) offer option to write to disk instead of relying on user to capture\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeanc%2Fkysely-schema-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeanc%2Fkysely-schema-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeanc%2Fkysely-schema-generator/lists"}