Hi <@U0EC2UPDF>in the future we will be able to cr...
# exposed
s
Hi @tapacin the future we will be able to create your own ColumnType?
t
What is preventing you from doing it right now?
s
right now, basically all implementation of ColumnTypes class is final (in my case, I want to work with a Blob)
t
You could delegate to a BlobColumnType:
Copy code
class MyBlobColumnType : IColumnType by BlobColumnType() {
    
}
❤️ 1
t
There is
ColumnWithTransform
which accepts two lambdas to convert values to and from a database. Like:
Copy code
class FooEntity() : IntEntity {

   var offlinePlayer = FooTable.playerId.transform({ it.uniqueId }, { offlinePlayer(it) })
}
s
I was think in ask exactly about it, this is a better approach than mine, tkx again
t
The main problem is the lack of documentation, but we plan to improve it in the near future.