{"id":16451710,"url":"https://github.com/tpolecat/doobie-tsql","last_synced_at":"2025-03-23T09:30:48.692Z","repository":{"id":152693718,"uuid":"60150930","full_name":"tpolecat/doobie-tsql","owner":"tpolecat","description":"compile-time typechecked sql literals for doobie","archived":false,"fork":false,"pushed_at":"2018-09-06T19:45:56.000Z","size":584,"stargazers_count":20,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T19:37:48.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/tpolecat.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-01T06:23:38.000Z","updated_at":"2021-05-06T20:37:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"a78072b9-8dbd-4bcb-8850-87af132e4a47","html_url":"https://github.com/tpolecat/doobie-tsql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpolecat%2Fdoobie-tsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpolecat%2Fdoobie-tsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpolecat%2Fdoobie-tsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpolecat%2Fdoobie-tsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpolecat","download_url":"https://codeload.github.com/tpolecat/doobie-tsql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245081973,"owners_count":20557877,"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":[],"created_at":"2024-10-11T10:10:02.962Z","updated_at":"2025-03-23T09:30:48.684Z","avatar_url":"https://github.com/tpolecat.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doobie-tsql\n\nCompile-time checked SQL literals for **[doobie]()** with fancy inferred types.\n\nThis is a prototype that works with **doobie 0.4.2-SNAPSHOT** for **Cats** on **Scala 2.12**. There is a snapshot release on Sonatype that you can use thus:\n\n```scala\nresolvers in ThisBuild +=\n  \"Sonatype OSS Snapshots\" at \"https://oss.sonatype.org/content/repositories/snapshots\"\n\nlibraryDependencies ++= Seq(\n  \"org.tpolecat\" %% \"doobie-tsql-core\"          % \"0.2-SNAPSHOT\",\n  \"org.tpolecat\" %% \"doobie-tsql-postgres\" % \"0.2-SNAPSHOT\" // optional, for array type mappings and some other things\n)\n```\n\nThe high points:\n\n- The new `tsql` interpolator checks statements against the live schema at compile-time and infers fancy types that allow fine-grained type mappings that can be constrained based on schema-specific types or even table/column names.\n- The new `Read` and `Write` typeclasses subsume the `Meta/Atom/Composite` stack. The design is more general and much simpler.\n- Some rough edges and basically no doc yet. Sorry.\n\nSee the [**EXAMPLE**](EXAMPLE.md) for much more information.\n\n### Building\n\nIf you want to build and run the tests you will need to set up MySQL and Postgres as specified in the `.travis.yml` file. The H2 tests don't require any setup.\n\n### TODO\n\n- [x] CI, etc.\n- [ ] better handling of credentials\n- [x] Updates returning generated keys.\n- [x] Bulk updates.\n- [x] remove param type and nullity for ParameterMeta\n- [x] Stream\n- [ ] `in` clauses (hard, ok to punt)\n- [ ] generalized Write deriving (generic, unitary, etc.)\n- [x] array~collection read via CBF\n- [ ] array~collection write via CBF\n- [ ] date/time type mappings\n- [x] narrowed derivations (ARRAY int4 to Array[Int] for instance)\n= [x] clean up `TPrint` impl, get working in normal REPL\n- [ ] tut micro-site\n- [x] reducer, monadplus\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpolecat%2Fdoobie-tsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpolecat%2Fdoobie-tsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpolecat%2Fdoobie-tsql/lists"}