type github.com/go-pg/pg/v10/orm.Field
88 uses
github.com/go-pg/pg/v10/orm (current package)
delete.go#L116: fmter QueryFormatter, b []byte, slice reflect.Value, alias types.Safe, fields []*Field,
field.go#L21: type Field struct {
field.go#L55: func (f *Field) Clone() *Field {
field.go#L61: func (f *Field) setFlag(flag uint8) {
field.go#L65: func (f *Field) hasFlag(flag uint8) bool {
field.go#L69: func (f *Field) Value(strct reflect.Value) reflect.Value {
field.go#L73: func (f *Field) HasZeroValue(strct reflect.Value) bool {
field.go#L77: func (f *Field) hasZeroValue(v reflect.Value, index []int) bool {
field.go#L90: func (f *Field) NullZero() bool {
field.go#L94: func (f *Field) AppendValue(b []byte, strct reflect.Value, quote int) []byte {
field.go#L109: func (f *Field) ScanValue(strct reflect.Value, rd types.Reader, n int) error {
insert.go#L13: returningFields []*Field
insert.go#L230: fmter QueryFormatter, b []byte, fields []*Field, strct reflect.Value,
insert.go#L273: fmter QueryFormatter, b []byte, fields []*Field, slice reflect.Value,
insert.go#L305: func (q *InsertQuery) addReturningField(field *Field) {
insert.go#L317: func (q *InsertQuery) appendSetExcluded(b []byte, fields []*Field) []byte {
insert.go#L330: func (q *InsertQuery) appendColumns(b []byte, fields []*Field) []byte {
insert.go#L341: func appendReturningFields(b []byte, fields []*Field) []byte {
join.go#L322: func appendChildValues(b []byte, v reflect.Value, index []int, fields []*Field) []byte {
query.go#L374: func (q *Query) getFields() ([]*Field, error) {
query.go#L378: func (q *Query) getDataFields() ([]*Field, error) {
query.go#L382: func (q *Query) _getFields(omitPKs bool) ([]*Field, error) {
query.go#L384: columns := make([]*Field, 0, len(q.columns))
query.go#L1581: fmter QueryFormatter, b []byte, v reflect.Value, alias types.Safe, fields []*Field,
relation.go#L19: Field *Field
relation.go#L21: BaseFKs []*Field
relation.go#L22: JoinFKs []*Field
relation.go#L23: Polymorphic *Field
table.go#L76: allFields []*Field // read only
table.go#L77: skippedFields []*Field
table.go#L79: Fields []*Field // PKs + DataFields
table.go#L80: PKs []*Field
table.go#L81: DataFields []*Field
table.go#L83: FieldsMap map[string]*Field
table.go#L87: Unique map[string][]*Field
table.go#L89: SoftDeleteField *Field
table.go#L185: func (t *Table) AddField(field *Field) {
table.go#L195: func (t *Table) RemoveField(field *Field) {
table.go#L205: func removeField(fields []*Field, field *Field) []*Field {
table.go#L214: func (t *Table) getField(name string) *Field {
table.go#L226: func (t *Table) GetField(name string) (*Field, error) {
table.go#L251: t.Fields = make([]*Field, 0, t.Type.NumField())
table.go#L252: t.FieldsMap = make(map[string]*Field, t.Type.NumField())
table.go#L296: func (t *Table) newField(f reflect.StructField, index []int) *Field {
table.go#L392: field := &Field{
table.go#L416: t.Unique = make(map[string][]*Field)
table.go#L566: func (t *Table) tryRelation(field *Field) bool {
table.go#L589: func (t *Table) tryRelationType(field *Field, rel string, pgTag *tagparser.Tag) bool {
table.go#L604: func (t *Table) mustHasOneRelation(field *Field, pgTag *tagparser.Tag) bool {
table.go#L625: joinPKs = []*Field{joinField}
table.go#L644: BaseFKs: []*Field{fk},
table.go#L653: fks := make([]*Field, 0, len(joinPKs))
table.go#L684: func (t *Table) mustBelongsToRelation(field *Field, pgTag *tagparser.Tag) bool {
table.go#L706: JoinFKs: []*Field{fk},
table.go#L714: fks := make([]*Field, 0, len(t.PKs))
table.go#L745: func (t *Table) mustHasManyRelation(field *Field, pgTag *tagparser.Tag) bool {
table.go#L775: JoinFKs: []*Field{fk},
table.go#L783: fks := make([]*Field, 0, len(t.PKs))
table.go#L804: var typeField *Field
table.go#L828: func (t *Table) mustM2MRelation(field *Field, pgTag *tagparser.Tag) bool {
table.go#L948: func (t *Table) tryRelationSlice(field *Field, pgTag *tagparser.Tag) bool {
table.go#L962: func (t *Table) tryM2MRelation(field *Field, pgTag *tagparser.Tag) bool {
table.go#L1060: func (t *Table) tryHasManyRelation(field *Field, pgTag *tagparser.Tag) bool {
table.go#L1077: var typeField *Field
table.go#L1094: var fkValues []*Field
table.go#L1129: func (t *Table) tryRelationStruct(field *Field, pgTag *tagparser.Tag) bool {
table.go#L1154: func (t *Table) inlineFields(strct *Field, path map[reflect.Type]struct{}) {
table.go#L1201: func fieldSQLType(field *Field, pgTag *tagparser.Tag) string {
table.go#L1302: func (t *Table) tryHasOne(joinTable *Table, field *Field, pgTag *tagparser.Tag) bool {
table.go#L1327: func (t *Table) tryBelongsToOne(joinTable *Table, field *Field, pgTag *tagparser.Tag) bool {
table.go#L1363: func foreignKeys(base, join *Table, fk string, tryFK bool) []*Field {
table.go#L1364: var fks []*Field
table.go#L1410: return []*Field{f}
table.go#L1417: return []*Field{f}
table_create.go#L133: func (q *CreateTableQuery) appendSQLType(b []byte, field *Field) []byte {
table_create.go#L162: func appendPKConstraint(b []byte, pks []*Field) []byte {
table_create.go#L187: func appendUnique(b []byte, fields []*Field) []byte {
table_create.go#L228: func onDelete(fks []*Field) string {
table_create.go#L239: func onUpdate(fks []*Field) string {
update.go#L308: fmter QueryFormatter, b []byte, fields []*Field, slice reflect.Value,
update.go#L338: fmter QueryFormatter, b []byte, fields []*Field, strct reflect.Value,
update.go#L366: func appendWhereColumnAndColumn(b []byte, alias types.Safe, fields []*Field) []byte {
util.go#L117: func dstValues(model TableModel, fields []*Field) map[string][]reflect.Value {
util.go#L128: func modelID(b []byte, v reflect.Value, fields []*Field) []byte {
util.go#L138: func appendColumns(b []byte, table types.Safe, fields []*Field) []byte {