Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2024 Changes in this version + var ErrCannotConvertToInt = errors.New("cannot convert value to int type") + var ErrCannotConvertValueToBytes = errors.New("cannot convert value to byte slice") + var ErrCannotConvertValueToDecimal = errors.New("cannot convert value to decimal") + var ErrInvalidDecimalStringPresentation = errors.New("invalid decimal string presentation") + var ErrInvalidTimeLayout = errors.New("invalid time layout") + var ErrValueIsNotAString = errors.New("value is not a string") + func ConvertStructuredData(_ context.Context, columnTypes map[string]string, data sdk.StructuredData) (sdk.StructuredData, error) + func TransformRow(_ context.Context, row map[string]any, columnTypes map[string]string) (map[string]any, error) + type Querier interface + QueryContext func(ctx context.Context, query string, args ...any) (*sql.Rows, error) + type TableInfo struct + ColumnLengths map[string]int + ColumnScales map[string]*int + ColumnTypes map[string]string + PrimaryKeys []string + func GetTableInfo(ctx context.Context, querier Querier, tableName string) (TableInfo, error) + func (t TableInfo) GetColumnQueryPart() string