You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/store/store.go

21 lines
337 B
Go

3 years ago
package store
import (
"database/sql"
"memos/server/profile"
)
3 years ago
// Store provides database access to all raw objects
type Store struct {
db *sql.DB
profile *profile.Profile
3 years ago
}
// New creates a new instance of Store
func New(db *sql.DB, profile *profile.Profile) *Store {
3 years ago
return &Store{
db: db,
profile: profile,
3 years ago
}
}