mirror of
https://github.com/usememos/memos.git
synced 2024-11-17 04:07:30 +08:00
21 lines
358 B
Go
21 lines
358 B
Go
package store
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/usememos/memos/server/profile"
|
|
)
|
|
|
|
// Store provides database access to all raw objects
|
|
type Store struct {
|
|
db *sql.DB
|
|
profile *profile.Profile
|
|
}
|
|
|
|
// New creates a new instance of Store
|
|
func New(db *sql.DB, profile *profile.Profile) *Store {
|
|
return &Store{
|
|
db: db,
|
|
profile: profile,
|
|
}
|
|
}
|