forked from xyproto/simplemaria
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreator.go
More file actions
31 lines (23 loc) · 653 Bytes
/
creator.go
File metadata and controls
31 lines (23 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package simplesqlite
import (
"github.com/xyproto/pinterface"
)
// For implementing pinterface.ICreator
type SQLiteCreator struct {
file *File
}
func NewCreator(file *File) *SQLiteCreator {
return &SQLiteCreator{file}
}
func (m *SQLiteCreator) NewList(id string) (pinterface.IList, error) {
return NewList(m.file, id)
}
func (m *SQLiteCreator) NewSet(id string) (pinterface.ISet, error) {
return NewSet(m.file, id)
}
func (m *SQLiteCreator) NewHashMap(id string) (pinterface.IHashMap, error) {
return NewHashMap(m.file, id)
}
func (m *SQLiteCreator) NewKeyValue(id string) (pinterface.IKeyValue, error) {
return NewKeyValue(m.file, id)
}