Skip to content

Commit 93f0344

Browse files
lu-zerogvozdvmozgu
authored andcommitted
feat: parse postgres trigram operators
See https://www.postgresql.org/docs/current/pgtrgm.html Fixes #1161
1 parent 80b3495 commit 93f0344

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/lib-dialects/src/postgres.rs

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ pub fn raw_dialect() -> Dialect {
5858
r#"->>|#>>|->|#>|@>|<@|\?\||\?|\?&|#-"#,
5959
SyntaxKind::JsonOperator
6060
),
61+
Matcher::regex(
62+
"trgm_operator",
63+
r#"%|<%|%>|<<%|%>>|<->|<<->|<->>|<<<->|<->>>"#,
64+
SyntaxKind::LikeOperator
65+
),
6166
Matcher::string(
6267
"at",
6368
"@",

0 commit comments

Comments
 (0)