// 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 (*APIAudit) scanValues(columns []string) ([]interface{}, error) {
	values := make([]interface{}, len(columns))
	for i := range columns {
		switch columns[i] {
		case apiaudit.FieldSentHTTPStatus:
			values[i] = &sql.NullInt64{}
		case apiaudit.FieldID, apiaudit.FieldPlane, apiaudit.FieldHashedGrantToken, apiaudit.FieldDomain, apiaudit.FieldHTTPPath, apiaudit.FieldHTTPMethod:
			values[i] = &sql.NullString{}
		case apiaudit.FieldCreatedAt, apiaudit.FieldUpdatedAt, apiaudit.FieldDeletedAt:
			values[i] = &sql.NullTime{}
		default:
			return nil, fmt.Errorf("unexpected column %q for type APIAudit", columns[i])
		}
	}
	return values, nil
}
func ( * APIAudit ) scanValues ( columns [ ] string ) ( [ ] interface { } , error ) { values := make ( [ ] interface { } , len ( columns ) ) for i := range columns { switch columns [ i ] { case apiaudit . FieldSentHTTPStatus : values [ i ] = & sql . NullInt64 { } case apiaudit . FieldID , apiaudit . FieldPlane , apiaudit . FieldHashedGrantToken , apiaudit . FieldDomain , apiaudit . FieldHTTPPath , apiaudit . FieldHTTPMethod : values [ i ] = & sql . NullString { } case apiaudit . FieldCreatedAt , apiaudit . FieldUpdatedAt , apiaudit . FieldDeletedAt : values [ i ] = & sql . NullTime { } 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 .