github.com/go-pg/pg/v10/orm.Table.PKs (field)
51 uses
github.com/go-pg/pg/v10/orm (current package)
delete.go#L96: b = appendColumnAndSliceValue(fmter, b, value, table.Alias, table.PKs)
join.go#L138: join = appendChildValues(join, j.BaseModel.Root(), index, baseTable.PKs)
join.go#L144: pk := joinTable.PKs[i]
model_table_m2m.go#L26: dstValues := dstValues(joinModel, baseTable.PKs)
model_table_struct.go#L81: b = appendColumns(b, m.table.Alias, m.table.PKs)
model_table_struct.go#L84: b = appendColumns(b, "", m.table.PKs)
query.go#L812: b := appendColumns(nil, table.Alias, table.PKs)
query.go#L828: b := appendColumns(nil, table.Alias, table.PKs)
query.go#L1577: return appendColumnAndValue(fmter, b, value, table.Alias, table.PKs), nil
query.go#L1616: for i, f := range table.PKs {
query.go#L1652: for i, f := range table.PKs {
query.go#L1673: for i, f := range table.PKs {
table.go#L80: PKs []*Field
table.go#L172: if len(t.PKs) == 0 {
table.go#L188: t.PKs = append(t.PKs, field)
table.go#L198: t.PKs = removeField(t.PKs, field)
table.go#L438: } else if len(t.PKs) == 0 && !pgTag.HasOption("nopk") {
table.go#L606: joinPKs := joinTable.PKs
table.go#L691: if fkOK && len(t.PKs) == 1 {
table.go#L705: BaseFKs: t.PKs,
table.go#L714: fks := make([]*Field, 0, len(t.PKs))
table.go#L716: for _, pk := range t.PKs {
table.go#L739: BaseFKs: t.PKs,
table.go#L760: if fkOK && !polymorphic && len(t.PKs) == 1 {
table.go#L774: BaseFKs: t.PKs,
table.go#L783: fks := make([]*Field, 0, len(t.PKs))
table.go#L785: for _, pk := range t.PKs {
table.go#L821: BaseFKs: t.PKs,
table.go#L867: if ok && len(t.PKs) == 1 {
table.go#L877: for _, pk := range t.PKs {
table.go#L904: if ok && len(joinTable.PKs) == 1 {
table.go#L914: for _, joinPK := range joinTable.PKs {
table.go#L1007: if fkOK && len(t.PKs) == 1 {
table.go#L1010: for _, pk := range t.PKs {
table.go#L1039: if joinFKOk && len(joinTable.PKs) == 1 {
table.go#L1042: for _, pk := range joinTable.PKs {
table.go#L1107: fkValues = t.PKs
table.go#L1320: JoinFKs: joinTable.PKs,
table.go#L1344: BaseFKs: t.PKs,
table.go#L1366: for _, pk := range base.PKs {
table.go#L1384: if len(fks) > 0 && len(fks) == len(base.PKs) {
table.go#L1389: for _, pk := range base.PKs {
table.go#L1399: if len(fks) > 0 && len(fks) == len(base.PKs) {
table.go#L1403: if fk == "" || len(base.PKs) != 1 {
table.go#L1409: if f != nil && sqlTypeEqual(base.PKs[0].SQLType, f.SQLType) {
table.go#L1416: if f != nil && sqlTypeEqual(base.PKs[0].SQLType, f.SQLType) {
table_create.go#L110: b = appendPKConstraint(b, table.PKs)
update.go#L133: b = appendWhereColumnAndColumn(b, table.Alias, table.PKs)
update.go#L299: columns = append(columns, q.q.tableModel.Table().PKs...)