mirror of
https://github.com/miniflux/v2.git
synced 2024-09-11 21:47:58 +02:00
20 lines
440 B
Go
20 lines
440 B
Go
// 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.
|
|
|
|
package storage // import "miniflux.app/storage"
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
// Storage handles all operations related to the database.
|
|
type Storage struct {
|
|
db *sql.DB
|
|
}
|
|
|
|
// NewStorage returns a new Storage.
|
|
func NewStorage(db *sql.DB) *Storage {
|
|
return &Storage{db}
|
|
}
|