diff --git a/db/db.go b/db/db.go index cbce0e43..f68a0558 100644 --- a/db/db.go +++ b/db/db.go @@ -64,6 +64,7 @@ func Exit() { } +// Prepare prepares a query for parameterization for future execution func Prepare(sql string, param ...interface{}) string { return fmt.Sprintf(sql, param...) diff --git a/kvs/db.go b/kvs/db.go index 375a23f1..82d29473 100644 --- a/kvs/db.go +++ b/kvs/db.go @@ -26,6 +26,7 @@ type DB struct { } func New(path string) (db *DB, err error) { +// New sets up the underlying key-value store var ds DS