Skip to content

Commit

Permalink
Fix exported function. (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 authored Sep 19, 2024
1 parent c78a415 commit e1b1243
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/debezium/converters/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ func encodeDecimalWithScale(decimal *apd.Decimal, scale int32) ([]byte, error) {
return bytes, nil
}

type decimalConverter struct {
type DecimalConverter struct {
scale uint16
precision *int
}

func NewDecimalConverter(scale uint16, precision *int) decimalConverter {
return decimalConverter{scale: scale, precision: precision}
func NewDecimalConverter(scale uint16, precision *int) DecimalConverter {
return DecimalConverter{scale: scale, precision: precision}
}

func (d decimalConverter) ToField(name string) debezium.Field {
func (d DecimalConverter) ToField(name string) debezium.Field {
field := debezium.Field{
FieldName: name,
Type: debezium.Bytes,
Expand All @@ -48,7 +48,7 @@ func (d decimalConverter) ToField(name string) debezium.Field {
return field
}

func (d decimalConverter) Convert(value any) (any, error) {
func (d DecimalConverter) Convert(value any) (any, error) {
stringValue, err := typing.AssertType[string](value)
if err != nil {
return nil, err
Expand Down

0 comments on commit e1b1243

Please sign in to comment.