{"id":13453182,"url":"https://github.com/flike/kingshard","last_synced_at":"2025-05-14T02:05:55.924Z","repository":{"id":34572197,"uuid":"38518423","full_name":"flike/kingshard","owner":"flike","description":"A high-performance MySQL proxy","archived":false,"fork":false,"pushed_at":"2024-05-17T23:46:28.000Z","size":5309,"stargazers_count":6415,"open_issues_count":161,"forks_count":1235,"subscribers_count":390,"default_branch":"master","last_synced_at":"2025-04-09T02:12:12.962Z","etag":null,"topics":["kingshard","mysql","mysql-proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","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/flike.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":"2015-07-04T02:22:32.000Z","updated_at":"2025-04-08T02:12:32.000Z","dependencies_parsed_at":"2024-05-18T00:33:06.353Z","dependency_job_id":"71369fdc-2d15-4457-89e3-16b5cf9757d0","html_url":"https://github.com/flike/kingshard","commit_stats":{"total_commits":389,"total_committers":59,"mean_commits":6.593220338983051,"dds":0.3033419023136247,"last_synced_commit":"f17b3939474659568b3aa14aa89beeef8da4f24b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fkingshard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fkingshard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fkingshard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fkingshard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flike","download_url":"https://codeload.github.com/flike/kingshard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052692,"owners_count":22006716,"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":["kingshard","mysql","mysql-proxy"],"created_at":"2024-07-31T08:00:34.214Z","updated_at":"2025-05-14T02:05:50.910Z","avatar_url":"https://github.com/flike.png","language":"Go","funding_links":[],"categories":["Go","数据库","开源类库","Misc","Database","Open source library","DBProxy","Go (531)","Generators","\u003cspan id=\"数据库-database\"\u003e数据库 Database\u003c/span\u003e","数据库中间件( DB Proxy )","数据库  `go语言实现的数据库`","數據庫","Uncategorized"],"sub_categories":["高级控制台界面","数据库","Advanced Console UIs","Database","Database Tools","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","数据库工具","高級控制台界面"],"readme":"#  kingshard [中文主页](README_ZH.md)\n\n[![Build Status](https://travis-ci.org/flike/kingshard.svg?branch=master)](https://travis-ci.org/flike/kingshard)\n\n## Overview\n\nkingshard is a high-performance proxy for MySQL powered by Go. Just like other mysql proxies, you can use it to split the read/write sqls. Now it supports basic SQL statements (select, insert, update, replace, delete). The most important feature is the sharding function. Kingshard aims to simplify the sharding solution of MySQL. **The Performance of kingshard is about 80% compared to connecting to MySQL directly.**\n\n## Feature\n\n### 1. Basic Function\n- Splits reads and writes\n- Client's ip ACL control.\n- Transaction in single node.\n- Support limiting the max count of connections to MySQL database.\n- Support setting the backend database online or offline dynamically.\n- Supports prepared statement: COM_STMT_PREPARE, COM_STMT_EXECUTE, etc.\n- Support multi slaves, and load balancing between slaves.\n- Support reading master database forcely.\n- Support last_insert_id().\n- Support MySQL backends HA.\n- Support set the charset of proxy.\n- Support SQL blacklist.\n- Support dynamically changing the config value of kingshard.\n\n### 2. Sharding Function\n- Support hash,range and date sharding across multiple nodes.\n- Support sending sql to the specified node.\n- Support most commonly used functions, such as `max, min, count, sum`, and also support `join, limit, order by,group by`.\n\n## Install\n```\n  1. Install Go\n  2. git clone https://github.com/flike/kingshard.git $GOPATH/src/github.com/flike/kingshard\n  3. cd $GOPATH/src/github.com/flike/kingshard\n  4. source ./dev.sh\n  5. make\n  6. set the config file (etc/ks.yaml)\n  7. run kingshard (./bin/kingshard -config=etc/ks.yaml)\n```\n\n# Details of kingshard\n\n[1.How to use kingshard building a MySQL cluster](./doc/KingDoc/how_to_use_kingshard_EN.md)\n\n## License\n\nkingshard is under the Apache 2.0 license. See the [LICENSE](./doc/License) directory for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflike%2Fkingshard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflike%2Fkingshard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflike%2Fkingshard/lists"}