mirror of
https://github.com/usememos/memos.git
synced 2025-02-19 04:40:40 +01:00
21 lines
327 B
Go
21 lines
327 B
Go
package store
|
|
|
|
import (
|
|
"database/sql"
|
|
"memos/common"
|
|
)
|
|
|
|
// Store provides database access to all raw objects
|
|
type Store struct {
|
|
db *sql.DB
|
|
profile *common.Profile
|
|
}
|
|
|
|
// New creates a new instance of Store
|
|
func New(db *sql.DB, profile *common.Profile) *Store {
|
|
return &Store{
|
|
db: db,
|
|
profile: profile,
|
|
}
|
|
}
|