我有一个使用Ecto.Adapters.SQL.query
的行的示例
iex(76)> result = Ecto.Adapters.SQL.query!(MyApp.Repo, qry2, []); [h|t]= result.rows; Enum.at(h, 6)
[debug] QUERY OK db=0.5ms queue=0.5ms
SELECT * FROM table limit 2 []
<<131, 80, 0, 0, 2, 97, 120, 156, 117, 145, 65, 79, 194, 64, 16, 133, 43, 1, 33,
254, 1, 209, 83, 99, 244, 88, 216, 182, 180, 208, 158, 4, 4, 227, 213, 155,
199, 217, 238, 64, 91, 119, 187, 205, 118, 107, 192, 95, 111, 23, ...>>
iex(77)>
值是postgres表上的 bytea ,如何将其转换为字符串?