{"id":16182529,"url":"https://github.com/lorenzo/mysql-haskell-nem","last_synced_at":"2025-10-04T22:44:46.153Z","repository":{"id":56847803,"uuid":"76792695","full_name":"lorenzo/mysql-haskell-nem","owner":"lorenzo","description":"A simpler query interface for mysql-haskell","archived":false,"fork":false,"pushed_at":"2017-08-24T09:54:13.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-23T04:41:42.122Z","etag":null,"topics":["haskell","mysql","mysql-haskell"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/mysql-haskell-nem","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lorenzo.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}},"created_at":"2016-12-18T16:06:18.000Z","updated_at":"2022-10-04T02:36:38.000Z","dependencies_parsed_at":"2022-08-31T01:00:29.411Z","dependency_job_id":null,"html_url":"https://github.com/lorenzo/mysql-haskell-nem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lorenzo/mysql-haskell-nem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fmysql-haskell-nem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fmysql-haskell-nem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fmysql-haskell-nem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fmysql-haskell-nem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorenzo","download_url":"https://codeload.github.com/lorenzo/mysql-haskell-nem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenzo%2Fmysql-haskell-nem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386118,"owners_count":25978109,"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-10-04T02:00:05.491Z","response_time":63,"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":["haskell","mysql","mysql-haskell"],"created_at":"2024-10-10T06:33:37.859Z","updated_at":"2025-10-04T22:44:46.133Z","avatar_url":"https://github.com/lorenzo.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"mysql-haskell-nem\n=================\n\nProvides a simpler interface for retrieving results when using the [mysql-haskell](http://hackage.haskell.org/package/mysql-haskell) package.\n\nGuide\n-----\n\nThe `Database.MySQL.Base` and `Database.MySQL.Nem` modules provides everything you need to start making queries:\n\n```haskell\n{-# LANGUAGE OverloadedStrings #-}\n\nmodule Main where\n\nimport Database.MySQL.Base\nimport Database.MySQL.Base.Nem\nimport Data.Text (unpack)\nimport qualified System.IO.Streams as Streams\n\nmain :: IO () \nmain = do\n    conn \u003c- connect\n        defaultConnectInfo {ciUser = \"username\", ciPassword = \"password\", ciDatabase = \"dbname\"}\n\n\tresults \u003c- queryResults conn \"SELECT email, name FROM users\" \u003e\u003e=\n\t_ \u003c-\n\t\tStreams.mapM_\n\t\t\t(\\(email, name) -\u003e print $ (Text.unpack email) ++ \":\" ++ (name :: String) ) results \u003e\u003e=\n\t\tStreams.toList\n```\n\nIt's recommended to use prepared statement to improve query speed:\n\n```haskell\n    ...\n    s \u003c- prepareStmt conn \"SELECT * FROM some_table where person_age \u003e ?\"\n    ...\n    results \u003c- queryStmtResutls s [MySQLInt32U 18]\n    ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzo%2Fmysql-haskell-nem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florenzo%2Fmysql-haskell-nem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenzo%2Fmysql-haskell-nem/lists"}