types

package
v0.0.0-...-982e07a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

Decode implementation of Decode method of DataTypeEncoder interface for byteaOID

func (*ByteaDataTypeEncoder) Encode

Encode implementation of Encode method of DataTypeEncoder interface for byteaOID

func (*ByteaDataTypeEncoder) EncodeOnFail

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

Decode implementation of Decode method of DataTypeEncoder interface for int4OID

func (*Int4DataTypeEncoder) Encode

Encode implementation of Encode method of DataTypeEncoder interface for int4OID

func (*Int4DataTypeEncoder) EncodeOnFail

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

Decode implementation of Decode method of DataTypeEncoder interface for int8OID

func (*Int8DataTypeEncoder) Encode

Encode implementation of Encode method of DataTypeEncoder interface for int8OID

func (*Int8DataTypeEncoder) EncodeOnFail

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL