Skip to content

Commit

Permalink
Add indices to the location.range field in the CppAstNode table.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcserep committed Jul 31, 2024
1 parent 27d86d4 commit c6c9f6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/cpp/model/include/model/cppastnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ struct CppAstNode
#pragma db index("location_file_idx") member(location.file)
#pragma db index("entityHash_astType_idx") members(entityHash, astType)
#pragma db index("astType_symbolType_idx") members(astType, symbolType)
#pragma db index("location_range_start_idx") members(location.range.start.line, location.range.start.column)
#pragma db index("location_range_end_idx") members(location.range.end.line, location.range.end.column)
};

typedef std::shared_ptr<CppAstNode> CppAstNodePtr;
Expand Down

0 comments on commit c6c9f6c

Please sign in to comment.