package
0.0.0-20240903140133-605a850e203b
Repository: https://github.com/datastax/go-cassandra-native-protocol.git
Documentation: pkg.go.dev

# Functions

ConvertDurationToNanosOfDay is a function that converts from a time.Duration into nanos since the beginning of the day.
ConvertEpochDaysToTime is a function that converts from days since the Epoch into a time.Time in UTC.
ConvertEpochMillisToTime is a function that converts from milliseconds since the Epoch into a time.Time.
ConvertNanosOfDayToDuration is a function that converts from nanos since the beginning of the day into a time.Duration.
ConvertNanosOfDayToTime is a function that converts from nanos since the beginning of the day into a time.Time in UTC.
ConvertTimeToEpochDays is a function that converts from a time.Time into days since the Epoch.
ConvertTimeToEpochMillis is a function that converts from a time.Time into milliseconds since the Epoch.
ConvertTimeToNanosOfDay is a function that converts from a time.Time into nanos since the beginning of the day.
NewCodec creates a new codec for the given data type.
NewCustom returns a codec for the CQL custom type.
NewDate creates a new codec for the CQL date type, with the given layout.
No description provided by the author
No description provided by the author
No description provided by the author
NewTime creates a new codec for CQL time type, with the given layout.
NewTimestamp creates a new codec for CQL timestamp values, with the given layout and location.
No description provided by the author
No description provided by the author
PreferredGoType returns the best matching Go type for the given data type; e.g.

# Constants

No description provided by the author
No description provided by the author
TimeMaxDuration is the maximum duration that can be stored in a CQL time value.
No description provided by the author

# Variables

Ascii is a codec for the CQL ascii type.
Bigint is a codec for the CQL bigint type.
Blob is a codec for the CQL blob type.
Boolean is a codec for the CQL boolean type.
Counter is a codec for the CQL counter type.
Date is a codec for the CQL date type with default layout.
DateMax is the maximum representable CQL date: 5881580-07-11; it corresponds to math.MaxInt32 days after the Epoch.
DateMin is the minimum representable CQL date: -5877641-06-23; it corresponds to math.MinInt32 days before the Epoch.
Decimal is a codec for the CQL decimal type.
Double is a codec for the CQL double type.
Duration is a codec for the CQL duration type, introduced in protocol v5.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Float is a codec for the CQL float type.
Inet is a codec for the CQL inet type.
Int is a codec for the CQL int type.
PassThrough is another name for the Blob codec.
Smallint is a codec for the CQL smallint type.
Time is a codec for the CQL time type with default layout.
Timestamp is the default codec for the CQL timestamp type.
TimestampMax is the maximum representable CQL timestamp: +292278994-08-17 07:12:55.807 UTC.
TimestampMin is the minimum representable CQL timestamp: -292275055-05-16 16:47:04.192 UTC.
Timeuuid is a codec for the CQL timeuuid type.
Tinyint is a codec for the CQL tinyint type.
Uuid is a codec for the CQL uuid type.
Varchar is a codec for the CQL varchar (or text) type.
Varint is a codec for the CQL varint type, a type that can handle arbitrary-length integers.

# Structs

CqlDecimal is the poor man's representation in Go of a CQL decimal value, since there is no built-in representation of arbitrary-precision decimal values in Go's standard library.
CqlDuration is a CQL type introduced in protocol v5.

# Interfaces

Codec is a codec for a specific CQL type.
No description provided by the author
No description provided by the author