MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Value

Method Value

IceFireDB-SQLProxy/pkg/mysql/mysql/field.go:199–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197}
198
199func (fv *FieldValue) Value() any {
200 switch fv.Type {
201 case FieldValueTypeUnsigned:
202 return fv.AsUint64()
203 case FieldValueTypeSigned:
204 return fv.AsInt64()
205 case FieldValueTypeFloat:
206 return fv.AsFloat64()
207 case FieldValueTypeString:
208 return fv.AsString()
209 default: // FieldValueTypeNull
210 return nil
211 }
212}

Callers 1

GetValueMethod · 0.45

Calls 4

AsUint64Method · 0.95
AsInt64Method · 0.95
AsFloat64Method · 0.95
AsStringMethod · 0.95

Tested by

no test coverage detected