Returns the value of any table field as a 64-bit floating point, regardless of what type it is. Returns default float if the field is not set or error if the value cannot be parsed as float.
Returns the value of any table field as a 64-bit int, regardless of what type it is. Returns default integer if the field is not set or error if the value cannot be parsed as integer.
num_traits is used for number casting.
Gets a floating point table field given its exact type. Returns default float value if the field is not set. Returns None if no default value is found. Returns error if the type doesn’t match.
Gets an integer table field given its exact type. Returns default integer value if the field is not set. Returns None if no default value is found. Returns error if the type size doesn’t match.
Gets a String table field given its exact type. Returns empty string if the field is not set. Returns None if no default value is found. Returns error if the type size doesn’t match.
Sets any table field with the value of a 64-bit floating point. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be cast into the field type.
Sets any table field with the value of a 64-bit integer. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be cast into the field type.
Sets any table field with the value of a string. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be parsed as the field type.
Sets a string field to a new value. Returns error if the field is not originally set or is not of string type in which cases the [buf] stays intact. Returns error if the [buf] fails to be updated.