Documentation ¶
Index ¶
- Constants
- func DecodeCopy(in []byte) ([]sql.NullString, error)
- func QuoteLiteral(str string) string
- type LSN
- func (l *LSN) Bytes() []byte
- func (l LSN) Hex() string
- func (l LSN) IsValid() bool
- func (l LSN) MarshalYAML() (interface{}, error)
- func (l *LSN) Parse(lsn string) error
- func (l *LSN) ParseHex(hexStr string) error
- func (l LSN) String() string
- func (l *LSN) UnmarshalYAML(unmarshal func(interface{}) error) error
- type OID
Constants ¶
View Source
const ( ChInt8 = "Int8" ChInt16 = "Int16" ChInt32 = "Int32" ChInt64 = "Int64" ChUInt8 = "UInt8" ChUInt16 = "UInt16" ChUint32 = "UInt32" ChUint64 = "UInt64" ChFloat32 = "Float32" ChFloat64 = "Float64" ChFixedString = "FixedString" ChString = "String" ChDate = "Date" ChDateTime = "DateTime" ChDecimal = "Decimal" ChUUID = "UUID" ChUInt8Array = "Array(UInt8)" PgSmallint = "smallint" PgInteger = "integer" PgBigint = "bigint" PgCharacterVarying = "character varying" PgVarchar = "varchar" PgText = "text" PgReal = "real" PgDoublePrecision = "double precision" PgTimestamp = "timestamp" PgTimestampWithTimeZone = "timestamp with time zone" PgTimestampWithoutTimeZone = "timestamp without time zone" PgDate = "date" PgTime = "time" PgTimeWithoutTimeZone = "time without time zone" PgTimeWithTimeZone = "time with time zone" PgInterval = "interval" PgBoolean = "boolean" PgDecimal = "decimal" PgNumeric = "numeric" PgCharacter = "character" PgChar = "char" PgJsonb = "jsonb" PgJson = "json" PgUuid = "uuid" PgBytea = "bytea" PgInet = "inet" )
View Source
const (
// OutputPlugin contains logical decoder plugin name
OutputPlugin = "pgoutput"
)
Variables ¶
This section is empty.
Functions ¶
func DecodeCopy ¶
func DecodeCopy(in []byte) ([]sql.NullString, error)
DecodeCopy extracts fields from the postgresql text copy format based on DecodeCopy from https://github.com/cockroachdb/cockroach/blob/master/pkg/sql/copy.go
Types ¶
type LSN ¶
type LSN uint64
const (
InvalidLSN LSN = 0
)
func (LSN) MarshalYAML ¶
func (*LSN) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.