Skip to content

Commit

Permalink
Updated session to not use dsl.ConditionBuilder. Fixes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawootten committed Jan 12, 2022
1 parent 6799ff1 commit c80b3ab
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type ISession interface {
LoadDepth(respObj interface{}, id string, depth int) error

//load with depth and filter
LoadDepthFilter(respObj interface{}, id string, depth int, filter *dsl.ConditionBuilder, params map[string]interface{}) error
LoadDepthFilter(respObj interface{}, id string, depth int, filter dsl.ConditionOperator, params map[string]interface{}) error

//load with depth, filter and pagination
LoadDepthFilterPagination(respObj interface{}, id string, depth int, filter dsl.ConditionOperator, params map[string]interface{}, pagination *Pagination) error
Expand Down
2 changes: 1 addition & 1 deletion interfacev2.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type ogmFunctions interface {
LoadDepth(ctx context.Context, respObj, id interface{}, depth int) error

//load with depth and filter
LoadDepthFilter(ctx context.Context, respObj, id interface{}, depth int, filter *dsl.ConditionBuilder, params map[string]interface{}) error
LoadDepthFilter(ctx context.Context, respObj, id interface{}, depth int, filter dsl.ConditionOperator, params map[string]interface{}) error

//load with depth, filter and pagination
LoadDepthFilterPagination(ctx context.Context, respObj, id interface{}, depth int, filter dsl.ConditionOperator, params map[string]interface{}, pagination *Pagination) error
Expand Down
4 changes: 2 additions & 2 deletions mocks/ISession.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mocks/SessionV2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mocks/TransactionV2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (s *Session) LoadDepth(respObj interface{}, id string, depth int) error {
return s.LoadDepthFilterPagination(respObj, id, depth, nil, nil, nil)
}

func (s *Session) LoadDepthFilter(respObj interface{}, id string, depth int, filter *dsl.ConditionBuilder, params map[string]interface{}) error {
func (s *Session) LoadDepthFilter(respObj interface{}, id string, depth int, filter dsl.ConditionOperator, params map[string]interface{}) error {
return s.LoadDepthFilterPagination(respObj, id, depth, filter, params, nil)
}

Expand Down
2 changes: 1 addition & 1 deletion sessionv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (s *SessionV2Impl) LoadDepth(ctx context.Context, respObj, id interface{},
return s.LoadDepthFilterPagination(ctx, respObj, id, depth, nil, nil, nil)
}

func (s *SessionV2Impl) LoadDepthFilter(ctx context.Context, respObj, id interface{}, depth int, filter *dsl.ConditionBuilder, params map[string]interface{}) error {
func (s *SessionV2Impl) LoadDepthFilter(ctx context.Context, respObj, id interface{}, depth int, filter dsl.ConditionOperator, params map[string]interface{}) error {
var span opentracing.Span
if ctx != nil && s.gogm.config.OpentracingEnabled {
span, ctx = opentracing.StartSpanFromContext(ctx, "gogm.SessionV2Impl.LoadDepthFilter")
Expand Down

0 comments on commit c80b3ab

Please sign in to comment.