MCPcopy Create free account
hub / github.com/datastax/cql-proxy / encodeTypeFatal

Method encodeTypeFatal

proxy/proxy.go:489–495  ·  view source on GitHub ↗
(dt datatype.DataType, val interface{})

Source from the content-addressed store, hash-verified

487}
488
489func (p *Proxy) encodeTypeFatal(dt datatype.DataType, val interface{}) []byte {
490 encoded, err := codecs.EncodeType(dt, p.cluster.NegotiatedVersion, val)
491 if err != nil {
492 p.logger.Fatal("unable to encode type", zap.Error(err))
493 }
494 return encoded
495}
496
497// isIdempotent checks whether a prepared ID is idempotent.
498// If the proxy receives a query that it's never prepared then this will also return false.

Callers 1

buildLocalRowMethod · 0.95

Calls 2

EncodeTypeFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected