tjohnn
02/04/2020, 11:36 AMProducts.select{ whereRaw("where array_to_string('some_psql_array_column') LIKE '%search%'") }
CC @tapactjohnn
02/04/2020, 11:38 AMtjohnn
02/04/2020, 11:48 AMspand
02/04/2020, 11:51 AMspand
02/04/2020, 11:52 AMExpressionAlias
and its extension:
fun <T:Expression<*>> T.alias(alias: String) = ExpressionAlias(this, alias)
tjohnn
02/04/2020, 12:30 PMspand
02/04/2020, 12:32 PMtjohnn
02/04/2020, 12:34 PM