From f3d05a65ffc6862c2f655c9699b718c9a4286aaa Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 2 May 2023 15:39:16 -0500 Subject: add configuration of host address and login page --- db/db.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'db') 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 { -- cgit v1.2.1