You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MySqlConnector is a high-performance ADO.NET Data Provider for MySQL.
6
+
It implements the MySQL protocol and handles authentication, connection pooling, and data access.
7
+
8
+
## Key Conventions
9
+
10
+
### Code Style
11
+
- follow Microsoft's C# coding conventions with the exception that field names are prefixed with `m_` and are specified at the end of the class definition
12
+
- use C# nullable reference types and implicit usings
13
+
- XML documentation required for public APIs
14
+
- use tabs for indentation in *.cs files; use two spaces for indentation in XML and JSON files, including *.csproj files
15
+
- follow the rules from `.editorconfig`
16
+
- implement async methods using the IOBehavior pattern: sync and async methods delegate to a common implementation that takes an IOBehavior parameter and handles both I/O types
17
+
18
+
### Performance
19
+
- minimize allocations in hot paths
20
+
- use Span-based APIs wherever possible
21
+
22
+
### Testing
23
+
- Test files should be located in corresponding test directories. Place unit tests in tests/MySqlConnector.Tests. Place integration tests in tests/IntegrationTests.
24
+
- Test names should be descriptive and follow the pattern `CamelCaseShortDescription`.
0 commit comments