type github.com/go-pg/pg/v10/orm.Table
63 uses
github.com/go-pg/pg/v10/orm (current package)
composite.go#L16: var table *Table
composite.go#L81: var table *Table
model_table.go#L14: Table() *Table
model_table_m2m.go#L13: baseTable *Table
model_table_many.go#L10: baseTable *Table
model_table_struct.go#L13: table *Table
model_table_struct.go#L27: func newStructTableModel(table *Table) *structTableModel {
model_table_struct.go#L53: func (m *structTableModel) Table() *Table {
relation.go#L20: JoinTable *Table
table.go#L61: type Table struct {
table.go#L95: func newTable(typ reflect.Type) *Table {
table.go#L96: t := new(Table)
table.go#L137: func (t *Table) init1() {
table.go#L142: func (t *Table) init2() {
table.go#L148: func (t *Table) setName(name types.Safe) {
table.go#L156: func (t *Table) String() string {
table.go#L160: func (t *Table) setFlag(flag uint16) {
table.go#L164: func (t *Table) hasFlag(flag uint16) bool {
table.go#L171: func (t *Table) checkPKs() error {
table.go#L178: func (t *Table) mustSoftDelete() error {
table.go#L185: func (t *Table) AddField(field *Field) {
table.go#L195: func (t *Table) RemoveField(field *Field) {
table.go#L214: func (t *Table) getField(name string) *Field {
table.go#L221: func (t *Table) HasField(name string) bool {
table.go#L226: func (t *Table) GetField(name string) (*Field, error) {
table.go#L234: func (t *Table) AppendParam(b []byte, strct reflect.Value, name string) ([]byte, bool) {
table.go#L250: func (t *Table) initFields() {
table.go#L256: func (t *Table) addFields(typ reflect.Type, baseIndex []int) {
table.go#L296: func (t *Table) newField(f reflect.StructField, index []int) *Field {
table.go#L518: func (t *Table) initMethods() {
table.go#L542: func (t *Table) initInlines() {
table.go#L550: func (t *Table) initRelations() {
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#L684: func (t *Table) mustBelongsToRelation(field *Field, pgTag *tagparser.Tag) bool {
table.go#L745: func (t *Table) mustHasManyRelation(field *Field, pgTag *tagparser.Tag) bool {
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#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#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#L1352: func (t *Table) addRelation(rel *Relation) {
table.go#L1363: func foreignKeys(base, join *Table, fk string, tryFK bool) []*Field {
table_create.go#L173: func appendUniqueConstraints(b []byte, table *Table) []byte {
table_params.go#L6: table *Table
tables.go#L14: table *Table
tables.go#L20: func newTableInProgress(table *Table) *tableInProgress {
tables.go#L45: func GetTable(typ reflect.Type) *Table {
tables.go#L77: func (t *tables) get(typ reflect.Type, allowInProgress bool) *Table {
tables.go#L83: return v.(*Table)
tables.go#L90: return v.(*Table)
tables.go#L93: var table *Table
tables.go#L121: func (t *tables) Get(typ reflect.Type) *Table {
tables.go#L125: func (t *tables) getByName(name types.Safe) *Table {
tables.go#L126: var found *Table
tables.go#L128: t := value.(*Table)
update.go#L261: var table *Table