Skip to content

Instantly share code, notes, and snippets.

View christxph's full-sized avatar

Christoph Kührer christxph

View GitHub Profile
@christxph
christxph / InetColumnType.kt
Last active December 28, 2020 14:59
Postgres INET column type for Kotlin Exposed
package tech.christoph.columns
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.ColumnType
import org.jetbrains.exposed.sql.Table
import org.jetbrains.exposed.sql.statements.api.PreparedStatementApi
import org.postgresql.util.PGobject
import java.net.InetAddress
/**