1 Star 1 Fork 0

bigbase/pg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
relation.go 488 Bytes
一键复制 编辑 原始数据 按行查看 历史
Vladimir Mihailenco 提交于 2018-05-22 18:42 +08:00 . Fix build
package orm
import (
"fmt"
"github.com/go-pg/pg/types"
)
const (
HasOneRelation = 1 << iota
BelongsToRelation
HasManyRelation
Many2ManyRelation
)
type Relation struct {
Type int
Field *Field
JoinTable *Table
FKs []*Field
Polymorphic *Field
FKValues []*Field
M2MTableName types.Q
M2MTableAlias types.Q
BaseFKs []string
JoinFKs []string
}
func (r *Relation) String() string {
return fmt.Sprintf("relation=%s", r.Field.GoName)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/bigbase/pg.git
git@gitee.com:bigbase/pg.git
bigbase
pg
pg
v8.0.7

搜索帮助