12345678910111213141516171819202122232425262728293031 |
- package simplemaria
- import (
- "github.com/xyproto/pinterface"
- )
- // For implementing pinterface.ICreator
- type MariaCreator struct {
- host *Host
- }
- func NewCreator(host *Host) *MariaCreator {
- return &MariaCreator{host}
- }
- func (m *MariaCreator) NewList(id string) (pinterface.IList, error) {
- return NewList(m.host, id)
- }
- func (m *MariaCreator) NewSet(id string) (pinterface.ISet, error) {
- return NewSet(m.host, id)
- }
- func (m *MariaCreator) NewHashMap(id string) (pinterface.IHashMap, error) {
- return NewHashMap(m.host, id)
- }
- func (m *MariaCreator) NewKeyValue(id string) (pinterface.IKeyValue, error) {
- return NewKeyValue(m.host, id)
- }
|