Postgresql cube type as Postgrex.Extension

I’d like to use cube data type that’s internally represented as an array of 64-bit floats.
I got stuck with Postgrex.Extension docs and the real array implementation.
Could you please help or guide me in a right direction?

In case your favorite search engine has brought you here, I managed to figure this out myself. It turned out that cube module has no binary functions, so I had to use text representation for Postgrex.Extension.
Here is the lib.

5 Likes