sqlv1

package
v0.10.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DatabaseService_Query_FullMethodName           = "/sql.v1.DatabaseService/Query"
	DatabaseService_DataSourceNames_FullMethodName = "/sql.v1.DatabaseService/DataSourceNames"
	DatabaseService_Download_FullMethodName        = "/sql.v1.DatabaseService/Download"
	DatabaseService_LatestSnapshot_FullMethodName  = "/sql.v1.DatabaseService/LatestSnapshot"
	DatabaseService_ReplicationIDs_FullMethodName  = "/sql.v1.DatabaseService/ReplicationIDs"
)

Variables

View Source
var (
	QueryType_name = map[int32]string{
		0: "QUERY_TYPE_UNSPECIFIED",
		1: "QUERY_TYPE_EXEC_UPDATE",
		2: "QUERY_TYPE_EXEC_QUERY",
		3: "QUERY_TYPE_PING",
	}
	QueryType_value = map[string]int32{
		"QUERY_TYPE_UNSPECIFIED": 0,
		"QUERY_TYPE_EXEC_UPDATE": 1,
		"QUERY_TYPE_EXEC_QUERY":  2,
		"QUERY_TYPE_PING":        3,
	}
)

Enum value maps for QueryType.

View Source
var DatabaseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sql.v1.DatabaseService",
	HandlerType: (*DatabaseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DataSourceNames",
			Handler:    _DatabaseService_DataSourceNames_Handler,
		},
		{
			MethodName: "ReplicationIDs",
			Handler:    _DatabaseService_ReplicationIDs_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Query",
			Handler:       _DatabaseService_Query_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "Download",
			Handler:       _DatabaseService_Download_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "LatestSnapshot",
			Handler:       _DatabaseService_LatestSnapshot_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "sql/v1/sql.proto",
}

DatabaseService_ServiceDesc is the grpc.ServiceDesc for DatabaseService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_sql_v1_sql_proto protoreflect.FileDescriptor

Functions

func RegisterDatabaseServiceServer

func RegisterDatabaseServiceServer(s grpc.ServiceRegistrar, srv DatabaseServiceServer)

Types

type Data

type Data struct {
	Columns []string `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
	Rows    []*Row   `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

func (*Data) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetColumns

func (x *Data) GetColumns() []string

func (*Data) GetRows

func (x *Data) GetRows() []*Row

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type DataSourceNamesRequest added in v0.5.10

type DataSourceNamesRequest struct {
	// contains filtered or unexported fields
}

func (*DataSourceNamesRequest) Descriptor deprecated added in v0.5.10

func (*DataSourceNamesRequest) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceNamesRequest.ProtoReflect.Descriptor instead.

func (*DataSourceNamesRequest) ProtoMessage added in v0.5.10

func (*DataSourceNamesRequest) ProtoMessage()

func (*DataSourceNamesRequest) ProtoReflect added in v0.5.10

func (x *DataSourceNamesRequest) ProtoReflect() protoreflect.Message

func (*DataSourceNamesRequest) Reset added in v0.5.10

func (x *DataSourceNamesRequest) Reset()

func (*DataSourceNamesRequest) String added in v0.5.10

func (x *DataSourceNamesRequest) String() string

type DataSourceNamesResponse added in v0.5.10

type DataSourceNamesResponse struct {
	Dsn []string `protobuf:"bytes,1,rep,name=dsn,proto3" json:"dsn,omitempty"`
	// contains filtered or unexported fields
}

func (*DataSourceNamesResponse) Descriptor deprecated added in v0.5.10

func (*DataSourceNamesResponse) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceNamesResponse.ProtoReflect.Descriptor instead.

func (*DataSourceNamesResponse) GetDsn added in v0.5.10

func (x *DataSourceNamesResponse) GetDsn() []string

func (*DataSourceNamesResponse) ProtoMessage added in v0.5.10

func (*DataSourceNamesResponse) ProtoMessage()

func (*DataSourceNamesResponse) ProtoReflect added in v0.5.10

func (x *DataSourceNamesResponse) ProtoReflect() protoreflect.Message

func (*DataSourceNamesResponse) Reset added in v0.5.10

func (x *DataSourceNamesResponse) Reset()

func (*DataSourceNamesResponse) String added in v0.5.10

func (x *DataSourceNamesResponse) String() string

type DatabaseServiceClient

DatabaseServiceClient is the client API for DatabaseService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DatabaseServiceServer

DatabaseServiceServer is the server API for DatabaseService service. All implementations must embed UnimplementedDatabaseServiceServer for forward compatibility.

type DatabaseService_DownloadClient added in v0.8.0

type DatabaseService_DownloadClient = grpc.ServerStreamingClient[DownloadResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type DatabaseService_DownloadServer added in v0.8.0

type DatabaseService_DownloadServer = grpc.ServerStreamingServer[DownloadResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type DatabaseService_LatestSnapshotClient added in v0.8.0

type DatabaseService_LatestSnapshotClient = grpc.ServerStreamingClient[LatestSnapshotResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type DatabaseService_LatestSnapshotServer added in v0.8.0

type DatabaseService_LatestSnapshotServer = grpc.ServerStreamingServer[LatestSnapshotResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type DatabaseService_QueryClient

type DatabaseService_QueryClient = grpc.BidiStreamingClient[QueryRequest, QueryResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type DatabaseService_QueryServer

type DatabaseService_QueryServer = grpc.BidiStreamingServer[QueryRequest, QueryResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type DownloadRequest added in v0.8.0

type DownloadRequest struct {
	ReplicationId string `protobuf:"bytes,1,opt,name=replication_id,json=replicationId,proto3" json:"replication_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadRequest) Descriptor deprecated added in v0.8.0

func (*DownloadRequest) Descriptor() ([]byte, []int)

Deprecated: Use DownloadRequest.ProtoReflect.Descriptor instead.

func (*DownloadRequest) GetReplicationId added in v0.8.0

func (x *DownloadRequest) GetReplicationId() string

func (*DownloadRequest) ProtoMessage added in v0.8.0

func (*DownloadRequest) ProtoMessage()

func (*DownloadRequest) ProtoReflect added in v0.8.0

func (x *DownloadRequest) ProtoReflect() protoreflect.Message

func (*DownloadRequest) Reset added in v0.8.0

func (x *DownloadRequest) Reset()

func (*DownloadRequest) String added in v0.8.0

func (x *DownloadRequest) String() string

type DownloadResponse added in v0.8.0

type DownloadResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadResponse) Descriptor deprecated added in v0.8.0

func (*DownloadResponse) Descriptor() ([]byte, []int)

Deprecated: Use DownloadResponse.ProtoReflect.Descriptor instead.

func (*DownloadResponse) GetData added in v0.8.0

func (x *DownloadResponse) GetData() []byte

func (*DownloadResponse) ProtoMessage added in v0.8.0

func (*DownloadResponse) ProtoMessage()

func (*DownloadResponse) ProtoReflect added in v0.8.0

func (x *DownloadResponse) ProtoReflect() protoreflect.Message

func (*DownloadResponse) Reset added in v0.8.0

func (x *DownloadResponse) Reset()

func (*DownloadResponse) String added in v0.8.0

func (x *DownloadResponse) String() string

type LatestSnapshotRequest added in v0.5.10

type LatestSnapshotRequest struct {
	ReplicationId string `protobuf:"bytes,1,opt,name=replication_id,json=replicationId,proto3" json:"replication_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LatestSnapshotRequest) Descriptor deprecated added in v0.5.10

func (*LatestSnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use LatestSnapshotRequest.ProtoReflect.Descriptor instead.

func (*LatestSnapshotRequest) GetReplicationId added in v0.5.10

func (x *LatestSnapshotRequest) GetReplicationId() string

func (*LatestSnapshotRequest) ProtoMessage added in v0.5.10

func (*LatestSnapshotRequest) ProtoMessage()

func (*LatestSnapshotRequest) ProtoReflect added in v0.5.10

func (x *LatestSnapshotRequest) ProtoReflect() protoreflect.Message

func (*LatestSnapshotRequest) Reset added in v0.5.10

func (x *LatestSnapshotRequest) Reset()

func (*LatestSnapshotRequest) String added in v0.5.10

func (x *LatestSnapshotRequest) String() string

type LatestSnapshotResponse added in v0.5.10

type LatestSnapshotResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*LatestSnapshotResponse) Descriptor deprecated added in v0.5.10

func (*LatestSnapshotResponse) Descriptor() ([]byte, []int)

Deprecated: Use LatestSnapshotResponse.ProtoReflect.Descriptor instead.

func (*LatestSnapshotResponse) GetData added in v0.5.10

func (x *LatestSnapshotResponse) GetData() []byte

func (*LatestSnapshotResponse) ProtoMessage added in v0.5.10

func (*LatestSnapshotResponse) ProtoMessage()

func (*LatestSnapshotResponse) ProtoReflect added in v0.5.10

func (x *LatestSnapshotResponse) ProtoReflect() protoreflect.Message

func (*LatestSnapshotResponse) Reset added in v0.5.10

func (x *LatestSnapshotResponse) Reset()

func (*LatestSnapshotResponse) String added in v0.5.10

func (x *LatestSnapshotResponse) String() string

type NamedValue

type NamedValue struct {
	Name    string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ordinal int64      `protobuf:"varint,2,opt,name=ordinal,proto3" json:"ordinal,omitempty"`
	Value   *anypb.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*NamedValue) Descriptor deprecated

func (*NamedValue) Descriptor() ([]byte, []int)

Deprecated: Use NamedValue.ProtoReflect.Descriptor instead.

func (*NamedValue) GetName

func (x *NamedValue) GetName() string

func (*NamedValue) GetOrdinal

func (x *NamedValue) GetOrdinal() int64

func (*NamedValue) GetValue

func (x *NamedValue) GetValue() *anypb.Any

func (*NamedValue) ProtoMessage

func (*NamedValue) ProtoMessage()

func (*NamedValue) ProtoReflect

func (x *NamedValue) ProtoReflect() protoreflect.Message

func (*NamedValue) Reset

func (x *NamedValue) Reset()

func (*NamedValue) String

func (x *NamedValue) String() string

type QueryRequest

type QueryRequest struct {
	Type          QueryType     `protobuf:"varint,1,opt,name=type,proto3,enum=sql.v1.QueryType" json:"type,omitempty"`
	Sql           string        `protobuf:"bytes,2,opt,name=sql,proto3" json:"sql,omitempty"`
	Params        []*NamedValue `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"`
	ReplicationId string        `protobuf:"bytes,4,opt,name=replication_id,json=replicationId,proto3" json:"replication_id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest) Descriptor deprecated

func (*QueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetParams

func (x *QueryRequest) GetParams() []*NamedValue

func (*QueryRequest) GetReplicationId

func (x *QueryRequest) GetReplicationId() string

func (*QueryRequest) GetSql

func (x *QueryRequest) GetSql() string

func (*QueryRequest) GetType

func (x *QueryRequest) GetType() QueryType

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

func (x *QueryRequest) ProtoReflect() protoreflect.Message

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryResponse

type QueryResponse struct {
	ResultSet    *Data  `protobuf:"bytes,1,opt,name=result_set,json=resultSet,proto3" json:"result_set,omitempty"`
	RowsAffected int64  `protobuf:"varint,2,opt,name=rows_affected,json=rowsAffected,proto3" json:"rows_affected,omitempty"`
	LastInsertId int64  `protobuf:"varint,3,opt,name=last_insert_id,json=lastInsertId,proto3" json:"last_insert_id,omitempty"`
	Txseq        uint64 `protobuf:"varint,4,opt,name=txseq,proto3" json:"txseq,omitempty"`
	Error        string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

func (*QueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetError

func (x *QueryResponse) GetError() string

func (*QueryResponse) GetLastInsertId

func (x *QueryResponse) GetLastInsertId() int64

func (*QueryResponse) GetResultSet

func (x *QueryResponse) GetResultSet() *Data

func (*QueryResponse) GetRowsAffected

func (x *QueryResponse) GetRowsAffected() int64

func (*QueryResponse) GetTxseq

func (x *QueryResponse) GetTxseq() uint64

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

func (x *QueryResponse) ProtoReflect() protoreflect.Message

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type QueryType

type QueryType int32
const (
	QueryType_QUERY_TYPE_UNSPECIFIED QueryType = 0
	QueryType_QUERY_TYPE_EXEC_UPDATE QueryType = 1
	QueryType_QUERY_TYPE_EXEC_QUERY  QueryType = 2
	QueryType_QUERY_TYPE_PING        QueryType = 3
)

func (QueryType) Descriptor

func (QueryType) Descriptor() protoreflect.EnumDescriptor

func (QueryType) Enum

func (x QueryType) Enum() *QueryType

func (QueryType) EnumDescriptor deprecated

func (QueryType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryType.Descriptor instead.

func (QueryType) Number

func (x QueryType) Number() protoreflect.EnumNumber

func (QueryType) String

func (x QueryType) String() string

func (QueryType) Type

type ReplicationIDsRequest added in v0.5.10

type ReplicationIDsRequest struct {
	// contains filtered or unexported fields
}

func (*ReplicationIDsRequest) Descriptor deprecated added in v0.5.10

func (*ReplicationIDsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReplicationIDsRequest.ProtoReflect.Descriptor instead.

func (*ReplicationIDsRequest) ProtoMessage added in v0.5.10

func (*ReplicationIDsRequest) ProtoMessage()

func (*ReplicationIDsRequest) ProtoReflect added in v0.5.10

func (x *ReplicationIDsRequest) ProtoReflect() protoreflect.Message

func (*ReplicationIDsRequest) Reset added in v0.5.10

func (x *ReplicationIDsRequest) Reset()

func (*ReplicationIDsRequest) String added in v0.5.10

func (x *ReplicationIDsRequest) String() string

type ReplicationIDsResponse added in v0.5.10

type ReplicationIDsResponse struct {
	ReplicationId []string `protobuf:"bytes,1,rep,name=replication_id,json=replicationId,proto3" json:"replication_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplicationIDsResponse) Descriptor deprecated added in v0.5.10

func (*ReplicationIDsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReplicationIDsResponse.ProtoReflect.Descriptor instead.

func (*ReplicationIDsResponse) GetReplicationId added in v0.5.10

func (x *ReplicationIDsResponse) GetReplicationId() []string

func (*ReplicationIDsResponse) ProtoMessage added in v0.5.10

func (*ReplicationIDsResponse) ProtoMessage()

func (*ReplicationIDsResponse) ProtoReflect added in v0.5.10

func (x *ReplicationIDsResponse) ProtoReflect() protoreflect.Message

func (*ReplicationIDsResponse) Reset added in v0.5.10

func (x *ReplicationIDsResponse) Reset()

func (*ReplicationIDsResponse) String added in v0.5.10

func (x *ReplicationIDsResponse) String() string

type Row

type Row struct {
	Values []*anypb.Any `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Row) Descriptor deprecated

func (*Row) Descriptor() ([]byte, []int)

Deprecated: Use Row.ProtoReflect.Descriptor instead.

func (*Row) GetValues

func (x *Row) GetValues() []*anypb.Any

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) ProtoReflect

func (x *Row) ProtoReflect() protoreflect.Message

func (*Row) Reset

func (x *Row) Reset()

func (*Row) String

func (x *Row) String() string

type UnimplementedDatabaseServiceServer

type UnimplementedDatabaseServiceServer struct{}

UnimplementedDatabaseServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDatabaseServiceServer) DataSourceNames added in v0.5.10

func (UnimplementedDatabaseServiceServer) Download added in v0.8.0

func (UnimplementedDatabaseServiceServer) LatestSnapshot added in v0.5.10

func (UnimplementedDatabaseServiceServer) Query

func (UnimplementedDatabaseServiceServer) ReplicationIDs added in v0.5.10

type UnsafeDatabaseServiceServer

type UnsafeDatabaseServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDatabaseServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DatabaseServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL