Sqlx Implementation

type DB struct {
    *sql.DB
    driverName string
    unsafe     bool
    Mapper     *reflectx.Mapper
}
// sqlx.DB 内嵌了 sql.DB 因此,可以直接调用sql的一些方法
// sqlx.Conn
// Conn is a wrapper around sql.Conn with extra functionality
type Conn struct {
    *sql.Conn
    driverName string
    unsafe     bool
    Mapper     *reflectx.Mapper
}

Leave a Comment

Your email address will not be published. Required fields are marked *

PHP 8.1.1 - 13.838 ms, 0 Q