Substring in a template

How can I get a substring of a variable in a template? This seems like a pretty common thing to want to do.

 

ie., 

 

A table named Cats, with a pkey of CatdId, Dogs/DogId, etc.

``select x.$key$, x.Name from $table$ where DeletedOn is null;``

It would be nice to define $key$ as concat(chop($table$, 1), "Id")

 

~S

 

0
1 comment

sorry, but this is not the right forum for such queries. I'd suggest asking this at https://intellij-support.jetbrains.com/hc/en-us/community/topics/200381555-DataGrip (or, even better, at http://stackoverflow.com)

0

Please sign in to leave a comment.