summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/db.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/db.go b/db/db.go
index 3210846..d9b4578 100644
--- a/db/db.go
+++ b/db/db.go
@@ -150,6 +150,12 @@ func (p *Phlox) Open(filename string) error {
}
+func (p *Phlox) Close() error {
+ err := p.db.Close()
+ return err
+}
+
+
func (p *Phlox) GetSchemaVersion() (int, error) {
row := p.db.QueryRow("select max(version) from schema;")
if row.Err() != nil {