mirror of
https://github.com/hanzo-ds/native.git
synced 2026-10-30 20:00:34 +00:00
Module path, package names, and identifiers de-branded to native/proto/compress/ pool/tracing. Server wire-protocol strings preserved. Vendored codec surface used by hanzo-ds/go (proto + compress).
17 lines
417 B
Go
17 lines
417 B
Go
package proto
|
|
|
|
// Stage of query till SELECT should be executed.
|
|
type Stage byte
|
|
|
|
// Encode to buffer.
|
|
func (s Stage) Encode(b *Buffer) { b.PutUVarInt(uint64(s)) }
|
|
|
|
//go:generate go run github.com/dmarkham/enumer -type Stage -trimprefix Stage -output stage_enum.go
|
|
|
|
// StageComplete is query complete.
|
|
const (
|
|
StageFetchColumns Stage = 0
|
|
StageWithMergeableState Stage = 1
|
|
StageComplete Stage = 2
|
|
)
|