Files
go-sqlite3/sqlite3_context.go
Yasuhiro Matsumoto 6796d46c3a implement go18 Pinger
2016-11-03 23:05:34 +09:00

15 lines
211 B
Go

package sqlite3
import (
"context"
"errors"
)
// Ping implement Pinger.
func (c *SQLiteConn) Ping(ctx context.Context) error {
if c.db == nil {
return errors.New("Connection was closed")
}
return nil
}