{"id":20880228,"url":"https://github.com/betarixm/kysely-sql-js","last_synced_at":"2026-01-08T20:48:30.558Z","repository":{"id":243697231,"uuid":"813178427","full_name":"betarixm/kysely-sql-js","owner":"betarixm","description":"Kysely dialect for sql.js","archived":false,"fork":false,"pushed_at":"2024-06-12T13:51:04.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T10:04:43.949Z","etag":null,"topics":["kysely","sql-js","sqlite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/betarixm.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,"publiccode":null,"codemeta":null}},"created_at":"2024-06-10T16:05:29.000Z","updated_at":"2024-06-12T13:51:08.000Z","dependencies_parsed_at":"2024-11-18T09:30:37.076Z","dependency_job_id":null,"html_url":"https://github.com/betarixm/kysely-sql-js","commit_stats":null,"previous_names":["betarixm/kysely-sql-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Fkysely-sql-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Fkysely-sql-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Fkysely-sql-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Fkysely-sql-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betarixm","download_url":"https://codeload.github.com/betarixm/kysely-sql-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246684981,"owners_count":20817535,"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":["kysely","sql-js","sqlite"],"created_at":"2024-11-18T07:19:33.058Z","updated_at":"2026-01-08T20:48:30.487Z","avatar_url":"https://github.com/betarixm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kysely-sql-js\n\n![Powered by TypeScript](https://img.shields.io/badge/powered%20by-typescript-blue.svg)\n\n[Kysely](https://github.com/koskimas/kysely) dialect for [sql.js](https://sql.js.org/#/).\n\nThis dialect is just for testing purposes. It's not recommended to use it in production.\n\n## Usage\n\n```ts\nimport { type GeneratedAlways, Kysely } from \"kysely\";\nimport initSqlJs from \"sql.js\";\n\nimport { SqlJsDialect } from \"kysely-sql-js\";\n\ninterface Database {\n  person: {\n    id: GeneratedAlways\u003cnumber\u003e;\n    first_name: string | null;\n    last_name: string | null;\n    age: number;\n  };\n}\n\nconst SqlJsStatic = await initSqlJs();\n\nexport const db = new Kysely\u003cDatabase\u003e({\n  dialect: new SqlJsDialect({ sqlJs: new SqlJsStatic.Database() }),\n});\n```\n\nCheck detailed example from [tests/getting-started](tests/getting-started).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetarixm%2Fkysely-sql-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetarixm%2Fkysely-sql-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetarixm%2Fkysely-sql-js/lists"}