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

8m read timeFrom habr.com
Post cover image
Table of contents
Implementing Value ConversionImplementing Default Value Formatting

Sort: