Export: support export in postgresql (#58553)

This commit is contained in:
Ryan McKinley
2022-11-10 14:16:31 -05:00
committed by GitHub
parent 47055561ec
commit f92d978386
13 changed files with 109 additions and 45 deletions
@@ -552,6 +552,10 @@ func (s *sqlObjectServer) History(ctx context.Context, r *object.ObjectHistoryRe
func (s *sqlObjectServer) Search(ctx context.Context, r *object.ObjectSearchRequest) (*object.ObjectSearchResponse, error) {
user := store.UserFromContext(ctx)
if user == nil {
return nil, fmt.Errorf("missing user in context")
}
if r.NextPageToken != "" || len(r.Sort) > 0 || len(r.Labels) > 0 {
return nil, fmt.Errorf("not yet supported")
}