2020-12-06 12:21:09 +13:00
|
|
|
package dummy
|
|
|
|
|
|
|
|
import (
|
|
|
|
"demodesk/neko/internal/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
func New() types.MembersDatabase {
|
|
|
|
return &MembersDatabaseCtx{}
|
|
|
|
}
|
|
|
|
|
2021-02-15 02:40:17 +13:00
|
|
|
type MembersDatabaseCtx struct{}
|
2020-12-06 12:21:09 +13:00
|
|
|
|
2020-12-07 06:11:11 +13:00
|
|
|
func (manager *MembersDatabaseCtx) Connect() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (manager *MembersDatabaseCtx) Disconnect() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-12-06 12:21:09 +13:00
|
|
|
func (manager *MembersDatabaseCtx) Insert(id string, profile types.MemberProfile) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (manager *MembersDatabaseCtx) Update(id string, profile types.MemberProfile) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (manager *MembersDatabaseCtx) Delete(id string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-12-07 06:11:11 +13:00
|
|
|
func (manager *MembersDatabaseCtx) Select() (map[string]types.MemberProfile, error) {
|
|
|
|
return map[string]types.MemberProfile{}, nil
|
2020-12-06 12:21:09 +13:00
|
|
|
}
|