miniflux/storage/storage.go

20 lines
440 B
Go
Raw Normal View History

2017-11-20 06:10:04 +01:00
// Copyright 2017 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
2018-08-25 06:51:50 +02:00
package storage // import "miniflux.app/storage"
2017-11-20 06:10:04 +01:00
import (
"database/sql"
)
2017-11-28 06:30:04 +01:00
// Storage handles all operations related to the database.
2017-11-20 06:10:04 +01:00
type Storage struct {
db *sql.DB
}
2017-11-28 06:30:04 +01:00
// NewStorage returns a new Storage.
2018-08-02 05:28:45 +02:00
func NewStorage(db *sql.DB) *Storage {
return &Storage{db}
2017-11-20 06:10:04 +01:00
}