{"id":13430349,"url":"https://github.com/mysql-net/MySqlConnector","last_synced_at":"2025-03-16T05:30:44.801Z","repository":{"id":37382171,"uuid":"55185530","full_name":"mysql-net/MySqlConnector","owner":"mysql-net","description":"MySQL Connector for .NET","archived":false,"fork":false,"pushed_at":"2024-10-28T03:32:26.000Z","size":7551,"stargazers_count":1389,"open_issues_count":82,"forks_count":334,"subscribers_count":73,"default_branch":"master","last_synced_at":"2024-10-29T17:13:06.422Z","etag":null,"topics":["ado-net","async","dotnet","dotnet-core","hacktoberfest","mariadb","mysql","mysql-connector"],"latest_commit_sha":null,"homepage":"https://mysqlconnector.net","language":"C#","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/mysql-net.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-03-31T21:54:37.000Z","updated_at":"2024-10-29T11:51:07.000Z","dependencies_parsed_at":"2024-01-12T02:36:44.565Z","dependency_job_id":"afa62142-64e6-4929-b4dc-4da7150d03be","html_url":"https://github.com/mysql-net/MySqlConnector","commit_stats":{"total_commits":2601,"total_committers":81,"mean_commits":"32.111111111111114","dds":0.09919261822376013,"last_synced_commit":"788107c70aaf22513afdb0835efe37ee512ca868"},"previous_names":[],"tags_count":226,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysql-net","download_url":"https://codeload.github.com/mysql-net/MySqlConnector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":["ado-net","async","dotnet","dotnet-core","hacktoberfest","mariadb","mysql","mysql-connector"],"created_at":"2024-07-31T02:00:52.513Z","updated_at":"2025-03-16T05:30:44.792Z","avatar_url":"https://github.com/mysql-net.png","language":"C#","funding_links":[],"categories":["Frameworks, Libraries and Tools","HarmonyOS","C\\#","框架, 库和工具","Database Drivers"],"sub_categories":["Database Drivers","Windows Manager","数据库驱动程序"],"readme":"# MySQL Connector for .NET and .NET Core\n\n[![NuGet](https://img.shields.io/nuget/vpre/MySqlConnector.svg)](https://www.nuget.org/packages/MySqlConnector/)\n\nThis is an [ADO.NET](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/) data\nprovider for [MySQL](https://www.mysql.com/) and other compatible servers including [MariaDB](https://www.mariadb.org).\nIt provides implementations of\n`DbConnection`, `DbCommand`, `DbDataReader`, `DbTransaction`—the classes\nneeded to query and update databases from managed code.\n\nComplete documentation is available at the [MySqlConnector Documentation Website](https://mysqlconnector.net/).\n\n## Why Use This Library?\n\n### Performance\n\nThis library outperforms MySQL Connector/NET (`MySql.Data`) on benchmarks:\n\n![Benchmark](https://files.logoscdn.com/v1/assets/15435916/optimized)\n\n(Client: MySqlConnector 2.3.1, MySql.Data 8.2.0, Ubuntu 23.04, .NET 8.0; Server: Azure Database for MySQL 8.0.34, TLS 1.2)\n\n### Server Compatibility\n\nThis library is compatible with [many MySQL-compatible servers](https://mysqlconnector.net/#server-compatibility), including MySQL 5.5 and newer and MariaDB 10.x and newer.\nMySql.Data [only supports MySQL Server](https://bugs.mysql.com/bug.php?id=109331).\n\n### Bug Fixes\n\nThis library [fixes dozens of outstanding bugs](https://mysqlconnector.net/tutorials/migrating-from-connector-net/#fixed-bugs) in Connector/NET.\n\n### Cutting Edge\n\nThis library implements the latest ADO.NET APIs, from async (introduced in .NET Framework 4.5), through `DbBatch` (.NET 6.0) and `DbDataSource` (.NET 7.0).\n\n### License\n\nThis library is [MIT-licensed](LICENSE) and may be freely distributed with commercial software.\nCommercial software that uses Connector/NET may have to purchase a [commercial license](https://www.mysql.com/about/legal/licensing/oem/)\nfrom Oracle.\n\n## Related Projects\n\nThis library is compatible with popular .NET ORMs including:\n\n* [Dapper](https://dapperlib.github.io/Dapper/) ([GitHub](https://github.com/DapperLib/Dapper), [NuGet](https://www.nuget.org/packages/Dapper))\n* [Faithlife.Data](https://faithlife.github.io/FaithlifeData/) ([GitHub](https://github.com/Faithlife/FaithlifeData), [NuGet](https://www.nuget.org/packages/Faithlife.Data))\n* [FreeSql](https://freesql.net/) ([GitHub](https://github.com/dotnetcore/FreeSql), [NuGet](https://www.nuget.org/packages/FreeSql.Provider.MySqlConnector/))\n* [LINQ to DB](https://linq2db.github.io/) ([GitHub](https://github.com/linq2db/linq2db), [NuGet](https://www.nuget.org/packages/linq2db.MySqlConnector)) including ClickHouse support\n* [NHibernate](https://nhibernate.info/) ([GitHub](https://github.com/nhibernate/NHibernate.MySqlConnector), [NuGet](https://www.nuget.org/packages/NHibernate.Driver.MySqlConnector))\n* [NReco.Data](https://www.nrecosite.com/dalc_net.aspx) ([GitHub](https://github.com/nreco/data), [NuGet](https://www.nuget.org/packages/NReco.Data))\n* [Paradigm ORM](https://www.paradigm.net.co/) ([GitHub](https://github.com/MiracleDevs/Paradigm.ORM), [NuGet](https://www.nuget.org/packages/Paradigm.ORM.Data.MySql/))\n* [RepoDb](https://repodb.net/) ([GitHub](https://github.com/mikependon/RepoDb/tree/master/RepoDb.MySqlConnector), [NuGet](https://www.nuget.org/packages/RepoDb.MySqlConnector))\n* [ServiceStack.OrmLite](https://servicestack.net/ormlite) ([GitHub](https://github.com/ServiceStack/ServiceStack.OrmLite), [NuGet](https://www.nuget.org/packages/ServiceStack.OrmLite.MySqlConnector))\n* [SimpleStack.Orm](https://simplestack.org/) ([GitHub](https://github.com/SimpleStack/simplestack.orm), [NuGet](https://www.nuget.org/packages/SimpleStack.Orm.MySQLConnector))\n\nFor Entity Framework support, use:\n\n* Pomelo.EntityFrameworkCore.MySql ([GitHub](https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql), [NuGet](https://www.nuget.org/packages/Pomelo.EntityFrameworkCore.MySql))\n\nFor ASP.NET Core health checks, use:\n\n* AspNetCore.HealthChecks.MySql ([GitHub](https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks), [NuGet](https://www.nuget.org/packages/AspNetCore.HealthChecks.MySql))\n\n## Build Status\n\n[![AppVeyor](https://img.shields.io/appveyor/ci/mysqlnet/mysqlconnector/master.svg)](https://ci.appveyor.com/project/mysqlnet/mysqlconnector)\n[![Azure Pipelines](https://dev.azure.com/mysqlnet/MySqlConnector/_apis/build/status/mysql-net.MySqlConnector?branchName=master)](https://dev.azure.com/mysqlnet/MySqlConnector/_build/latest?definitionId=2\u0026branchName=master)\n\n## Building\n\nInstall the latest [.NET](https://dotnet.microsoft.com/en-us/download).\n\nTo build and run the tests, clone the repo and execute:\n\n```\ndotnet restore\ndotnet test tests\\MySqlConnector.Tests\n```\n\nTo run the integration tests, see [the instructions](tests/README.md).\n\n## Goals\n\nThe goals of this project are:\n\n1. **.NET Standard support:** It must run on the full .NET Framework and all platforms supported by .NET Core.\n2. **Async:** All operations must be truly asynchronous whenever possible.\n3. **High performance:** Avoid unnecessary allocations and copies when reading data.\n4. **Lightweight:** Only the core of ADO.NET is implemented, not EF or Designer types.\n5. **Managed:** Managed code only, no native code.\n6. **Independent:** This is a clean-room reimplementation of the [MySQL Protocol](https://dev.mysql.com/doc/internals/en/client-server-protocol.html), not based on Connector/NET.\n\nCloning the full API of Connector/NET is not a goal of this project, although\nit will try not to be gratuitously incompatible. For typical scenarios, [migrating to this package](https://mysqlconnector.net/tutorials/migrating-from-connector-net/) should\nbe easy.\n\n## License\n\nThis library is licensed under the [MIT License](LICENSE).\n\n## Contributing\n\nIf you'd like to contribute to MySqlConnector, please read our [contributing guidelines](.github/CONTRIBUTING.md).\n\n## Acknowledgements\n\nDevelopment of MySqlConnector is supported by:\n\n[![Devolutions](https://webdevolutions.blob.core.windows.net/images/projects/devolutions/logos/devolutions-icon-shadow.svg)](https://devolutions.net/)\n\n[Devolutions](https://devolutions.net/)\n\n[![Faithlife](https://files.logoscdn.com/v1/files/4319104/content.svg?signature=3szVb3XmOfYMAxIv-LmuNYL_290)](https://faithlife.com/about)\n\n[Faithlife](https://faithlife.com/about) ([View jobs](https://faithlife.com/careers))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysql-net%2FMySqlConnector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysql-net%2FMySqlConnector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysql-net%2FMySqlConnector/lists"}