1 Star 1 Fork 0

bigbase / pg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
relation.go 356 Bytes
一键复制 编辑 原始数据 按行查看 历史
Vladimir Mihailenco 提交于 2017-05-09 14:21 . Format table name in joins
package orm
import "github.com/go-pg/pg/types"
const (
HasOneRelation = 1 << iota
BelongsToRelation
HasManyRelation
Many2ManyRelation
)
type Relation struct {
Type int
Polymorphic bool
Field *Field
JoinTable *Table
FKs []*Field
M2MTableName types.Q
M2MTableAlias types.Q
BasePrefix string
JoinPrefix string
}
Go
1
https://gitee.com/bigbase/pg.git
git@gitee.com:bigbase/pg.git
bigbase
pg
pg
v6.2.2

搜索帮助