Skip to content

Commit

Permalink
moved helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Solender committed Jun 13, 2022
1 parent 86167b8 commit 92c07b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ func traverseResultRecordValues(values []interface{}) ([]neo4j.Path, []neo4j.Rel
return paths, strictRels, isolatedNodes
}

func ptrToBool(b bool) *bool {
return &b
}

//decodes raw path response from driver
//example query `match p=(n)-[*0..5]-() return p`
func decode(gogm *Gogm, result neo4j.Result, respObj interface{}) (err error) {
Expand Down
4 changes: 4 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func int64SliceContains(s []int64, e int64) bool {
return false
}

func ptrToBool(b bool) *bool {
return &b
}

// sets uuid for stuct if uuid field is empty
func handleNodeState(pkStrat *PrimaryKeyStrategy, val *reflect.Value) (isNew bool, id int64, relConfig map[string]*RelationConfig, err error) {
if val == nil {
Expand Down

0 comments on commit 92c07b1

Please sign in to comment.