(s string)
| 40 | } |
| 41 | |
| 42 | func ExtractIntValue(s string) (int, error) { |
| 43 | intValue, err := strconv.Atoi(s) |
| 44 | if err != nil { |
| 45 | return 0, err |
| 46 | } |
| 47 | return intValue, nil |
| 48 | } |
| 49 | |
| 50 | // ParseValue returns a string, int64 or float64 if the parsing succeeds. |
| 51 | func ParseValue(sqlValue string) (any, error) { |