io.github.klahap.pgen
Owner: Klaus Happacher
This Gradle plugin simplifies the development process by automatically generating Kotlin Exposed table definitions from a PostgreSQL database schema. It connects to your database, introspects the schema, and creates Kotlin code for Exposed DSL, including table definitions, column mappings, and relationships. Save time and eliminate boilerplate by keeping your Exposed models synchronized with your database schema effortlessly.
https://github.com/klahap/pgen
Sources: https://github.com/klahap/pgen.git
Version 0.3.4 (latest)
Created 23 January 2025.
Add this plugin to your build using the plugins DSL:
plugins {
id("io.github.klahap.pgen") version "0.3.4"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("io.github.klahap.pgen:io.github.klahap.pgen.gradle.plugin:0.3.4") }
It can then be applied in the precompiled script plugin:plugins { id("io.github.klahap.pgen") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("io.github.klahap.pgen:io.github.klahap.pgen.gradle.plugin:0.3.4") } } apply(plugin = "io.github.klahap.pgen")
- Applying plugins to all subprojects .