Documentation ¶
Index ¶
- type BlobDataTypeEncoder
- func (t *BlobDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *BlobDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *BlobDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *BlobDataTypeEncoder) ValidateDefaultValue(value *string) error
- type LongDataTypeEncoder
- func (t *LongDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *LongDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *LongDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *LongDataTypeEncoder) ValidateDefaultValue(value *string) error
- type LongLongDataTypeEncoder
- func (t *LongLongDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *LongLongDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *LongLongDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *LongLongDataTypeEncoder) ValidateDefaultValue(value *string) error
- type StringDataTypeEncoder
- func (t *StringDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *StringDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *StringDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *StringDataTypeEncoder) ValidateDefaultValue(value *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobDataTypeEncoder ¶
type BlobDataTypeEncoder struct{}
BlobDataTypeEncoder is encoder of TypeBlob in MySQL
func (*BlobDataTypeEncoder) Decode ¶
func (t *BlobDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for TypeBlob
func (*BlobDataTypeEncoder) Encode ¶
func (t *BlobDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for TypeBlob
func (*BlobDataTypeEncoder) EncodeOnFail ¶
func (t *BlobDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for TypeBlob
func (*BlobDataTypeEncoder) ValidateDefaultValue ¶
func (t *BlobDataTypeEncoder) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for TypeBlob
type LongDataTypeEncoder ¶
type LongDataTypeEncoder struct{}
LongDataTypeEncoder is encoder of TypeLong in MySQL
func (*LongDataTypeEncoder) Decode ¶
func (t *LongDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for TypeLong
func (*LongDataTypeEncoder) Encode ¶
func (t *LongDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for TypeLong
func (*LongDataTypeEncoder) EncodeOnFail ¶
func (t *LongDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for TypeLong
func (*LongDataTypeEncoder) ValidateDefaultValue ¶
func (t *LongDataTypeEncoder) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for TypeLong
type LongLongDataTypeEncoder ¶
type LongLongDataTypeEncoder struct{}
LongLongDataTypeEncoder is encoder of TypeLongLong in MySQL
func (*LongLongDataTypeEncoder) Decode ¶
func (t *LongLongDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for TypeLongLong
func (*LongLongDataTypeEncoder) Encode ¶
func (t *LongLongDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for TypeLongLong
func (*LongLongDataTypeEncoder) EncodeOnFail ¶
func (t *LongLongDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for TypeLongLong
func (*LongLongDataTypeEncoder) ValidateDefaultValue ¶
func (t *LongLongDataTypeEncoder) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for TypeLongLong
type StringDataTypeEncoder ¶
type StringDataTypeEncoder struct{}
StringDataTypeEncoder is encoder of TypeString in MySQL
func (*StringDataTypeEncoder) Decode ¶
func (t *StringDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for TypeString
func (*StringDataTypeEncoder) Encode ¶
func (t *StringDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for TypeString
func (*StringDataTypeEncoder) EncodeOnFail ¶
func (t *StringDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for TypeString
func (*StringDataTypeEncoder) ValidateDefaultValue ¶
func (t *StringDataTypeEncoder) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for TypeString