aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite3_context.go')
-rw-r--r--sqlite3_context.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/sqlite3_context.go b/sqlite3_context.go
new file mode 100644
index 0000000..26e4998
--- /dev/null
+++ b/sqlite3_context.go
@@ -0,0 +1,14 @@
+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
+}