Skip to content

Commit

Permalink
feat: add space id (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
kqzh authored Aug 23, 2023
1 parent 04ec84c commit 06c3be8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ccore/nebula/internal/driver/v2_5/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,10 @@ func (w spaceWrapper) GetName() string {
return string(w.Space.GetName())
}

func (w spaceWrapper) GetId() string {
return w.Space.GetId().String()
}

type spacesWrap struct {
metaBaserWrap
Spaces []types.Space
Expand Down
4 changes: 4 additions & 0 deletions ccore/nebula/internal/driver/v2_6/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,10 @@ func (w spaceWrapper) GetName() string {
return string(w.Space.GetName())
}

func (w spaceWrapper) GetId() string {
return w.Space.GetId().String()
}

type spacesWrap struct {
metaBaserWrap
Spaces []types.Space
Expand Down
4 changes: 4 additions & 0 deletions ccore/nebula/internal/driver/v3_0/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,10 @@ func (w spaceWrapper) GetName() string {
return string(w.Space.GetName())
}

func (w spaceWrapper) GetId() string {
return w.Space.GetId().String()
}

type spacesWrap struct {
metaBaserWrap
Spaces []types.Space
Expand Down
1 change: 1 addition & 0 deletions ccore/nebula/types/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ type (

Space interface {
GetName() string
GetId() string
}

Spaces interface {
Expand Down

0 comments on commit 06c3be8

Please sign in to comment.