Is there a native way in Kysely to define a Table Alias with an Explicit Column Definition List?
I is required for:
jsonb_to_recordset() / json_to_recordset()
jsonb_to_record() / json_to_record()
I wanted to use such join
CROSS JOIN LATERAL
jsonb_to_recordset(t.logs) AS log(type TEXT)
I have not found any workaround except
.crossJoin((eb) => eb.fn('jsonb_array_elements', ['logs']).as('log'))
and then select fields with "->>"
Is there a native way in Kysely to define a Table Alias with an Explicit Column Definition List?
I is required for:
jsonb_to_recordset() / json_to_recordset()
jsonb_to_record() / json_to_record()
I wanted to use such join
I have not found any workaround except
.crossJoin((eb) => eb.fn('jsonb_array_elements', ['logs']).as('log'))and then select fields with "->>"