mirror of
https://github.com/usememos/memos.git
synced 2024-12-22 02:31:46 +03:00
21 lines
337 B
Go
21 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,
|
|
}
|
|
}
|