1
0

Return Guestbook interface instead of SQLiteDatabase instance.

This commit is contained in:
Alexander Andreev 2023-05-06 22:19:04 +04:00
parent f602dddff3
commit bea8df31cb
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -100,7 +100,7 @@ type SQLiteDatabase struct {
db *sql.DB db *sql.DB
} }
func New(filePath string) (*SQLiteDatabase, error) { func New(filePath string) (guestbook.Guestbook, error) {
db, err := sql.Open("sqlite3", dsn(filePath)) db, err := sql.Open("sqlite3", dsn(filePath))
if err != nil { if err != nil {
return nil, err return nil, err