* Conn acts like a MySQL server connection, you can use MySQL client to communicate with it. */
| 17 | Conn acts like a MySQL server connection, you can use MySQL client to communicate with it. |
| 18 | */ |
| 19 | type Conn struct { |
| 20 | *packet.Conn |
| 21 | |
| 22 | serverConf *Server |
| 23 | capability uint32 |
| 24 | charset uint8 |
| 25 | authPluginName string |
| 26 | connectionID uint32 |
| 27 | status uint16 |
| 28 | warnings uint16 |
| 29 | salt []byte // should be 8 + 12 for auth-plugin-data-part-1 and auth-plugin-data-part-2 |
| 30 | |
| 31 | credentialProvider CredentialProvider |
| 32 | user string |
| 33 | password string |
| 34 | cachingSha2FullAuth bool |
| 35 | |
| 36 | h Handler |
| 37 | |
| 38 | stmts map[uint32]*Stmt |
| 39 | stmtID uint32 |
| 40 | |
| 41 | closed sync2.AtomicBool |
| 42 | |
| 43 | db string |
| 44 | TxConn *client.Conn |
| 45 | } |
| 46 | |
| 47 | var baseConnID uint32 = 10000 |
| 48 |
nothing calls this directly
no outgoing calls
no test coverage detected