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