diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-02 15:39:16 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-02 15:39:16 -0500 |
commit | f3d05a65ffc6862c2f655c9699b718c9a4286aaa (patch) | |
tree | 544d81fc117546de0b7ca2b2a8854bba00a0e703 /db | |
parent | b0d8eb635ccc4b95979714f93051cc8cd9757cd1 (diff) |
add configuration of host address and login page
Diffstat (limited to 'db')
-rw-r--r-- | db/db.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 { |