{"id":16586303,"url":"https://github.com/tjdevries/octane.ml","last_synced_at":"2025-04-07T12:08:34.373Z","repository":{"id":226485015,"uuid":"768239283","full_name":"tjdevries/octane.ml","owner":"tjdevries","description":"The fastest, hottest","archived":false,"fork":false,"pushed_at":"2024-11-14T02:27:12.000Z","size":247,"stargazers_count":97,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T11:02:12.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/tjdevries.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":"2024-03-06T18:08:33.000Z","updated_at":"2025-03-29T03:33:43.000Z","dependencies_parsed_at":"2024-03-07T20:45:31.086Z","dependency_job_id":"9f45e114-ef3c-49f9-9d8c-be4c005510a4","html_url":"https://github.com/tjdevries/octane.ml","commit_stats":null,"previous_names":["tjdevries/octane.ml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Foctane.ml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Foctane.ml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Foctane.ml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Foctane.ml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjdevries","download_url":"https://codeload.github.com/tjdevries/octane.ml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648978,"owners_count":20972945,"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-11T22:51:08.994Z","updated_at":"2025-04-07T12:08:34.354Z","avatar_url":"https://github.com/tjdevries.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `octane.ml`\n\n\u003e The fastest, the hottest\n\n## Usage\n\nCreate a User model. The model has two columns. \n\n\u003e **Note:** Migrations coming later\n\n```ocaml\nmodule User = struct\n  type t =\n    { id : int\n    ; name : string\n    }\n  [@@deriving table { name = \"users\" }]\nend\n```\n\nAfter you have a model, you can write typesafe queries!\n\n```ocaml\nlet%query (module UserName) = \"SELECT User.id, User.name FROM User\"\n\nlet print_users db =\n  let* users = UserName.query db in\n  List.iter users ~f:(fun { id; name } -\u003e\n    Fmt.pr \"@.We read this from the database: %d - %s@.\" id name);\n  Ok ()\n;;\n```\n\nThere's more things too, but I haven't written those parts yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Foctane.ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjdevries%2Foctane.ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Foctane.ml/lists"}