github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/sqlbase/encoded_datum.proto (about) 1 // Copyright 2016 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 // 11 // Data structures for distributed SQL APIs. See docs/RFCS/distributed_sql.md. 12 // All the concepts here are "physical plan" concepts. 13 14 syntax = "proto2"; 15 package cockroach.sql.sqlbase; 16 option go_package = "sqlbase"; 17 18 import "gogoproto/gogo.proto"; 19 20 // DatumEncoding identifies the encoding used for an EncDatum. 21 enum DatumEncoding { 22 // Indicates that the datum is encoded using the order-preserving encoding 23 // used for keys (ascending order). 24 ASCENDING_KEY = 0; 25 // Indicates that the datum is encoded using the order-preserving encoding 26 // used for keys (descending order). 27 DESCENDING_KEY = 1; 28 // Indicates that the datum is encoded using the encoding used for values. 29 VALUE = 2; 30 }