Skip to content

Commit

Permalink
DESC implementation for create and drop BQL statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
xllora committed Jan 4, 2017
1 parent 7949dfd commit 5fbd6be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bql/planner/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (p *createPlan) Execute(ctx context.Context) (*table.Table, error) {

// String returns a readable description of the execution plan.
func (p *createPlan) String() string {
return "not implemented"
return fmt.Sprintf("store(%q).NewGraph(_, %v)", p.store.Name(nil), p.stm.Graphs())
}

// dropPlan encapsulates the sequence of instructions that need to be
Expand Down Expand Up @@ -99,7 +99,7 @@ func (p *dropPlan) Execute(ctx context.Context) (*table.Table, error) {

// String returns a readable description of the execution plan.
func (p *dropPlan) String() string {
return "not implemented"
return fmt.Sprintf("store(%q).DeleteGraph(_, %v)", p.store.Name(nil), p.stm.Graphs())
}

// insertPlan encapsulates the sequence of instructions that need to be
Expand Down

0 comments on commit 5fbd6be

Please sign in to comment.