Search Gradle plugins

io.github.klahap.pgen

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.1.0 (latest)

0.1.0

Created 25 November 2024.

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.

Using the plugins DSL:

plugins {
  id("io.github.klahap.pgen") version "0.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.klahap.pgen:pgen:0.1.0")
  }
}

apply(plugin = "io.github.klahap.pgen")

Using the plugins DSL:

plugins {
  id "io.github.klahap.pgen" version "0.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.klahap.pgen:pgen:0.1.0"
  }
}

apply plugin: "io.github.klahap.pgen"

Learn how to apply plugins to subprojects