From 09885ef1e4b7610d05377596f02d08c5079c0434 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 22 Jan 2025 00:46:49 +0100 Subject: feat(webui): implement states list --- pkg/database/db.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/database/db.go') diff --git a/pkg/database/db.go b/pkg/database/db.go index 9aeec43..eac31eb 100644 --- a/pkg/database/db.go +++ b/pkg/database/db.go @@ -111,6 +111,10 @@ func (db *DB) Exec(query string, args ...any) (sql.Result, error) { return db.writeDB.ExecContext(db.ctx, query, args...) } +func (db *DB) Query(query string, args ...any) (*sql.Rows, error) { + return db.readDB.QueryContext(db.ctx, query, args...) +} + func (db *DB) QueryRow(query string, args ...any) *sql.Row { return db.readDB.QueryRowContext(db.ctx, query, args...) } -- cgit v1.2.3