Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: store/common.proto
package store
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Engine represents the type of database system.
type Engine int32
const (
Engine_ENGINE_UNSPECIFIED Engine = 0
Engine_CLICKHOUSE Engine = 1
Engine_MYSQL Engine = 2
Engine_POSTGRES Engine = 3
Engine_SNOWFLAKE Engine = 4
Engine_TIDB Engine = 6
Engine_MONGODB Engine = 7
Engine_REDIS Engine = 8
Engine_ORACLE Engine = 9
Engine_SPANNER Engine = 10
Engine_MSSQL Engine = 11
Engine_REDSHIFT Engine = 12
Engine_MARIADB Engine = 13
Engine_OCEANBASE Engine = 14
Engine_STARROCKS Engine = 15
Engine_DORIS Engine = 16
Engine_HIVE Engine = 17
Engine_ELASTICSEARCH Engine = 18
Engine_BIGQUERY Engine = 19
Engine_DYNAMODB Engine = 20
Engine_DATABRICKS Engine = 21
Engine_COCKROACHDB Engine = 22
Engine_COSMOSDB Engine = 23
Engine_TRINO Engine = 24
Engine_CASSANDRA Engine = 25
)
// Enum value maps for Engine.
var (
Engine_name = map[int32]string{
0: "ENGINE_UNSPECIFIED",
1: "CLICKHOUSE",
2: "MYSQL",
3: "POSTGRES",
4: "SNOWFLAKE",
6: "TIDB",
7: "MONGODB",
8: "REDIS",
9: "ORACLE",
10: "SPANNER",
11: "MSSQL",
12: "REDSHIFT",
13: "MARIADB",
14: "OCEANBASE",
15: "STARROCKS",
16: "DORIS",
17: "HIVE",
18: "ELASTICSEARCH",
19: "BIGQUERY",
20: "DYNAMODB",
21: "DATABRICKS",
22: "COCKROACHDB",
23: "COSMOSDB",
24: "TRINO",
25: "CASSANDRA",
}
Engine_value = map[string]int32{
"ENGINE_UNSPECIFIED": 0,
"CLICKHOUSE": 1,
"MYSQL": 2,
"POSTGRES": 3,
"SNOWFLAKE": 4,
"TIDB": 6,
"MONGODB": 7,
"REDIS": 8,
"ORACLE": 9,
"SPANNER": 10,
"MSSQL": 11,
"REDSHIFT": 12,
"MARIADB": 13,
"OCEANBASE": 14,
"STARROCKS": 15,
"DORIS": 16,
"HIVE": 17,
"ELASTICSEARCH": 18,
"BIGQUERY": 19,
"DYNAMODB": 20,
"DATABRICKS": 21,
"COCKROACHDB": 22,
"COSMOSDB": 23,
"TRINO": 24,
"CASSANDRA": 25,
}
)
func (x Engine) Enum() *Engine {
p := new(Engine)
*p = x
return p
}
func (x Engine) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Engine) Descriptor() protoreflect.EnumDescriptor {
return file_store_common_proto_enumTypes[0].Descriptor()
}
func (Engine) Type() protoreflect.EnumType {
return &file_store_common_proto_enumTypes[0]
}
func (x Engine) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Engine.Descriptor instead.
func (Engine) EnumDescriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{0}
}
// VCSType represents the type of version control system.
type VCSType int32
const (
VCSType_VCS_TYPE_UNSPECIFIED VCSType = 0
VCSType_GITHUB VCSType = 1
VCSType_GITLAB VCSType = 2
VCSType_BITBUCKET VCSType = 3
VCSType_AZURE_DEVOPS VCSType = 4
)
// Enum value maps for VCSType.
var (
VCSType_name = map[int32]string{
0: "VCS_TYPE_UNSPECIFIED",
1: "GITHUB",
2: "GITLAB",
3: "BITBUCKET",
4: "AZURE_DEVOPS",
}
VCSType_value = map[string]int32{
"VCS_TYPE_UNSPECIFIED": 0,
"GITHUB": 1,
"GITLAB": 2,
"BITBUCKET": 3,
"AZURE_DEVOPS": 4,
}
)
func (x VCSType) Enum() *VCSType {
p := new(VCSType)
*p = x
return p
}
func (x VCSType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VCSType) Descriptor() protoreflect.EnumDescriptor {
return file_store_common_proto_enumTypes[1].Descriptor()
}
func (VCSType) Type() protoreflect.EnumType {
return &file_store_common_proto_enumTypes[1]
}
func (x VCSType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VCSType.Descriptor instead.
func (VCSType) EnumDescriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{1}
}
// ExportFormat represents the file format for exported data.
type ExportFormat int32
const (
ExportFormat_FORMAT_UNSPECIFIED ExportFormat = 0
ExportFormat_CSV ExportFormat = 1
ExportFormat_JSON ExportFormat = 2
ExportFormat_SQL ExportFormat = 3
ExportFormat_XLSX ExportFormat = 4
)
// Enum value maps for ExportFormat.
var (
ExportFormat_name = map[int32]string{
0: "FORMAT_UNSPECIFIED",
1: "CSV",
2: "JSON",
3: "SQL",
4: "XLSX",
}
ExportFormat_value = map[string]int32{
"FORMAT_UNSPECIFIED": 0,
"CSV": 1,
"JSON": 2,
"SQL": 3,
"XLSX": 4,
}
)
func (x ExportFormat) Enum() *ExportFormat {
p := new(ExportFormat)
*p = x
return p
}
func (x ExportFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExportFormat) Descriptor() protoreflect.EnumDescriptor {
return file_store_common_proto_enumTypes[2].Descriptor()
}
func (ExportFormat) Type() protoreflect.EnumType {
return &file_store_common_proto_enumTypes[2]
}
func (x ExportFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExportFormat.Descriptor instead.
func (ExportFormat) EnumDescriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{2}
}
// RiskLevel represents the assessed risk level of a database operation.
type RiskLevel int32
const (
RiskLevel_RISK_LEVEL_UNSPECIFIED RiskLevel = 0
RiskLevel_LOW RiskLevel = 1
RiskLevel_MODERATE RiskLevel = 2
RiskLevel_HIGH RiskLevel = 3
)
// Enum value maps for RiskLevel.
var (
RiskLevel_name = map[int32]string{
0: "RISK_LEVEL_UNSPECIFIED",
1: "LOW",
2: "MODERATE",
3: "HIGH",
}
RiskLevel_value = map[string]int32{
"RISK_LEVEL_UNSPECIFIED": 0,
"LOW": 1,
"MODERATE": 2,
"HIGH": 3,
}
)
func (x RiskLevel) Enum() *RiskLevel {
p := new(RiskLevel)
*p = x
return p
}
func (x RiskLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RiskLevel) Descriptor() protoreflect.EnumDescriptor {
return file_store_common_proto_enumTypes[3].Descriptor()
}
func (RiskLevel) Type() protoreflect.EnumType {
return &file_store_common_proto_enumTypes[3]
}
func (x RiskLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RiskLevel.Descriptor instead.
func (RiskLevel) EnumDescriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{3}
}
// SchemaChangeType represents the strategy for schema changes.
type SchemaChangeType int32
const (
SchemaChangeType_SCHEMA_CHANGE_TYPE_UNSPECIFIED SchemaChangeType = 0
// Versioned migration with explicit migration scripts.
SchemaChangeType_VERSIONED SchemaChangeType = 1
// Declarative schema definition (state-based).
SchemaChangeType_DECLARATIVE SchemaChangeType = 2
)
// Enum value maps for SchemaChangeType.
var (
SchemaChangeType_name = map[int32]string{
0: "SCHEMA_CHANGE_TYPE_UNSPECIFIED",
1: "VERSIONED",
2: "DECLARATIVE",
}
SchemaChangeType_value = map[string]int32{
"SCHEMA_CHANGE_TYPE_UNSPECIFIED": 0,
"VERSIONED": 1,
"DECLARATIVE": 2,
}
)
func (x SchemaChangeType) Enum() *SchemaChangeType {
p := new(SchemaChangeType)
*p = x
return p
}
func (x SchemaChangeType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SchemaChangeType) Descriptor() protoreflect.EnumDescriptor {
return file_store_common_proto_enumTypes[4].Descriptor()
}
func (SchemaChangeType) Type() protoreflect.EnumType {
return &file_store_common_proto_enumTypes[4]
}
func (x SchemaChangeType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SchemaChangeType.Descriptor instead.
func (SchemaChangeType) EnumDescriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{4}
}
type WebhookType int32
const (
// Unspecified type.
WebhookType_WEBHOOK_TYPE_UNSPECIFIED WebhookType = 0
// Slack integration.
WebhookType_SLACK WebhookType = 1
// Discord integration.
WebhookType_DISCORD WebhookType = 2
// Microsoft Teams integration.
WebhookType_TEAMS WebhookType = 3
// DingTalk integration.
WebhookType_DINGTALK WebhookType = 4
// Feishu integration.
WebhookType_FEISHU WebhookType = 5
// WeCom (WeChat Work) integration.
WebhookType_WECOM WebhookType = 6
// Lark integration.
WebhookType_LARK WebhookType = 7
// Google Chat integration.
WebhookType_GOOGLE_CHAT WebhookType = 8
)
// Enum value maps for WebhookType.
var (
WebhookType_name = map[int32]string{
0: "WEBHOOK_TYPE_UNSPECIFIED",
1: "SLACK",
2: "DISCORD",
3: "TEAMS",
4: "DINGTALK",
5: "FEISHU",
6: "WECOM",
7: "LARK",
8: "GOOGLE_CHAT",
}
WebhookType_value = map[string]int32{
"WEBHOOK_TYPE_UNSPECIFIED": 0,
"SLACK": 1,
"DISCORD": 2,
"TEAMS": 3,
"DINGTALK": 4,
"FEISHU": 5,
"WECOM": 6,
"LARK": 7,
"GOOGLE_CHAT": 8,
}
)
func (x WebhookType) Enum() *WebhookType {
p := new(WebhookType)
*p = x
return p
}
func (x WebhookType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WebhookType) Descriptor() protoreflect.EnumDescriptor {
return file_store_common_proto_enumTypes[5].Descriptor()
}
func (WebhookType) Type() protoreflect.EnumType {
return &file_store_common_proto_enumTypes[5]
}
func (x WebhookType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WebhookType.Descriptor instead.
func (WebhookType) EnumDescriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{5}
}
// StatementType represents the type of SQL statement.
type StatementType int32
const (
StatementType_STATEMENT_TYPE_UNSPECIFIED StatementType = 0
// DDL - CREATE statements
StatementType_CREATE_DATABASE StatementType = 1
StatementType_CREATE_TABLE StatementType = 2
StatementType_CREATE_VIEW StatementType = 3
StatementType_CREATE_INDEX StatementType = 4
StatementType_CREATE_SEQUENCE StatementType = 5
StatementType_CREATE_SCHEMA StatementType = 6
StatementType_CREATE_FUNCTION StatementType = 7
StatementType_CREATE_TRIGGER StatementType = 8
StatementType_CREATE_PROCEDURE StatementType = 9
StatementType_CREATE_EVENT StatementType = 10
StatementType_CREATE_EXTENSION StatementType = 11
StatementType_CREATE_TYPE StatementType = 12
// DDL - DROP statements
StatementType_DROP_DATABASE StatementType = 20
StatementType_DROP_TABLE StatementType = 21
StatementType_DROP_VIEW StatementType = 22
StatementType_DROP_INDEX StatementType = 23
StatementType_DROP_SEQUENCE StatementType = 24
StatementType_DROP_SCHEMA StatementType = 25
StatementType_DROP_FUNCTION StatementType = 26
StatementType_DROP_TRIGGER StatementType = 27
StatementType_DROP_PROCEDURE StatementType = 28
StatementType_DROP_EVENT StatementType = 29
StatementType_DROP_EXTENSION StatementType = 30
StatementType_DROP_TYPE StatementType = 31
// DDL - ALTER statements
StatementType_ALTER_DATABASE StatementType = 40
StatementType_ALTER_TABLE StatementType = 41
StatementType_ALTER_VIEW StatementType = 42
StatementType_ALTER_SEQUENCE StatementType = 43
StatementType_ALTER_EVENT StatementType = 44
StatementType_ALTER_TYPE StatementType = 45
StatementType_ALTER_INDEX StatementType = 46
// DDL - Other
StatementType_TRUNCATE StatementType = 50
StatementType_RENAME StatementType = 51
StatementType_RENAME_INDEX StatementType = 52
StatementType_RENAME_SCHEMA StatementType = 53
StatementType_RENAME_SEQUENCE StatementType = 54
StatementType_COMMENT StatementType = 55
// DML statements
StatementType_INSERT StatementType = 60
StatementType_UPDATE StatementType = 61
StatementType_DELETE StatementType = 62
StatementType_MERGE StatementType = 63
)
// Enum value maps for StatementType.
var (
StatementType_name = map[int32]string{
0: "STATEMENT_TYPE_UNSPECIFIED",
1: "CREATE_DATABASE",
2: "CREATE_TABLE",
3: "CREATE_VIEW",
4: "CREATE_INDEX",
5: "CREATE_SEQUENCE",
6: "CREATE_SCHEMA",
7: "CREATE_FUNCTION",
8: "CREATE_TRIGGER",
9: "CREATE_PROCEDURE",
10: "CREATE_EVENT",
11: "CREATE_EXTENSION",
12: "CREATE_TYPE",
20: "DROP_DATABASE",
21: "DROP_TABLE",
22: "DROP_VIEW",
23: "DROP_INDEX",
24: "DROP_SEQUENCE",
25: "DROP_SCHEMA",
26: "DROP_FUNCTION",
27: "DROP_TRIGGER",
28: "DROP_PROCEDURE",
29: "DROP_EVENT",
30: "DROP_EXTENSION",
31: "DROP_TYPE",
40: "ALTER_DATABASE",
41: "ALTER_TABLE",
42: "ALTER_VIEW",
43: "ALTER_SEQUENCE",
44: "ALTER_EVENT",
45: "ALTER_TYPE",
46: "ALTER_INDEX",
50: "TRUNCATE",
51: "RENAME",
52: "RENAME_INDEX",
53: "RENAME_SCHEMA",
54: "RENAME_SEQUENCE",
55: "COMMENT",
60: "INSERT",
61: "UPDATE",
62: "DELETE",
63: "MERGE",
}
StatementType_value = map[string]int32{
"STATEMENT_TYPE_UNSPECIFIED": 0,
"CREATE_DATABASE": 1,
"CREATE_TABLE": 2,
"CREATE_VIEW": 3,
"CREATE_INDEX": 4,
"CREATE_SEQUENCE": 5,
"CREATE_SCHEMA": 6,
"CREATE_FUNCTION": 7,
"CREATE_TRIGGER": 8,
"CREATE_PROCEDURE": 9,
"CREATE_EVENT": 10,
"CREATE_EXTENSION": 11,
"CREATE_TYPE": 12,
"DROP_DATABASE": 20,
"DROP_TABLE": 21,
"DROP_VIEW": 22,
"DROP_INDEX": 23,
"DROP_SEQUENCE": 24,
"DROP_SCHEMA": 25,
"DROP_FUNCTION": 26,
"DROP_TRIGGER": 27,
"DROP_PROCEDURE": 28,
"DROP_EVENT": 29,
"DROP_EXTENSION": 30,
"DROP_TYPE": 31,
"ALTER_DATABASE": 40,
"ALTER_TABLE": 41,
"ALTER_VIEW": 42,
"ALTER_SEQUENCE": 43,
"ALTER_EVENT": 44,
"ALTER_TYPE": 45,
"ALTER_INDEX": 46,
"TRUNCATE": 50,
"RENAME": 51,
"RENAME_INDEX": 52,
"RENAME_SCHEMA": 53,
"RENAME_SEQUENCE": 54,
"COMMENT": 55,
"INSERT": 60,
"UPDATE": 61,
"DELETE": 62,
"MERGE": 63,
}
)
func (x StatementType) Enum() *StatementType {
p := new(StatementType)
*p = x
return p
}
func (x StatementType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StatementType) Descriptor() protoreflect.EnumDescriptor {
return file_store_common_proto_enumTypes[6].Descriptor()
}
func (StatementType) Type() protoreflect.EnumType {
return &file_store_common_proto_enumTypes[6]
}
func (x StatementType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StatementType.Descriptor instead.
func (StatementType) EnumDescriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{6}
}
// PageToken is used internally for obfuscating pagination tokens.
type PageToken struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Maximum number of items to return.
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Number of items to skip before starting to return results.
Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// Bounds later pages to the rows that existed when the traversal started,
// inclusive. Set by a list whose own reads write rows it would page over.
CreateTimeUpperBound *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time_upper_bound,json=createTimeUpperBound,proto3" json:"create_time_upper_bound,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PageToken) Reset() {
*x = PageToken{}
mi := &file_store_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PageToken) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PageToken) ProtoMessage() {}
func (x *PageToken) ProtoReflect() protoreflect.Message {
mi := &file_store_common_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PageToken.ProtoReflect.Descriptor instead.
func (*PageToken) Descriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{0}
}
func (x *PageToken) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *PageToken) GetOffset() int32 {
if x != nil {
return x.Offset
}
return 0
}
func (x *PageToken) GetCreateTimeUpperBound() *timestamppb.Timestamp {
if x != nil {
return x.CreateTimeUpperBound
}
return nil
}
// Position in a text expressed as one-based line and one-based column.
// We use 1-based numbering to match the majority of industry standards:
// - Monaco Editor uses 1-based (https://microsoft.github.io/monaco-editor/typedoc/interfaces/IPosition.html)
// - GitHub Actions uses 1-based (https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message)
// - Most text editors display 1-based positions to users
// Note: LSP uses 0-based (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position),
// but we follow the canonical user-facing standards.
//
// Handling unknown positions:
// - If the entire position is unknown, leave this field as nil/undefined
// - If only line is known, set line and leave column as 0 (e.g., line=5, column=0)
// - If only column is known (rare), set column and leave line as 0
// Frontends should check for nil/undefined/zero values and handle them appropriately.
type Position struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Line position in a text (one-based).
// First line of the text is line 1.
// A value of 0 indicates the line information is unknown.
Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
// Column position in a text (one-based).
// Column is measured in Unicode code points (characters/runes), not bytes or grapheme clusters.
// First character of the line is column 1.
// A value of 0 indicates the column information is unknown.
//
// Examples:
// - "SELECT * FROM t" - column 8 is '*'
// - "SELECT 你好 FROM t" - column 8 is '你' (even though it's at byte offset 7)
// - "SELECT 😀 FROM t" - column 8 is '😀' (even though it's 4 bytes in UTF-8)
Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Position) Reset() {
*x = Position{}
mi := &file_store_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Position) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Position) ProtoMessage() {}
func (x *Position) ProtoReflect() protoreflect.Message {
mi := &file_store_common_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Position.ProtoReflect.Descriptor instead.
func (*Position) Descriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{1}
}
func (x *Position) GetLine() int32 {
if x != nil {
return x.Line
}
return 0
}
func (x *Position) GetColumn() int32 {
if x != nil {
return x.Column
}
return 0
}
// Range represents a span within a text or sequence.
// Whether the indices are byte offsets or character indices depends on the context.
// Check the documentation of the field using Range for specific semantics.
type Range struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Start index (inclusive).
Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
// End index (exclusive).
End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Range) Reset() {
*x = Range{}
mi := &file_store_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Range) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Range) ProtoMessage() {}
func (x *Range) ProtoReflect() protoreflect.Message {
mi := &file_store_common_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Range.ProtoReflect.Descriptor instead.
func (*Range) Descriptor() ([]byte, []int) {
return file_store_common_proto_rawDescGZIP(), []int{2}
}
func (x *Range) GetStart() int32 {
if x != nil {
return x.Start
}
return 0
}
func (x *Range) GetEnd() int32 {
if x != nil {
return x.End
}
return 0
}
var File_store_common_proto protoreflect.FileDescriptor
const file_store_common_proto_rawDesc = "" +
"\n" +
"\x12store/common.proto\x12\x0ebytebase.store\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\x01\n" +
"\tPageToken\x12\x14\n" +
"\x05limit\x18\x01 \x01(\x05R\x05limit\x12\x16\n" +
"\x06offset\x18\x02 \x01(\x05R\x06offset\x12Q\n" +
"\x17create_time_upper_bound\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x14createTimeUpperBound\"6\n" +
"\bPosition\x12\x12\n" +
"\x04line\x18\x01 \x01(\x05R\x04line\x12\x16\n" +
"\x06column\x18\x02 \x01(\x05R\x06column\"/\n" +
"\x05Range\x12\x14\n" +
"\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" +
"\x03end\x18\x02 \x01(\x05R\x03end*\xea\x02\n" +
"\x06Engine\x12\x16\n" +
"\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0e\n" +
"\n" +
"CLICKHOUSE\x10\x01\x12\t\n" +
"\x05MYSQL\x10\x02\x12\f\n" +
"\bPOSTGRES\x10\x03\x12\r\n" +
"\tSNOWFLAKE\x10\x04\x12\b\n" +
"\x04TIDB\x10\x06\x12\v\n" +
"\aMONGODB\x10\a\x12\t\n" +
"\x05REDIS\x10\b\x12\n" +
"\n" +
"\x06ORACLE\x10\t\x12\v\n" +
"\aSPANNER\x10\n" +
"\x12\t\n" +
"\x05MSSQL\x10\v\x12\f\n" +
"\bREDSHIFT\x10\f\x12\v\n" +
"\aMARIADB\x10\r\x12\r\n" +
"\tOCEANBASE\x10\x0e\x12\r\n" +
"\tSTARROCKS\x10\x0f\x12\t\n" +
"\x05DORIS\x10\x10\x12\b\n" +
"\x04HIVE\x10\x11\x12\x11\n" +
"\rELASTICSEARCH\x10\x12\x12\f\n" +
"\bBIGQUERY\x10\x13\x12\f\n" +
"\bDYNAMODB\x10\x14\x12\x0e\n" +
"\n" +
"DATABRICKS\x10\x15\x12\x0f\n" +
"\vCOCKROACHDB\x10\x16\x12\f\n" +
"\bCOSMOSDB\x10\x17\x12\t\n" +
"\x05TRINO\x10\x18\x12\r\n" +
"\tCASSANDRA\x10\x19\"\x04\b\x05\x10\x05*\\\n" +
"\aVCSType\x12\x18\n" +
"\x14VCS_TYPE_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
"\x06GITHUB\x10\x01\x12\n" +
"\n" +
"\x06GITLAB\x10\x02\x12\r\n" +
"\tBITBUCKET\x10\x03\x12\x10\n" +
"\fAZURE_DEVOPS\x10\x04*L\n" +
"\fExportFormat\x12\x16\n" +
"\x12FORMAT_UNSPECIFIED\x10\x00\x12\a\n" +
"\x03CSV\x10\x01\x12\b\n" +
"\x04JSON\x10\x02\x12\a\n" +
"\x03SQL\x10\x03\x12\b\n" +
"\x04XLSX\x10\x04*H\n" +
"\tRiskLevel\x12\x1a\n" +
"\x16RISK_LEVEL_UNSPECIFIED\x10\x00\x12\a\n" +
"\x03LOW\x10\x01\x12\f\n" +
"\bMODERATE\x10\x02\x12\b\n" +
"\x04HIGH\x10\x03*V\n" +
"\x10SchemaChangeType\x12\"\n" +
"\x1eSCHEMA_CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\r\n" +
"\tVERSIONED\x10\x01\x12\x0f\n" +
"\vDECLARATIVE\x10\x02*\x8e\x01\n" +
"\vWebhookType\x12\x1c\n" +
"\x18WEBHOOK_TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05SLACK\x10\x01\x12\v\n" +
"\aDISCORD\x10\x02\x12\t\n" +
"\x05TEAMS\x10\x03\x12\f\n" +
"\bDINGTALK\x10\x04\x12\n" +
"\n" +
"\x06FEISHU\x10\x05\x12\t\n" +
"\x05WECOM\x10\x06\x12\b\n" +
"\x04LARK\x10\a\x12\x0f\n" +
"\vGOOGLE_CHAT\x10\b*\x8e\x06\n" +
"\rStatementType\x12\x1e\n" +
"\x1aSTATEMENT_TYPE_UNSPECIFIED\x10\x00\x12\x13\n" +
"\x0fCREATE_DATABASE\x10\x01\x12\x10\n" +
"\fCREATE_TABLE\x10\x02\x12\x0f\n" +
"\vCREATE_VIEW\x10\x03\x12\x10\n" +
"\fCREATE_INDEX\x10\x04\x12\x13\n" +
"\x0fCREATE_SEQUENCE\x10\x05\x12\x11\n" +
"\rCREATE_SCHEMA\x10\x06\x12\x13\n" +
"\x0fCREATE_FUNCTION\x10\a\x12\x12\n" +
"\x0eCREATE_TRIGGER\x10\b\x12\x14\n" +
"\x10CREATE_PROCEDURE\x10\t\x12\x10\n" +
"\fCREATE_EVENT\x10\n" +
"\x12\x14\n" +
"\x10CREATE_EXTENSION\x10\v\x12\x0f\n" +
"\vCREATE_TYPE\x10\f\x12\x11\n" +
"\rDROP_DATABASE\x10\x14\x12\x0e\n" +
"\n" +
"DROP_TABLE\x10\x15\x12\r\n" +
"\tDROP_VIEW\x10\x16\x12\x0e\n" +
"\n" +
"DROP_INDEX\x10\x17\x12\x11\n" +
"\rDROP_SEQUENCE\x10\x18\x12\x0f\n" +
"\vDROP_SCHEMA\x10\x19\x12\x11\n" +
"\rDROP_FUNCTION\x10\x1a\x12\x10\n" +
"\fDROP_TRIGGER\x10\x1b\x12\x12\n" +
"\x0eDROP_PROCEDURE\x10\x1c\x12\x0e\n" +
"\n" +
"DROP_EVENT\x10\x1d\x12\x12\n" +
"\x0eDROP_EXTENSION\x10\x1e\x12\r\n" +
"\tDROP_TYPE\x10\x1f\x12\x12\n" +
"\x0eALTER_DATABASE\x10(\x12\x0f\n" +
"\vALTER_TABLE\x10)\x12\x0e\n" +
"\n" +
"ALTER_VIEW\x10*\x12\x12\n" +
"\x0eALTER_SEQUENCE\x10+\x12\x0f\n" +
"\vALTER_EVENT\x10,\x12\x0e\n" +
"\n" +
"ALTER_TYPE\x10-\x12\x0f\n" +
"\vALTER_INDEX\x10.\x12\f\n" +
"\bTRUNCATE\x102\x12\n" +
"\n" +
"\x06RENAME\x103\x12\x10\n" +
"\fRENAME_INDEX\x104\x12\x11\n" +
"\rRENAME_SCHEMA\x105\x12\x13\n" +
"\x0fRENAME_SEQUENCE\x106\x12\v\n" +
"\aCOMMENT\x107\x12\n" +
"\n" +
"\x06INSERT\x10<\x12\n" +
"\n" +
"\x06UPDATE\x10=\x12\n" +
"\n" +
"\x06DELETE\x10>\x12\t\n" +
"\x05MERGE\x10?\"\x04\b\r\x10\x13\"\x04\b \x10'\"\x04\b/\x101\"\x04\b8\x10;B\x8e\x01\n" +
"\x12com.bytebase.storeB\vCommonProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"
var (
file_store_common_proto_rawDescOnce sync.Once
file_store_common_proto_rawDescData []byte
)
func file_store_common_proto_rawDescGZIP() []byte {
file_store_common_proto_rawDescOnce.Do(func() {
file_store_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_common_proto_rawDesc), len(file_store_common_proto_rawDesc)))
})
return file_store_common_proto_rawDescData
}
var file_store_common_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
var file_store_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_store_common_proto_goTypes = []any{
(Engine)(0), // 0: bytebase.store.Engine
(VCSType)(0), // 1: bytebase.store.VCSType
(ExportFormat)(0), // 2: bytebase.store.ExportFormat
(RiskLevel)(0), // 3: bytebase.store.RiskLevel
(SchemaChangeType)(0), // 4: bytebase.store.SchemaChangeType
(WebhookType)(0), // 5: bytebase.store.WebhookType
(StatementType)(0), // 6: bytebase.store.StatementType
(*PageToken)(nil), // 7: bytebase.store.PageToken
(*Position)(nil), // 8: bytebase.store.Position
(*Range)(nil), // 9: bytebase.store.Range
(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
}
var file_store_common_proto_depIdxs = []int32{
10, // 0: bytebase.store.PageToken.create_time_upper_bound:type_name -> google.protobuf.Timestamp
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_store_common_proto_init() }
func file_store_common_proto_init() {
if File_store_common_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_common_proto_rawDesc), len(file_store_common_proto_rawDesc)),
NumEnums: 7,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_store_common_proto_goTypes,
DependencyIndexes: file_store_common_proto_depIdxs,
EnumInfos: file_store_common_proto_enumTypes,
MessageInfos: file_store_common_proto_msgTypes,
}.Build()
File_store_common_proto = out.File
file_store_common_proto_goTypes = nil
file_store_common_proto_depIdxs = nil
}