Skip to content

Commit

Permalink
feat: parse postgres trigram operators
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Jan 13, 2025
1 parent 67f5a9b commit 290c704
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/lib-dialects/src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ pub fn raw_dialect() -> Dialect {
r#"->>|#>>|->|#>|@>|<@|\?\||\?|\?&|#-"#,
SyntaxKind::JsonOperator
),
Matcher::regex(
"trgm_operator",
r#"%|<%|%>|<<%|%>>|<->|<<->|<->>|<<<->|<->>>"#,
SyntaxKind::LikeOperator
),
Matcher::string(
"at",
"@",
Expand Down

0 comments on commit 290c704

Please sign in to comment.