aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2017-01-11 01:18:51 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2017-01-11 01:18:51 +0900
commitb59c804b1dae401831c402e3337ca2a0f9df1552 (patch)
tree2860fa880a18a57466634b7ce98cfe27734efa79
parentfixes #368 (diff)
downloadgolite-b59c804b1dae401831c402e3337ca2a0f9df1552.tar.gz
golite-b59c804b1dae401831c402e3337ca2a0f9df1552.tar.xz
dummy constants
-rw-r--r--_example/trace/main.go2
-rw-r--r--tracecallback_noimpl.go13
2 files changed, 13 insertions, 2 deletions
diff --git a/_example/trace/main.go b/_example/trace/main.go
index 269e452..9f83ee1 100644
--- a/_example/trace/main.go
+++ b/_example/trace/main.go
@@ -1,5 +1,3 @@
-// +build trace
-
package main
import (
diff --git a/tracecallback_noimpl.go b/tracecallback_noimpl.go
index f270415..09b55d0 100644
--- a/tracecallback_noimpl.go
+++ b/tracecallback_noimpl.go
@@ -4,7 +4,20 @@ package sqlite3
import "errors"
+// Trace... constants identify the possible events causing callback invocation.
+// Values are same as the corresponding SQLite Trace Event Codes.
+const (
+ TraceStmt = uint32(0x01)
+ TraceProfile = uint32(0x02)
+ TraceRow = uint32(0x04)
+ TraceClose = uint32(0x08)
+)
+
// RegisterAggregator register the aggregator.
func (c *SQLiteConn) RegisterAggregator(name string, impl interface{}, pure bool) error {
return errors.New("This feature is not implemented")
}
+
+func (c *SQLiteConn) SetTrace(requested *TraceConfig) error {
+ return errors.New("This feature is not implemented")
+}