Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFirstNumeric ¶
func ExtractFirstNumeric(result *models.QueryResult) (float64, error)
ExtractFirstNumeric extracts a numeric value from the first column of the first row in a query result. It supports both value and pointer types for all numeric types. If the query returns no rows (e.g., no matching data for an aggregate query), it returns 0 instead of an error since this typically means "zero matches".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.