memos/store/store.go
2022-05-22 09:29:34 +08:00

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,
}
}