diff options
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 { |