()
| 69 | } |
| 70 | |
| 71 | func (schema *Schema) MakeSlice() reflect.Value { |
| 72 | slice := reflect.MakeSlice(reflect.SliceOf(reflect.PointerTo(schema.ModelType)), 0, 20) |
| 73 | results := reflect.New(slice.Type()) |
| 74 | results.Elem().Set(slice) |
| 75 | |
| 76 | return results |
| 77 | } |
| 78 | |
| 79 | func (schema *Schema) LookUpField(name string) *Field { |
| 80 | if field, ok := schema.FieldsByDBName[name]; ok { |
no test coverage detected