{"repo":"revolut-engineering/jooq-plugin","free":true,"listed":false,"github":"https://github.com/revolut-engineering/jooq-plugin","clone":"git clone https://github.com/revolut-engineering/jooq-plugin.git","description":"Plugin for generating jOOQ classes using dockerized databases","language":"Groovy","stars":80,"topics":["jooq","jooq-generator","docker","database","kotlin-dsl","gradle","gradle-kotlin-dsl","gradle-plugin"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Gradle Docker jOOQ Plugin This repository contains Gradle plugin for generating jOOQ classes in dockerized databases. Plugin registers task generateJooqClasses that does following steps: pulls docker image starts database container runs migrations using Flyway generates jOOQ classes Use : - 0.3.x and later for jOOQ versions 3.12.x and later - 0.2.x and later releases for jOOQ versions 3.11.x and later - For earlier versions use 0.1.x release Examples By default plugin is configured to work with PostgreSQL, so the following minimal config is enough: It will look for migration files in src/main/resources/db/migration and will output generated classes to build/generated-jooq in package org.jooq.generated . All of that details can be configured on the task itself as shown in examples below. Configuring schema names and other parameters of the task: To configure the plugin to work with another DB like MySQL following config can be applied: To register custom types: To exclude flyway schema history table from generated classes: To enforce version of the plugin dependencies: Remote docker setup The library plugin uses to communicate with docker daemon will pick up your environment variables like DOCKER HOST and use them for connection (all config options here). Plugin then, based on this config, will try to figure out the host on which database is exposed, if it fail you can override it the following way: For the readiness probe plugin will always use localhost 127.0.0.1 as it's a c","default_branch":null,"files":null,"tree":[],"storefront":"/r/revolut-engineering","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/revolut-engineering/jooq-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}