Join Slack
Powered by
Hi, with exposed what data type <https://github.co...
# exposed
f
Fred Bowker
02/25/2022, 1:19 PM
Hi, with exposed what data type
https://github.com/JetBrains/Exposed/wiki/DataTypes
should I use for retrieving bytea from postgresql, is the binary type used for this
p
Phil Richardson
02/25/2022, 8:52 PM
https://github.com/JetBrains/Exposed/blob/master/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/PostgreSQL.kt#L14:L20
Generally the dialect is going to guide you on the intended / available
types.In
this case, Blob and Binary types are declared for bytea. So your Table objects will want to use
binary
or
blob
for declaration from which your going to get a
Column<ByteArray>
or
Column<ExposedBlob>
respectively.
f
Fred Bowker
02/26/2022, 9:07 AM
Hey Phil, thanks for your response looks like binary is what I need
59
Views
Open in Slack
Previous
Next