Skip to content

Commit 1ad7669

Browse files
committed
chore: update README
1 parent ee6d1bf commit 1ad7669

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

README.md

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![license](https://img.shields.io/github/license/pardnchiu/go-mysql-pool)](https://github.com/pardnchiu/go-mysql-pool/blob/main/LICENSE)
77
[![version](https://img.shields.io/github/v/tag/pardnchiu/go-mysql-pool)](https://github.com/pardnchiu/go-mysql-pool/releases)
88

9-
## Key Features
9+
## Features
1010

1111
- **Read-Write Separation**: Support for independent read and write connection pool configurations to enhance database performance
1212
- **Query Builder**: Fluent SQL query building interface to prevent SQL injection
@@ -317,40 +317,6 @@ result, err := pool.Write.Exec("UPDATE users SET last_login = NOW() WHERE id = ?
317317
lastID, err := builder.Upsert(insertData, updateData)
318318
```
319319

320-
## Error Handling Strategy
321-
322-
### Connection Management Errors
323-
- Automatically re-establish connections when they fail
324-
- Proper waiting and timeout handling when connection pool is exhausted
325-
- Graceful degradation when database is unavailable
326-
327-
### SQL Execution Errors
328-
- Detailed error reporting for SQL syntax errors
329-
- Clear messages for constraint violation errors
330-
- Automatic cancellation of timeout queries
331-
332-
### Concurrency Safety
333-
- Thread-safe connection pool operations
334-
- Concurrency-safe query builder design
335-
- Proper locking mechanisms to prevent race conditions
336-
337-
## Performance Features
338-
339-
### Connection Pool Optimization
340-
- Pre-established connections reduce creation overhead
341-
- Connection reuse improves overall performance
342-
- Automatic connection health checks
343-
344-
### Query Optimization
345-
- Prepared statement reuse mechanism
346-
- Automatic slow query logging and analysis
347-
- Query execution time monitoring
348-
349-
### Memory Management
350-
- Efficient query builder memory usage
351-
- Automatic release of unused connections
352-
- Streaming result set processing support
353-
354320
## License
355321

356322
This source code project is licensed under the [MIT](https://github.com/pardnchiu/go-mysql-pool/blob/main/LICENSE) License.

0 commit comments

Comments
 (0)