mirror of
https://github.com/usememos/memos.git
synced 2024-11-13 10:19:49 +08:00
20 lines
337 B
Go
20 lines
337 B
Go
package store
|
|
|
|
import (
|
|
"database/sql"
|
|
"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,
|
|
}
|
|
}
|