Thread
#exposed
    SrSouza

    SrSouza

    3 years ago
    Hi @tapacin the future we will be able to create your own ColumnType?
    tapac

    tapac

    3 years ago
    What is preventing you from doing it right now?
    SrSouza

    SrSouza

    3 years ago
    right now, basically all implementation of ColumnTypes class is final (in my case, I want to work with a Blob)
    tapac

    tapac

    3 years ago
    You could delegate to a BlobColumnType:
    class MyBlobColumnType : IColumnType by BlobColumnType() {
        
    }
    tapac

    tapac

    3 years ago
    There is
    ColumnWithTransform
    which accepts two lambdas to convert values to and from a database. Like:
    class FooEntity() : IntEntity {
    
       var offlinePlayer = FooTable.playerId.transform({ it.uniqueId }, { offlinePlayer(it) })
    }
    SrSouza

    SrSouza

    3 years ago
    I was think in ask exactly about it, this is a better approach than mine, tkx again
    tapac

    tapac

    3 years ago
    The main problem is the lack of documentation, but we plan to improve it in the near future.