DB::MariaDBSourceDBMariaDBNativeTypesDecimal

class Decimal

A decimal type converter.

Definitions

def name

Get the SQL type name for decimal.

Signature

returns String

The type name.

Implementation

def name
	"DECIMAL"
end

def parse(string)

Parse a decimal value from the database.

Signature

parameter string String | Nil

The raw string value.

returns BigDecimal | Nil

The parsed decimal.

Implementation

def parse(string)
	BigDecimal(string) if string
end