forked from mirror/go-sqlcipher
Update go doc comments to refer to correct interfaces.
sql.Driver, sql.Conn, sql.Tx sql.Stmt, and sql.Rows are not interfaces. Updated the comments to refer to the correct interfaces: driver.Driver, driver.Conn, driver.Tx, driver.Stmt, and driver.Rows.
This commit is contained in:
parent
b3511bfdd7
commit
e20c81b825
12
sqlite3.go
12
sqlite3.go
|
@ -205,13 +205,13 @@ const (
|
||||||
SQLITE_UPDATE = C.SQLITE_UPDATE
|
SQLITE_UPDATE = C.SQLITE_UPDATE
|
||||||
)
|
)
|
||||||
|
|
||||||
// SQLiteDriver implement sql.Driver.
|
// SQLiteDriver implements driver.Driver.
|
||||||
type SQLiteDriver struct {
|
type SQLiteDriver struct {
|
||||||
Extensions []string
|
Extensions []string
|
||||||
ConnectHook func(*SQLiteConn) error
|
ConnectHook func(*SQLiteConn) error
|
||||||
}
|
}
|
||||||
|
|
||||||
// SQLiteConn implement sql.Conn.
|
// SQLiteConn implements driver.Conn.
|
||||||
type SQLiteConn struct {
|
type SQLiteConn struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
db *C.sqlite3
|
db *C.sqlite3
|
||||||
|
@ -221,12 +221,12 @@ type SQLiteConn struct {
|
||||||
aggregators []*aggInfo
|
aggregators []*aggInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
// SQLiteTx implemen sql.Tx.
|
// SQLiteTx implements driver.Tx.
|
||||||
type SQLiteTx struct {
|
type SQLiteTx struct {
|
||||||
c *SQLiteConn
|
c *SQLiteConn
|
||||||
}
|
}
|
||||||
|
|
||||||
// SQLiteStmt implement sql.Stmt.
|
// SQLiteStmt implements driver.Stmt.
|
||||||
type SQLiteStmt struct {
|
type SQLiteStmt struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
c *SQLiteConn
|
c *SQLiteConn
|
||||||
|
@ -236,13 +236,13 @@ type SQLiteStmt struct {
|
||||||
cls bool
|
cls bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// SQLiteResult implement sql.Result.
|
// SQLiteResult implements sql.Result.
|
||||||
type SQLiteResult struct {
|
type SQLiteResult struct {
|
||||||
id int64
|
id int64
|
||||||
changes int64
|
changes int64
|
||||||
}
|
}
|
||||||
|
|
||||||
// SQLiteRows implement sql.Rows.
|
// SQLiteRows implements driver.Rows.
|
||||||
type SQLiteRows struct {
|
type SQLiteRows struct {
|
||||||
s *SQLiteStmt
|
s *SQLiteStmt
|
||||||
nc int
|
nc int
|
||||||
|
|
Loading…
Reference in New Issue