{"id":24585424,"url":"https://github.com/GolangToolKits/go-mysql","last_synced_at":"2025-10-05T11:31:08.391Z","repository":{"id":65730520,"uuid":"596767764","full_name":"GolangToolKits/go-mysql","owner":"GolangToolKits","description":"A simple mockable mysql db interface","archived":false,"fork":false,"pushed_at":"2023-03-01T17:18:11.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T05:12:01.757Z","etag":null,"topics":["database","go","golang","mysql","mysql-database"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GolangToolKits.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-02T22:08:54.000Z","updated_at":"2023-05-11T23:48:05.000Z","dependencies_parsed_at":"2024-06-20T17:29:03.309Z","dependency_job_id":"33d34c9d-c02a-4430-b4cf-b1c2f20874d4","html_url":"https://github.com/GolangToolKits/go-mysql","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"e5e2b43dbcbbe21edfc10b5f319fff1ec50aa99e"},"previous_names":["golangtoolkits/go_mysql"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GolangToolKits%2Fgo-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GolangToolKits","download_url":"https://codeload.github.com/GolangToolKits/go-mysql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235388545,"owners_count":18981945,"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":["database","go","golang","mysql","mysql-database"],"created_at":"2025-01-24T05:12:03.645Z","updated_at":"2025-10-05T11:31:03.076Z","avatar_url":"https://github.com/GolangToolKits.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-mysql\nAn easy to use Mockable db interface for mysql\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/GolangToolKits/go-mysql)](https://goreportcard.com/report/github.com/GolangToolKits/go-mysql)\n\n```go\n\n    mm := \u0026MyDB{\n\t    Host:     \"localhost:3306\",\n\t    User:     \"test\",\n\t    Password: \"test\",\n\t    Database: \"test\",\t\t\t\t\n    }\n    m := mm.New()\n    m.Connect()\n    m.Insert(query, args...)\n    m.Update(query, args...)\n    m.Get(query, args...)\n    m.GetList(query, args...)\n    m.Delete(query, args...)\n\n```\n\n## Also Supports Transactions\n\n```go\n mm := \u0026MyDB{\n\t    Host:     \"localhost:3306\",\n\t    User:     \"test\",\n\t    Password: \"test\",\n\t    Database: \"test\",\t\t\t\t\n    }\n    m := mm.New()\n    m.Connect()\n    tr := m.BeginTransaction()\n    tr.Insert(query, args...)\n    tr.Update(query, args...)\n    tr.Get(query, args...)\n    tr.GetList(query, args...)\n    tr.Delete(query, args...)\n    tr.Commit()\n    //Or\n    tr.Rollback()\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGolangToolKits%2Fgo-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGolangToolKits%2Fgo-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGolangToolKits%2Fgo-mysql/lists"}