You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am dealing with jsonb column to make a join with array of values in a attribute in PostgreSQL
my need is --> LEFT JOIN LATERAL jsonb_array_elements(custom_field_base.custom_field_test1 -> 'country') Country_1 ON (true)
my output is --> LEFT JOIN "LATERAL jsonb_array_elements(custom_field_base"."custom_field_test1-> 'Country') Country_1" ON (true)
is there any way to generate raw query or to overcome is "" while compiling I am using PostgreSQL compiler
The text was updated successfully, but these errors were encountered:
I think the closest thing you can do is to use a CTE with the combination of FromRaw
var query = new Query()
.With("Country", q => q.FromRaw("jsonb_array_elements(custom_field_base.custom_field_test1 -> 'country')"))
.FromRaw("[Table] LEFT JOIN LATERAL [Country] ON (true)")
.Select("Field1")
I am dealing with jsonb column to make a join with array of values in a attribute in PostgreSQL
my need is --> LEFT JOIN LATERAL jsonb_array_elements(custom_field_base.custom_field_test1 -> 'country') Country_1 ON (true)
my output is --> LEFT JOIN "LATERAL jsonb_array_elements(custom_field_base"."custom_field_test1-> 'Country') Country_1" ON (true)
is there any way to generate raw query or to overcome is "" while compiling I am using PostgreSQL compiler
The text was updated successfully, but these errors were encountered: