{"id":13508878,"url":"https://github.com/tjheeta/mysqlex","last_synced_at":"2026-02-22T11:05:52.443Z","repository":{"id":32986741,"uuid":"36613941","full_name":"tjheeta/mysqlex","owner":"tjheeta","description":"Mysql driver for Elixir from Erlang","archived":false,"fork":false,"pushed_at":"2020-03-03T15:32:58.000Z","size":9,"stargazers_count":8,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T16:58:55.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/tjheeta.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}},"created_at":"2015-05-31T17:25:43.000Z","updated_at":"2023-09-05T12:37:38.000Z","dependencies_parsed_at":"2022-09-03T21:31:12.560Z","dependency_job_id":null,"html_url":"https://github.com/tjheeta/mysqlex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tjheeta/mysqlex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjheeta%2Fmysqlex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjheeta%2Fmysqlex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjheeta%2Fmysqlex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjheeta%2Fmysqlex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjheeta","download_url":"https://codeload.github.com/tjheeta/mysqlex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjheeta%2Fmysqlex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29710317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T10:34:24.778Z","status":"ssl_error","status_checked_at":"2026-02-22T10:32:23.200Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-08-01T02:00:59.828Z","updated_at":"2026-02-22T11:05:52.426Z","avatar_url":"https://github.com/tjheeta.png","language":"Elixir","funding_links":[],"categories":["ORM and Datamapping"],"sub_categories":[],"readme":"Mysqlex\n=======\n\nThis is a wrapper around a newer mysql library for erlang:\n\nhttps://github.com/mysql-otp\n\nThere are benchmarks for the mysql drivers:\n\n* http://tjheeta.github.io/2015/05/31/elixir-and-erlang-mysql-drivers.html\n* http://tjheeta.github.io/2015/05/30/benchmarking-elixir-postgres-mysql-ecto.html\n\n\n\n## Usage\n\nTo use add the following to your mix.exs:\n\n~~~\ndef deps do\n  [{:mysqlex, github: \"tjheeta/mysqlex\" } ]\nend\n~~~\n\nProfit:\n\n~~~\niex(8)\u003e {:ok, pid} = Mysqlex.Connection.start_link(username: \"test\", database: \"test\", password: \"test\", hostname: \"10.0.3.82\")\n{:ok, #PID\u003c0.1420.0\u003e}\niex(9)\u003e Mysqlex.Connection.query(pid, \"CREATE TABLE posts (id serial, title text)\")\n{:ok,\n %Mysqlex.Result{columns: [], command: :create, last_insert_id: 0, num_rows: 0,\n  rows: []}}\niex(10)\u003e Mysqlex.Connection.query(pid, \"CREATE TABLE posts (id serial, title text)\")\n{:error,\n %Mysqlex.Error{message: \"1050 - Table 'posts' already exists\", mysqlex: nil}}\niex(11)\u003e Mysqlex.Connection.query(pid, \"INSERT INTO posts (title) VALUES ('my title')\")\n{:ok,\n %Mysqlex.Result{columns: [], command: :insert, last_insert_id: 1, num_rows: 1,\n  rows: []}}\niex(12)\u003e Mysqlex.Connection.query(pid, \"SELECT title FROM posts\", [])\n{:ok,\n %Mysqlex.Result{columns: [\"title\"], command: :select, last_insert_id: nil,\n  num_rows: 1, rows: [{\"my title\"}]}}\niex(13)\u003e Mysqlex.Connection.query(pid, \"SELECT id FROM posts WHERE title like ?\", [\"%my%\"])\n{:ok,\n %Mysqlex.Result{columns: [\"id\"], command: :select, last_insert_id: nil,\n  num_rows: 1, rows: [{1}]}}\n\n~~~\n\nTo use with ecto, you'll have to patch it for now:\n\nhttps://gist.github.com/tjheeta/800deab2b9e7b2b9651b\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjheeta%2Fmysqlex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjheeta%2Fmysqlex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjheeta%2Fmysqlex/lists"}