-
Notifications
You must be signed in to change notification settings - Fork 0
Home
MR.Fan edited this page Aug 31, 2020
·
1 revision
Design:
For more goroutine can use the api safty.
Split the db operation.
- get connection from pool.
- parse the Executer/Query.
- run the sql(s) .
- fetch the result into the out parameter.
- return the connection back to the pool.
the Interface
BaseOp
the base method
Error() error
, Raw()
ExecuteOp
the update/remove/create sql
QueryOp
the select sql