habr
Read post

Exposed: Custom column types

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A detailed guide on extending Exposed, Kotlin's SQL library, by implementing custom column types. Using PostgreSQL enums as an example, the article demonstrates how to create type-safe database mappings by extending ColumnType, implementing value conversion methods, handling default values, and creating SQL literals. Covers the complete flow from JDBC-level understanding through to practical implementation with code examples.

    #java#postgresql#kotlin
Oct 23, 2025•8m read time•From habr.com
Post cover image
Table of contents
Implementing Value ConversionImplementing Default Value Formatting
2.3K Impressions
habr's image
habr

Habr offers insights into technology trends, programming languages, and IT industry news, providing ...

261 Followers

•

3.1K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard