Documentation ¶
Index ¶
- type ByteaDataTypeEncoder
- func (t *ByteaDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *ByteaDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *ByteaDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *ByteaDataTypeEncoder) ValidateDefaultValue(value *string) error
- type Int4DataTypeEncoder
- func (t *Int4DataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *Int4DataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *Int4DataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *Int4DataTypeEncoder) ValidateDefaultValue(value *string) error
- type Int8DataTypeEncoder
- func (t *Int8DataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *Int8DataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *Int8DataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *Int8DataTypeEncoder) ValidateDefaultValue(value *string) error
- type TextDataType
- func (t *TextDataType) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *TextDataType) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *TextDataType) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
- func (t *TextDataType) ValidateDefaultValue(value *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteaDataTypeEncoder ¶
type ByteaDataTypeEncoder struct{}
ByteaDataTypeEncoder is encoder of byteaOID type in PostgreSQL
func NewByteaDataTypeEncoder ¶
func NewByteaDataTypeEncoder() *ByteaDataTypeEncoder
NewByteaDataTypeEncoder create new ByteaDataTypeEncoder
func (*ByteaDataTypeEncoder) Decode ¶
func (t *ByteaDataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for byteaOID
func (*ByteaDataTypeEncoder) Encode ¶
func (t *ByteaDataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for byteaOID
func (*ByteaDataTypeEncoder) EncodeOnFail ¶
func (t *ByteaDataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for int4OID
func (*ByteaDataTypeEncoder) ValidateDefaultValue ¶
func (t *ByteaDataTypeEncoder) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for byteaOID
type Int4DataTypeEncoder ¶
type Int4DataTypeEncoder struct{}
Int4DataTypeEncoder is encoder of int4OID type in PostgreSQL
func (*Int4DataTypeEncoder) Decode ¶
func (t *Int4DataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for int4OID
func (*Int4DataTypeEncoder) Encode ¶
func (t *Int4DataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for int4OID
func (*Int4DataTypeEncoder) EncodeOnFail ¶
func (t *Int4DataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for int4OID
func (*Int4DataTypeEncoder) ValidateDefaultValue ¶
func (t *Int4DataTypeEncoder) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for int4OID
type Int8DataTypeEncoder ¶
type Int8DataTypeEncoder struct{}
Int8DataTypeEncoder is encoder of int8OID type in PostgreSQL
func (*Int8DataTypeEncoder) Decode ¶
func (t *Int8DataTypeEncoder) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for int8OID
func (*Int8DataTypeEncoder) Encode ¶
func (t *Int8DataTypeEncoder) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for int8OID
func (*Int8DataTypeEncoder) EncodeOnFail ¶
func (t *Int8DataTypeEncoder) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for int4OID
func (*Int8DataTypeEncoder) ValidateDefaultValue ¶
func (t *Int8DataTypeEncoder) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for int8OID
type TextDataType ¶
type TextDataType struct{}
TextDataType is encoder of textOID type in PostgreSQL
func (*TextDataType) Decode ¶
func (t *TextDataType) Decode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Decode implementation of Decode method of DataTypeEncoder interface for textOID
func (*TextDataType) Encode ¶
func (t *TextDataType) Encode(ctx context.Context, data []byte, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
Encode implementation of Encode method of DataTypeEncoder interface for textOID
func (*TextDataType) EncodeOnFail ¶
func (t *TextDataType) EncodeOnFail(ctx context.Context, format type_awareness.DataTypeFormat) (context.Context, []byte, error)
EncodeOnFail implementation of EncodeOnFail method of DataTypeEncoder interface for int4OID
func (*TextDataType) ValidateDefaultValue ¶
func (t *TextDataType) ValidateDefaultValue(value *string) error
ValidateDefaultValue implementation of ValidateDefaultValue method of DataTypeEncoder interface for textOID