Skip to content

Commit

Permalink
Added range-scan support in oxia db (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored May 18, 2024
1 parent e80a1ea commit 78a820f
Show file tree
Hide file tree
Showing 8 changed files with 1,376 additions and 265 deletions.
1 change: 1 addition & 0 deletions cmd/client/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package client

import (
"fmt"

"github.com/streamnative/oxia/cmd/client/deleterange"

"github.com/spf13/cobra"
Expand Down
9 changes: 9 additions & 0 deletions common/logging_client_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ func (l *loggingClientRpc) List(ctx context.Context, in *proto.ListRequest, opts
return res, err
}

func (l *loggingClientRpc) RangeScan(ctx context.Context, in *proto.RangeScanRequest, opts ...grpc.CallOption) (
res proto.OxiaClient_RangeScanClient, err error) {
if res, err = l.client.RangeScan(ctx, in, opts...); err != nil {
return nil, l.decorateErr(err)
}

return res, err
}

func (l *loggingClientRpc) GetNotifications(ctx context.Context, in *proto.NotificationsRequest, opts ...grpc.CallOption) (
res proto.OxiaClient_GetNotificationsClient, err error) {
if res, err = l.client.GetNotifications(ctx, in, opts...); err != nil {
Expand Down
Loading

0 comments on commit 78a820f

Please sign in to comment.