{"id":16528372,"url":"https://github.com/danvk/ts-sql-tscongress2022","last_synced_at":"2025-08-17T10:39:47.930Z","repository":{"id":191444035,"uuid":"684667567","full_name":"danvk/ts-sql-tscongress2022","owner":"danvk","description":"Sample Code for TypeScript+SQL talk (TypeScript Congress 2022)","archived":false,"fork":false,"pushed_at":"2023-08-29T16:04:07.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T06:28:03.305Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danvk.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":"2023-08-29T15:58:03.000Z","updated_at":"2023-08-29T15:58:38.000Z","dependencies_parsed_at":"2023-08-30T00:26:27.888Z","dependency_job_id":null,"html_url":"https://github.com/danvk/ts-sql-tscongress2022","commit_stats":null,"previous_names":["danvk/ts-sql-tscongress2022"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danvk/ts-sql-tscongress2022","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-sql-tscongress2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-sql-tscongress2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-sql-tscongress2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-sql-tscongress2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danvk","download_url":"https://codeload.github.com/danvk/ts-sql-tscongress2022/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-sql-tscongress2022/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837412,"owners_count":24654378,"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-08-17T02:00:09.016Z","response_time":129,"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":"2024-10-11T17:40:04.227Z","updated_at":"2025-08-17T10:39:47.906Z","avatar_url":"https://github.com/danvk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Code for TypeScript+SQL talk (TypeScript Congress 2022)\n\nThis repo contains the sample code for my 2022 TS Congress Talk: [\"TypeScript and the Database: Who Owns the Types?\"][talk]. You can also read the companion blog post, [TypeScript and SQL: Six Ways to Bridge the Divide][post], or check out the [slides].\n\nThis repo has six branches corresponding to the six techniques described in the post:\n\n- [`raw-sql`][raw-sql]: Raw SQL + Hand-coded types\n- ORMs (e.g. [TypeORM])\n- [`pg-to-ts`][pg2tsb]: Schema Generator (e.g. [pg-to-ts])\n- [`knex`][knex]: Query Builder (e.g. [knex.js])\n- [`pgtyped`][pgtb]: SQL → TS (e.g. [PgTyped])\n- [`crudely-typed`][ctb]: Hybrid Query Builder (e.g. [crudely-typed]) + PgTyped\n\n[talk]: https://portal.gitnation.org/contents/typescript-and-the-database-who-owns-the-types\n[post]: https://effectivetypescript.com/\n[slides]: https://docs.google.com/presentation/d/1OsLdyLMtJ79fvuylYgmjlCrPNS_NK9xIAXKqoAyW3SI/edit#slide=id.p\n[TypeORM]: https://typeorm.io/\n[pg-to-ts]: https://github.com/danvk/pg-to-ts\n[knex.js]: https://knexjs.org/\n[PgTyped]: https://github.com/adelsz/pgtyped\n[crudely-typed]: https://github.com/danvk/crudely-typed\n[raw-sql]: https://github.com/danvk/ts-sql-tscongress2022/tree/raw-sql\n[pg2tsb]: https://github.com/danvk/ts-sql-tscongress2022/tree/pg-to-ts\n[knex]: https://github.com/danvk/ts-sql-tscongress2022/tree/knex\n[pgtb]: https://github.com/danvk/ts-sql-tscongress2022/tree/pgtyped\n[ctb]: https://github.com/danvk/ts-sql-tscongress2022/tree/crudely-typed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanvk%2Fts-sql-tscongress2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanvk%2Fts-sql-tscongress2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanvk%2Fts-sql-tscongress2022/lists"}