storage.go 440 B

12345678910111213141516171819
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package storage // import "miniflux.app/storage"
  5. import (
  6. "database/sql"
  7. )
  8. // Storage handles all operations related to the database.
  9. type Storage struct {
  10. db *sql.DB
  11. }
  12. // NewStorage returns a new Storage.
  13. func NewStorage(db *sql.DB) *Storage {
  14. return &Storage{db}
  15. }