/
group_role_map_gen.go
57 lines (43 loc) · 1.11 KB
/
group_role_map_gen.go
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Code generated by seacle.Generator DO NOT EDIT
// About seacle: https://github.com/acidlemon/seacle
package db
import (
"database/sql"
"github.com/acidlemon/seacle"
)
var _ seacle.Mappable = (*GroupRoleMapRow)(nil)
func (p *GroupRoleMapRow) Table() string {
return "group_role_map"
}
func (p *GroupRoleMapRow) Columns() []string {
return []string{"group_role_map.group_seq_id", "group_role_map.role_seq_id"}
}
func (p *GroupRoleMapRow) PrimaryKeys() []string {
return []string{"group_seq_id", "role_seq_id"}
}
func (p *GroupRoleMapRow) PrimaryValues() []interface{} {
return []interface{}{p.GroupSeqID, p.RoleSeqID}
}
func (p *GroupRoleMapRow) ValueColumns() []string {
return []string{}
}
func (p *GroupRoleMapRow) Values() []interface{} {
return []interface{}{}
}
func (p *GroupRoleMapRow) AutoIncrementColumn() string {
return ""
}
func (p *GroupRoleMapRow) Scan(r seacle.RowScanner) error {
var arg0 int64
var arg1 int64
err := r.Scan(&arg0, &arg1)
if err == sql.ErrNoRows {
return err
} else if err != nil {
// something wrong
return err
}
p.GroupSeqID = arg0
p.RoleSeqID = arg1
return nil
}