jooq
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m35s

This commit is contained in:
Dmitri 2026-04-11 23:39:55 +02:00
parent e19a55e8d3
commit 6cdb5e787a
Signed by: kanopo
GPG Key ID: 759ADD40E3132AC7
8 changed files with 536 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,4 +1,6 @@
HELP.md
# Track jOOQ generated sources
!target/generated-sources/jooq/
target/
.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
@ -32,3 +34,5 @@ build/
### VS Code ###
.vscode/
.env

View File

@ -25,7 +25,7 @@ RUN ./mvnw dependency:go-offline
COPY src ./src
# Build the application JAR using the Maven Wrapper
RUN ./mvnw clean package -DskipTests
RUN ./mvnw clean package -DskipTests -Djooq.codegen.skip=true -Dflyway.skip=true
# ---- STAGE 2: Runtime ----

View File

@ -0,0 +1,54 @@
/*
* This file is generated by jOOQ.
*/
package dev.kanopo.rhythm.jooq;
import java.util.Arrays;
import java.util.List;
import org.jooq.Constants;
import org.jooq.Schema;
import org.jooq.impl.CatalogImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class DefaultCatalog extends CatalogImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>DEFAULT_CATALOG</code>
*/
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
/**
* The schema <code>public</code>.
*/
public final Public PUBLIC = Public.PUBLIC;
/**
* No further instances allowed
*/
private DefaultCatalog() {
super("");
}
@Override
public final List<Schema> getSchemas() {
return Arrays.asList(
Public.PUBLIC
);
}
/**
* A reference to the 3.19 minor release of the code generator. If this
* doesn't compile, it's because the runtime library uses an older minor
* release, namely: 3.19. You can turn off the generation of this reference
* by specifying /configuration/generator/generate/jooqVersionReference
*/
private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_19;
}

View File

@ -0,0 +1,29 @@
/*
* This file is generated by jOOQ.
*/
package dev.kanopo.rhythm.jooq;
import dev.kanopo.rhythm.jooq.tables.Users;
import dev.kanopo.rhythm.jooq.tables.records.UsersRecord;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
/**
* A class modelling foreign key relationships and constraints of tables in
* public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Keys {
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey<UsersRecord> USERS_EMAIL_KEY = Internal.createUniqueKey(Users.USERS, DSL.name("users_email_key"), new TableField[] { Users.USERS.EMAIL }, true);
public static final UniqueKey<UsersRecord> USERS_PKEY = Internal.createUniqueKey(Users.USERS, DSL.name("users_pkey"), new TableField[] { Users.USERS.ID }, true);
}

View File

@ -0,0 +1,54 @@
/*
* This file is generated by jOOQ.
*/
package dev.kanopo.rhythm.jooq;
import dev.kanopo.rhythm.jooq.tables.Users;
import java.util.Arrays;
import java.util.List;
import org.jooq.Catalog;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Public extends SchemaImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public</code>
*/
public static final Public PUBLIC = new Public();
/**
* The table <code>public.users</code>.
*/
public final Users USERS = Users.USERS;
/**
* No further instances allowed
*/
private Public() {
super("public", null);
}
@Override
public Catalog getCatalog() {
return DefaultCatalog.DEFAULT_CATALOG;
}
@Override
public final List<Table<?>> getTables() {
return Arrays.asList(
Users.USERS
);
}
}

View File

@ -0,0 +1,20 @@
/*
* This file is generated by jOOQ.
*/
package dev.kanopo.rhythm.jooq;
import dev.kanopo.rhythm.jooq.tables.Users;
/**
* Convenience access to all tables in public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Tables {
/**
* The table <code>public.users</code>.
*/
public static final Users USERS = Users.USERS;
}

View File

@ -0,0 +1,247 @@
/*
* This file is generated by jOOQ.
*/
package dev.kanopo.rhythm.jooq.tables;
import dev.kanopo.rhythm.jooq.Keys;
import dev.kanopo.rhythm.jooq.Public;
import dev.kanopo.rhythm.jooq.tables.records.UsersRecord;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
import org.jooq.SQL;
import org.jooq.Schema;
import org.jooq.Select;
import org.jooq.Stringly;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Users extends TableImpl<UsersRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.users</code>
*/
public static final Users USERS = new Users();
/**
* The class holding records for this type
*/
@Override
public Class<UsersRecord> getRecordType() {
return UsersRecord.class;
}
/**
* The column <code>public.users.id</code>.
*/
public final TableField<UsersRecord, UUID> ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false).defaultValue(DSL.field(DSL.raw("gen_random_uuid()"), SQLDataType.UUID)), this, "");
/**
* The column <code>public.users.email</code>.
*/
public final TableField<UsersRecord, String> EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>public.users.password</code>.
*/
public final TableField<UsersRecord, String> PASSWORD = createField(DSL.name("password"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>public.users.created_at</code>.
*/
public final TableField<UsersRecord, OffsetDateTime> CREATED_AT = createField(DSL.name("created_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMPWITHTIMEZONE)), this, "");
/**
* The column <code>public.users.updated_at</code>.
*/
public final TableField<UsersRecord, OffsetDateTime> UPDATED_AT = createField(DSL.name("updated_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMPWITHTIMEZONE)), this, "");
private Users(Name alias, Table<UsersRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private Users(Name alias, Table<UsersRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.users</code> table reference
*/
public Users(String alias) {
this(DSL.name(alias), USERS);
}
/**
* Create an aliased <code>public.users</code> table reference
*/
public Users(Name alias) {
this(alias, USERS);
}
/**
* Create a <code>public.users</code> table reference
*/
public Users() {
this(DSL.name("users"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public UniqueKey<UsersRecord> getPrimaryKey() {
return Keys.USERS_PKEY;
}
@Override
public List<UniqueKey<UsersRecord>> getUniqueKeys() {
return Arrays.asList(Keys.USERS_EMAIL_KEY);
}
@Override
public Users as(String alias) {
return new Users(DSL.name(alias), this);
}
@Override
public Users as(Name alias) {
return new Users(alias, this);
}
@Override
public Users as(Table<?> alias) {
return new Users(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Users rename(String name) {
return new Users(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Users rename(Name name) {
return new Users(name, null);
}
/**
* Rename this table
*/
@Override
public Users rename(Table<?> name) {
return new Users(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Users where(Condition condition) {
return new Users(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Users where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Users where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Users where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Users where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Users where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Users where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Users where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Users whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Users whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,127 @@
/*
* This file is generated by jOOQ.
*/
package dev.kanopo.rhythm.jooq.tables.records;
import dev.kanopo.rhythm.jooq.tables.Users;
import java.time.OffsetDateTime;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class UsersRecord extends UpdatableRecordImpl<UsersRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.users.id</code>.
*/
public void setId(UUID value) {
set(0, value);
}
/**
* Getter for <code>public.users.id</code>.
*/
public UUID getId() {
return (UUID) get(0);
}
/**
* Setter for <code>public.users.email</code>.
*/
public void setEmail(String value) {
set(1, value);
}
/**
* Getter for <code>public.users.email</code>.
*/
public String getEmail() {
return (String) get(1);
}
/**
* Setter for <code>public.users.password</code>.
*/
public void setPassword(String value) {
set(2, value);
}
/**
* Getter for <code>public.users.password</code>.
*/
public String getPassword() {
return (String) get(2);
}
/**
* Setter for <code>public.users.created_at</code>.
*/
public void setCreatedAt(OffsetDateTime value) {
set(3, value);
}
/**
* Getter for <code>public.users.created_at</code>.
*/
public OffsetDateTime getCreatedAt() {
return (OffsetDateTime) get(3);
}
/**
* Setter for <code>public.users.updated_at</code>.
*/
public void setUpdatedAt(OffsetDateTime value) {
set(4, value);
}
/**
* Getter for <code>public.users.updated_at</code>.
*/
public OffsetDateTime getUpdatedAt() {
return (OffsetDateTime) get(4);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<UUID> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UsersRecord
*/
public UsersRecord() {
super(Users.USERS);
}
/**
* Create a detached, initialised UsersRecord
*/
public UsersRecord(UUID id, String email, String password, OffsetDateTime createdAt, OffsetDateTime updatedAt) {
super(Users.USERS);
setId(id);
setEmail(email);
setPassword(password);
setCreatedAt(createdAt);
setUpdatedAt(updatedAt);
resetChangedOnNotNull();
}
}