Skip to content

Commit

Permalink
mysql field: expose API to modify field vale (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkline authored Dec 21, 2024
1 parent a778272 commit 2f42179
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mysql/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ const (
FieldValueTypeString
)

func NewFieldValue(t FieldValueType, v uint64, str []byte) FieldValue {
return FieldValue{
Type: t,
value: v,
str: str,
}
}

func (f *Field) Parse(p FieldData) (err error) {
f.Data = p

Expand Down

0 comments on commit 2f42179

Please sign in to comment.