stardb/converter_safe.go

14 lines
413 B
Go
Raw Normal View History

2026-03-07 19:27:44 +08:00
package stardb
import internalconv "b612.me/stardb/internal/convert"
2026-03-07 19:27:44 +08:00
// ConvertToInt64Safe converts any value to int64 with error handling
func ConvertToInt64Safe(val interface{}) (int64, error) {
return internalconv.ToInt64Safe(val)
2026-03-07 19:27:44 +08:00
}
// ConvertToStringSafe converts any value to string with error handling
func ConvertToStringSafe(val interface{}) (string, error) {
return internalconv.ToStringSafe(val)
2026-03-07 19:27:44 +08:00
}