// scanValues returns the types for scanning values from sql.Rows.
scanValues returns the types for scanning values from sql.Rows.
// scanValues returns the types for scanning values from sql . Rows .
func (*Fact) scanValues(columns []string) ([]interface{}, error) {
	values := make([]interface{}, len(columns))
	for i := range columns {
		switch columns[i] {
		case fact.FieldID, fact.FieldHashedValue, fact.FieldEncryptedValue, fact.FieldDomain:
			values[i] = &sql.NullString{}
		case fact.FieldCreatedAt, fact.FieldUpdatedAt, fact.FieldDeletedAt:
			values[i] = &sql.NullTime{}
		case fact.ForeignKeys[0]: 
			values[i] = &sql.NullString{}
		case fact.ForeignKeys[1]: 
			values[i] = &sql.NullString{}
		default:
			return nil, fmt.Errorf("unexpected column %q for type Fact", columns[i])
		}
	}
	return values, nil
}
func ( * Fact ) scanValues ( columns [ ] string ) ( [ ] interface { } , error ) { values := make ( [ ] interface { } , len ( columns ) ) for i := range columns { switch columns [ i ] { case fact . FieldID , fact . FieldHashedValue , fact . FieldEncryptedValue , fact . FieldDomain : values [ i ] = & sql . NullString { } case fact . FieldCreatedAt , fact . FieldUpdatedAt , fact . FieldDeletedAt : values [ i ] = & sql . NullTime { } case fact . ForeignKeys [ 0 ] : values [ i ] = & sql . NullString { } case fact . ForeignKeys [ 1 ] : values [ i ] = & sql . NullString { } default : return nil , fmt . Errorf ( " " , columns [ i ] ) } } return values , nil }
scanValues returns the types for scanning values from sql.Rows.
scanValues returns the types for scanning values from sql . Rows .
// fact_type_facts // scope_facts