summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-05-02 15:39:16 -0500
committersanine-a <sanine.not@pm.me>2023-05-02 15:39:16 -0500
commitf3d05a65ffc6862c2f655c9699b718c9a4286aaa (patch)
tree544d81fc117546de0b7ca2b2a8854bba00a0e703 /db
parentb0d8eb635ccc4b95979714f93051cc8cd9757cd1 (diff)
add configuration of host address and login page
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 {