Updating Spring/Kotlin versions, rebuilding JooQ
This commit is contained in:
parent
9af980b63e
commit
f79acd1956
@ -95,7 +95,7 @@ private fun linearInterpolate(replayA: Replay, replayB: Replay): F64Array {
|
|||||||
val lIndex = replayA.axis.lastIndex
|
val lIndex = replayA.axis.lastIndex
|
||||||
var maxLower = 0
|
var maxLower = 0
|
||||||
|
|
||||||
for (indexB in 0..<replayB.vector.shape[0]) {
|
for (indexB in 0 until replayB.vector.shape[0]) {
|
||||||
val xi = replayB.vector[indexB, 2]
|
val xi = replayB.vector[indexB, 2]
|
||||||
val index = replayA.axis.binarySearch(xi, fromIndex = maxLower)
|
val index = replayA.axis.binarySearch(xi, fromIndex = maxLower)
|
||||||
val insertionPoint = if (index >= 0) index else -(index + 1)
|
val insertionPoint = if (index >= 0) index else -(index + 1)
|
||||||
|
|||||||
@ -11,7 +11,7 @@ jabba use 21.0.2
|
|||||||
|
|
||||||
# Variables for Docker image
|
# Variables for Docker image
|
||||||
IMAGE_NAME="nise-backend"
|
IMAGE_NAME="nise-backend"
|
||||||
IMAGE_REGISTRY="git.gengo.tech/nuff"
|
IMAGE_REGISTRY="git.nise.moe/nuff"
|
||||||
IMAGE_VERSION="latest"
|
IMAGE_VERSION="latest"
|
||||||
|
|
||||||
# Clean up previous build artifacts
|
# Clean up previous build artifacts
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.2.3</version>
|
<version>3.3.0</version>
|
||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<java.version>21</java.version>
|
<java.version>21</java.version>
|
||||||
<testcontainers.version>1.17.6</testcontainers.version>
|
<testcontainers.version>1.17.6</testcontainers.version>
|
||||||
<kotlin.version>1.9.22</kotlin.version>
|
<kotlin.version>2.0.0</kotlin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -90,6 +90,10 @@
|
|||||||
<groupId>org.flywaydb</groupId>
|
<groupId>org.flywaydb</groupId>
|
||||||
<artifactId>flyway-core</artifactId>
|
<artifactId>flyway-core</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.flywaydb</groupId>
|
||||||
|
<artifactId>flyway-database-postgresql</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-jooq</artifactId>
|
<artifactId>spring-boot-starter-jooq</artifactId>
|
||||||
|
|||||||
@ -34,10 +34,10 @@ open class DefaultCatalog : CatalogImpl("") {
|
|||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A reference to the 3.18 minor release of the code generator. If this
|
* 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
|
* doesn't compile, it's because the runtime library uses an older minor
|
||||||
* release, namely: 3.18. You can turn off the generation of this reference
|
* release, namely: 3.19. You can turn off the generation of this reference
|
||||||
* by specifying /configuration/generator/generate/jooqVersionReference
|
* by specifying /configuration/generator/generate/jooqVersionReference
|
||||||
*/
|
*/
|
||||||
private val REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_18
|
private val REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_19
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import com.nisemoe.generated.tables.FlywaySchemaHistory
|
|||||||
import com.nisemoe.generated.tables.Scores
|
import com.nisemoe.generated.tables.Scores
|
||||||
import com.nisemoe.generated.tables.ScoresJudgements
|
import com.nisemoe.generated.tables.ScoresJudgements
|
||||||
import com.nisemoe.generated.tables.ScoresSimilarity
|
import com.nisemoe.generated.tables.ScoresSimilarity
|
||||||
|
import com.nisemoe.generated.tables.Users
|
||||||
|
|
||||||
import org.jooq.Index
|
import org.jooq.Index
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
@ -29,3 +30,5 @@ val IDX_SCORES_JUDGEMENTS_SCORE_ID: Index = Internal.createIndex(DSL.name("idx_s
|
|||||||
val IDX_SCORES_REPLAY_ID: Index = Internal.createIndex(DSL.name("idx_scores_replay_id"), Scores.SCORES, arrayOf(Scores.SCORES.REPLAY_ID), false)
|
val IDX_SCORES_REPLAY_ID: Index = Internal.createIndex(DSL.name("idx_scores_replay_id"), Scores.SCORES, arrayOf(Scores.SCORES.REPLAY_ID), false)
|
||||||
val IDX_SCORES_UR: Index = Internal.createIndex(DSL.name("idx_scores_ur"), Scores.SCORES, arrayOf(Scores.SCORES.UR), false)
|
val IDX_SCORES_UR: Index = Internal.createIndex(DSL.name("idx_scores_ur"), Scores.SCORES, arrayOf(Scores.SCORES.UR), false)
|
||||||
val IDX_SCORES_USER_ID: Index = Internal.createIndex(DSL.name("idx_scores_user_id"), Scores.SCORES, arrayOf(Scores.SCORES.USER_ID), false)
|
val IDX_SCORES_USER_ID: Index = Internal.createIndex(DSL.name("idx_scores_user_id"), Scores.SCORES, arrayOf(Scores.SCORES.USER_ID), false)
|
||||||
|
val IDX_USERS_IS_BANNED_FALSE: Index = Internal.createIndex(DSL.name("idx_users_is_banned_false"), Users.USERS, arrayOf(Users.USERS.IS_BANNED), false)
|
||||||
|
val IDX_USERS_IS_BANNED_TRUE: Index = Internal.createIndex(DSL.name("idx_users_is_banned_true"), Users.USERS, arrayOf(Users.USERS.IS_BANNED), false)
|
||||||
|
|||||||
@ -9,22 +9,26 @@ import com.nisemoe.generated.keys.BEATMAPS_PKEY
|
|||||||
import com.nisemoe.generated.tables.records.BeatmapsRecord
|
import com.nisemoe.generated.tables.records.BeatmapsRecord
|
||||||
|
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.function.Function
|
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row22
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
import org.jooq.UniqueKey
|
import org.jooq.UniqueKey
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
import org.jooq.impl.Internal
|
|
||||||
import org.jooq.impl.SQLDataType
|
import org.jooq.impl.SQLDataType
|
||||||
import org.jooq.impl.TableImpl
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
@ -35,19 +39,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class Beatmaps(
|
open class Beatmaps(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, BeatmapsRecord>?,
|
childPath: ForeignKey<out Record, BeatmapsRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, BeatmapsRecord>?,
|
||||||
aliased: Table<BeatmapsRecord>?,
|
aliased: Table<BeatmapsRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<BeatmapsRecord>(
|
): TableImpl<BeatmapsRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -172,8 +180,9 @@ open class Beatmaps(
|
|||||||
*/
|
*/
|
||||||
val MAX_COMBO: TableField<BeatmapsRecord, Int?> = createField(DSL.name("max_combo"), SQLDataType.INTEGER, this, "")
|
val MAX_COMBO: TableField<BeatmapsRecord, Int?> = createField(DSL.name("max_combo"), SQLDataType.INTEGER, this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<BeatmapsRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<BeatmapsRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<BeatmapsRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<BeatmapsRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<BeatmapsRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.beatmaps</code> table reference
|
* Create an aliased <code>public.beatmaps</code> table reference
|
||||||
@ -189,13 +198,11 @@ open class Beatmaps(
|
|||||||
* Create a <code>public.beatmaps</code> table reference
|
* Create a <code>public.beatmaps</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("beatmaps"), null)
|
constructor(): this(DSL.name("beatmaps"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, BeatmapsRecord>): this(Internal.createPathAlias(child, key), child, key, BEATMAPS, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getPrimaryKey(): UniqueKey<BeatmapsRecord> = BEATMAPS_PKEY
|
override fun getPrimaryKey(): UniqueKey<BeatmapsRecord> = BEATMAPS_PKEY
|
||||||
override fun `as`(alias: String): Beatmaps = Beatmaps(DSL.name(alias), this)
|
override fun `as`(alias: String): Beatmaps = Beatmaps(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): Beatmaps = Beatmaps(alias, this)
|
override fun `as`(alias: Name): Beatmaps = Beatmaps(alias, this)
|
||||||
override fun `as`(alias: Table<*>): Beatmaps = Beatmaps(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): Beatmaps = Beatmaps(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -210,21 +217,55 @@ open class Beatmaps(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): Beatmaps = Beatmaps(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): Beatmaps = Beatmaps(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row22 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row22<Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?> = super.fieldsRow() as Row22<Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): Beatmaps = Beatmaps(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): Beatmaps = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): Beatmaps = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): Beatmaps = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): Beatmaps = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): Beatmaps = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): Beatmaps = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): Beatmaps = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): Beatmaps = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): Beatmaps = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,25 +10,28 @@ import com.nisemoe.generated.keys.FLYWAY_SCHEMA_HISTORY_PK
|
|||||||
import com.nisemoe.generated.tables.records.FlywaySchemaHistoryRecord
|
import com.nisemoe.generated.tables.records.FlywaySchemaHistoryRecord
|
||||||
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.util.function.Function
|
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
import kotlin.collections.List
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Index
|
import org.jooq.Index
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row10
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
import org.jooq.UniqueKey
|
import org.jooq.UniqueKey
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
import org.jooq.impl.Internal
|
|
||||||
import org.jooq.impl.SQLDataType
|
import org.jooq.impl.SQLDataType
|
||||||
import org.jooq.impl.TableImpl
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
@ -39,19 +42,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class FlywaySchemaHistory(
|
open class FlywaySchemaHistory(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, FlywaySchemaHistoryRecord>?,
|
childPath: ForeignKey<out Record, FlywaySchemaHistoryRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, FlywaySchemaHistoryRecord>?,
|
||||||
aliased: Table<FlywaySchemaHistoryRecord>?,
|
aliased: Table<FlywaySchemaHistoryRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<FlywaySchemaHistoryRecord>(
|
): TableImpl<FlywaySchemaHistoryRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -116,8 +123,9 @@ open class FlywaySchemaHistory(
|
|||||||
*/
|
*/
|
||||||
val SUCCESS: TableField<FlywaySchemaHistoryRecord, Boolean?> = createField(DSL.name("success"), SQLDataType.BOOLEAN.nullable(false), this, "")
|
val SUCCESS: TableField<FlywaySchemaHistoryRecord, Boolean?> = createField(DSL.name("success"), SQLDataType.BOOLEAN.nullable(false), this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<FlywaySchemaHistoryRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<FlywaySchemaHistoryRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<FlywaySchemaHistoryRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<FlywaySchemaHistoryRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<FlywaySchemaHistoryRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.flyway_schema_history</code> table
|
* Create an aliased <code>public.flyway_schema_history</code> table
|
||||||
@ -135,14 +143,12 @@ open class FlywaySchemaHistory(
|
|||||||
* Create a <code>public.flyway_schema_history</code> table reference
|
* Create a <code>public.flyway_schema_history</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("flyway_schema_history"), null)
|
constructor(): this(DSL.name("flyway_schema_history"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, FlywaySchemaHistoryRecord>): this(Internal.createPathAlias(child, key), child, key, FLYWAY_SCHEMA_HISTORY, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIndexes(): List<Index> = listOf(FLYWAY_SCHEMA_HISTORY_S_IDX)
|
override fun getIndexes(): List<Index> = listOf(FLYWAY_SCHEMA_HISTORY_S_IDX)
|
||||||
override fun getPrimaryKey(): UniqueKey<FlywaySchemaHistoryRecord> = FLYWAY_SCHEMA_HISTORY_PK
|
override fun getPrimaryKey(): UniqueKey<FlywaySchemaHistoryRecord> = FLYWAY_SCHEMA_HISTORY_PK
|
||||||
override fun `as`(alias: String): FlywaySchemaHistory = FlywaySchemaHistory(DSL.name(alias), this)
|
override fun `as`(alias: String): FlywaySchemaHistory = FlywaySchemaHistory(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): FlywaySchemaHistory = FlywaySchemaHistory(alias, this)
|
override fun `as`(alias: Name): FlywaySchemaHistory = FlywaySchemaHistory(alias, this)
|
||||||
override fun `as`(alias: Table<*>): FlywaySchemaHistory = FlywaySchemaHistory(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): FlywaySchemaHistory = FlywaySchemaHistory(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -157,21 +163,55 @@ open class FlywaySchemaHistory(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): FlywaySchemaHistory = FlywaySchemaHistory(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): FlywaySchemaHistory = FlywaySchemaHistory(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row10 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row10<Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?> = super.fieldsRow() as Row10<Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): FlywaySchemaHistory = FlywaySchemaHistory(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): FlywaySchemaHistory = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): FlywaySchemaHistory = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): FlywaySchemaHistory = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): FlywaySchemaHistory = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): FlywaySchemaHistory = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): FlywaySchemaHistory = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): FlywaySchemaHistory = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): FlywaySchemaHistory = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): FlywaySchemaHistory = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,23 +9,27 @@ import com.nisemoe.generated.keys.OSU_API_KEYS_PKEY
|
|||||||
import com.nisemoe.generated.tables.records.OsuApiKeysRecord
|
import com.nisemoe.generated.tables.records.OsuApiKeysRecord
|
||||||
|
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.function.Function
|
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Identity
|
import org.jooq.Identity
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row5
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
import org.jooq.UniqueKey
|
import org.jooq.UniqueKey
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
import org.jooq.impl.Internal
|
|
||||||
import org.jooq.impl.SQLDataType
|
import org.jooq.impl.SQLDataType
|
||||||
import org.jooq.impl.TableImpl
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
@ -36,19 +40,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class OsuApiKeys(
|
open class OsuApiKeys(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, OsuApiKeysRecord>?,
|
childPath: ForeignKey<out Record, OsuApiKeysRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, OsuApiKeysRecord>?,
|
||||||
aliased: Table<OsuApiKeysRecord>?,
|
aliased: Table<OsuApiKeysRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<OsuApiKeysRecord>(
|
): TableImpl<OsuApiKeysRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -88,8 +96,9 @@ open class OsuApiKeys(
|
|||||||
*/
|
*/
|
||||||
val IS_ACTIVE: TableField<OsuApiKeysRecord, Boolean?> = createField(DSL.name("is_active"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("true"), SQLDataType.BOOLEAN)), this, "")
|
val IS_ACTIVE: TableField<OsuApiKeysRecord, Boolean?> = createField(DSL.name("is_active"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("true"), SQLDataType.BOOLEAN)), this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<OsuApiKeysRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<OsuApiKeysRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<OsuApiKeysRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<OsuApiKeysRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<OsuApiKeysRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.osu_api_keys</code> table reference
|
* Create an aliased <code>public.osu_api_keys</code> table reference
|
||||||
@ -105,14 +114,12 @@ open class OsuApiKeys(
|
|||||||
* Create a <code>public.osu_api_keys</code> table reference
|
* Create a <code>public.osu_api_keys</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("osu_api_keys"), null)
|
constructor(): this(DSL.name("osu_api_keys"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, OsuApiKeysRecord>): this(Internal.createPathAlias(child, key), child, key, OSU_API_KEYS, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIdentity(): Identity<OsuApiKeysRecord, Int?> = super.getIdentity() as Identity<OsuApiKeysRecord, Int?>
|
override fun getIdentity(): Identity<OsuApiKeysRecord, Int?> = super.getIdentity() as Identity<OsuApiKeysRecord, Int?>
|
||||||
override fun getPrimaryKey(): UniqueKey<OsuApiKeysRecord> = OSU_API_KEYS_PKEY
|
override fun getPrimaryKey(): UniqueKey<OsuApiKeysRecord> = OSU_API_KEYS_PKEY
|
||||||
override fun `as`(alias: String): OsuApiKeys = OsuApiKeys(DSL.name(alias), this)
|
override fun `as`(alias: String): OsuApiKeys = OsuApiKeys(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): OsuApiKeys = OsuApiKeys(alias, this)
|
override fun `as`(alias: Name): OsuApiKeys = OsuApiKeys(alias, this)
|
||||||
override fun `as`(alias: Table<*>): OsuApiKeys = OsuApiKeys(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): OsuApiKeys = OsuApiKeys(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -127,21 +134,55 @@ open class OsuApiKeys(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): OsuApiKeys = OsuApiKeys(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): OsuApiKeys = OsuApiKeys(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row5 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row5<Int?, String?, OffsetDateTime?, Boolean?, Boolean?> = super.fieldsRow() as Row5<Int?, String?, OffsetDateTime?, Boolean?, Boolean?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Int?, String?, OffsetDateTime?, Boolean?, Boolean?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): OsuApiKeys = OsuApiKeys(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Int?, String?, OffsetDateTime?, Boolean?, Boolean?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): OsuApiKeys = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): OsuApiKeys = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): OsuApiKeys = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): OsuApiKeys = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): OsuApiKeys = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): OsuApiKeys = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): OsuApiKeys = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): OsuApiKeys = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): OsuApiKeys = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,22 +8,25 @@ import com.nisemoe.generated.Public
|
|||||||
import com.nisemoe.generated.keys.REDDIT_POST_PKEY
|
import com.nisemoe.generated.keys.REDDIT_POST_PKEY
|
||||||
import com.nisemoe.generated.tables.records.RedditPostRecord
|
import com.nisemoe.generated.tables.records.RedditPostRecord
|
||||||
|
|
||||||
import java.util.function.Function
|
import kotlin.collections.Collection
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row5
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
import org.jooq.UniqueKey
|
import org.jooq.UniqueKey
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
import org.jooq.impl.Internal
|
|
||||||
import org.jooq.impl.SQLDataType
|
import org.jooq.impl.SQLDataType
|
||||||
import org.jooq.impl.TableImpl
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
@ -34,19 +37,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class RedditPost(
|
open class RedditPost(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, RedditPostRecord>?,
|
childPath: ForeignKey<out Record, RedditPostRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, RedditPostRecord>?,
|
||||||
aliased: Table<RedditPostRecord>?,
|
aliased: Table<RedditPostRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<RedditPostRecord>(
|
): TableImpl<RedditPostRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -86,8 +93,9 @@ open class RedditPost(
|
|||||||
*/
|
*/
|
||||||
val IS_CHECKED: TableField<RedditPostRecord, Boolean?> = createField(DSL.name("is_checked"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "")
|
val IS_CHECKED: TableField<RedditPostRecord, Boolean?> = createField(DSL.name("is_checked"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<RedditPostRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<RedditPostRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<RedditPostRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<RedditPostRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<RedditPostRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.reddit_post</code> table reference
|
* Create an aliased <code>public.reddit_post</code> table reference
|
||||||
@ -103,13 +111,11 @@ open class RedditPost(
|
|||||||
* Create a <code>public.reddit_post</code> table reference
|
* Create a <code>public.reddit_post</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("reddit_post"), null)
|
constructor(): this(DSL.name("reddit_post"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, RedditPostRecord>): this(Internal.createPathAlias(child, key), child, key, REDDIT_POST, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getPrimaryKey(): UniqueKey<RedditPostRecord> = REDDIT_POST_PKEY
|
override fun getPrimaryKey(): UniqueKey<RedditPostRecord> = REDDIT_POST_PKEY
|
||||||
override fun `as`(alias: String): RedditPost = RedditPost(DSL.name(alias), this)
|
override fun `as`(alias: String): RedditPost = RedditPost(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): RedditPost = RedditPost(alias, this)
|
override fun `as`(alias: Name): RedditPost = RedditPost(alias, this)
|
||||||
override fun `as`(alias: Table<*>): RedditPost = RedditPost(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): RedditPost = RedditPost(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -124,21 +130,55 @@ open class RedditPost(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): RedditPost = RedditPost(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): RedditPost = RedditPost(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row5 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row5<String?, String?, Double?, String?, Boolean?> = super.fieldsRow() as Row5<String?, String?, Double?, String?, Boolean?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (String?, String?, Double?, String?, Boolean?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): RedditPost = RedditPost(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (String?, String?, Double?, String?, Boolean?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): RedditPost = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): RedditPost = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): RedditPost = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): RedditPost = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): RedditPost = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): RedditPost = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): RedditPost = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): RedditPost = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): RedditPost = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,20 +12,31 @@ import com.nisemoe.generated.indexes.IDX_SCORES_REPLAY_ID
|
|||||||
import com.nisemoe.generated.indexes.IDX_SCORES_UR
|
import com.nisemoe.generated.indexes.IDX_SCORES_UR
|
||||||
import com.nisemoe.generated.indexes.IDX_SCORES_USER_ID
|
import com.nisemoe.generated.indexes.IDX_SCORES_USER_ID
|
||||||
import com.nisemoe.generated.keys.REPLAY_ID_UNIQUE
|
import com.nisemoe.generated.keys.REPLAY_ID_UNIQUE
|
||||||
|
import com.nisemoe.generated.keys.SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY
|
||||||
import com.nisemoe.generated.keys.SCORES_PKEY
|
import com.nisemoe.generated.keys.SCORES_PKEY
|
||||||
|
import com.nisemoe.generated.tables.ScoresJudgements.ScoresJudgementsPath
|
||||||
import com.nisemoe.generated.tables.records.ScoresRecord
|
import com.nisemoe.generated.tables.records.ScoresRecord
|
||||||
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
import kotlin.collections.List
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Index
|
import org.jooq.Index
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.Path
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
|
import org.jooq.SQL
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
@ -42,19 +53,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class Scores(
|
open class Scores(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, ScoresRecord>?,
|
childPath: ForeignKey<out Record, ScoresRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, ScoresRecord>?,
|
||||||
aliased: Table<ScoresRecord>?,
|
aliased: Table<ScoresRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<ScoresRecord>(
|
): TableImpl<ScoresRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -302,8 +317,9 @@ open class Scores(
|
|||||||
*/
|
*/
|
||||||
val JUDGEMENTS: TableField<ScoresRecord, ByteArray?> = createField(DSL.name("judgements"), SQLDataType.BLOB, this, "")
|
val JUDGEMENTS: TableField<ScoresRecord, ByteArray?> = createField(DSL.name("judgements"), SQLDataType.BLOB, this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<ScoresRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<ScoresRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<ScoresRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<ScoresRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<ScoresRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.scores</code> table reference
|
* Create an aliased <code>public.scores</code> table reference
|
||||||
@ -320,14 +336,41 @@ open class Scores(
|
|||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("scores"), null)
|
constructor(): this(DSL.name("scores"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, ScoresRecord>): this(Internal.createPathAlias(child, key), child, key, SCORES, null)
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, ScoresRecord>?, parentPath: InverseForeignKey<out Record, ScoresRecord>?): this(Internal.createPathAlias(path, childPath, parentPath), path, childPath, parentPath, SCORES, null, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||||
|
*/
|
||||||
|
open class ScoresPath : Scores, Path<ScoresRecord> {
|
||||||
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, ScoresRecord>?, parentPath: InverseForeignKey<out Record, ScoresRecord>?): super(path, childPath, parentPath)
|
||||||
|
private constructor(alias: Name, aliased: Table<ScoresRecord>): super(alias, aliased)
|
||||||
|
override fun `as`(alias: String): ScoresPath = ScoresPath(DSL.name(alias), this)
|
||||||
|
override fun `as`(alias: Name): ScoresPath = ScoresPath(alias, this)
|
||||||
|
override fun `as`(alias: Table<*>): ScoresPath = ScoresPath(alias.qualifiedName, this)
|
||||||
|
}
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIndexes(): List<Index> = listOf(IDX_SCORES_BEATMAP_ID, IDX_SCORES_BEATMAP_ID_REPLAY_ID, IDX_SCORES_BEATMAP_ID_REPLAY_ID_UR, IDX_SCORES_REPLAY_ID, IDX_SCORES_UR, IDX_SCORES_USER_ID)
|
override fun getIndexes(): List<Index> = listOf(IDX_SCORES_BEATMAP_ID, IDX_SCORES_BEATMAP_ID_REPLAY_ID, IDX_SCORES_BEATMAP_ID_REPLAY_ID_UR, IDX_SCORES_REPLAY_ID, IDX_SCORES_UR, IDX_SCORES_USER_ID)
|
||||||
override fun getPrimaryKey(): UniqueKey<ScoresRecord> = SCORES_PKEY
|
override fun getPrimaryKey(): UniqueKey<ScoresRecord> = SCORES_PKEY
|
||||||
override fun getUniqueKeys(): List<UniqueKey<ScoresRecord>> = listOf(REPLAY_ID_UNIQUE)
|
override fun getUniqueKeys(): List<UniqueKey<ScoresRecord>> = listOf(REPLAY_ID_UNIQUE)
|
||||||
|
|
||||||
|
private lateinit var _scoresJudgements: ScoresJudgementsPath
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the implicit to-many join path to the
|
||||||
|
* <code>public.scores_judgements</code> table
|
||||||
|
*/
|
||||||
|
fun scoresJudgements(): ScoresJudgementsPath {
|
||||||
|
if (!this::_scoresJudgements.isInitialized)
|
||||||
|
_scoresJudgements = ScoresJudgementsPath(this, null, SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY.inverseKey)
|
||||||
|
|
||||||
|
return _scoresJudgements;
|
||||||
|
}
|
||||||
|
|
||||||
|
val scoresJudgements: ScoresJudgementsPath
|
||||||
|
get(): ScoresJudgementsPath = scoresJudgements()
|
||||||
override fun `as`(alias: String): Scores = Scores(DSL.name(alias), this)
|
override fun `as`(alias: String): Scores = Scores(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): Scores = Scores(alias, this)
|
override fun `as`(alias: Name): Scores = Scores(alias, this)
|
||||||
override fun `as`(alias: Table<*>): Scores = Scores(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): Scores = Scores(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -342,5 +385,55 @@ open class Scores(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): Scores = Scores(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): Scores = Scores(name.qualifiedName, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Condition?): Scores = Scores(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(conditions: Collection<Condition>): Scores = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): Scores = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): Scores = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): Scores = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): Scores = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): Scores = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): Scores = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): Scores = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): Scores = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,21 +9,26 @@ import com.nisemoe.generated.enums.JudgementType
|
|||||||
import com.nisemoe.generated.indexes.IDX_SCORES_JUDGEMENTS_SCORE_ID
|
import com.nisemoe.generated.indexes.IDX_SCORES_JUDGEMENTS_SCORE_ID
|
||||||
import com.nisemoe.generated.keys.SCORES_JUDGEMENTS_PKEY
|
import com.nisemoe.generated.keys.SCORES_JUDGEMENTS_PKEY
|
||||||
import com.nisemoe.generated.keys.SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY
|
import com.nisemoe.generated.keys.SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY
|
||||||
|
import com.nisemoe.generated.tables.Scores.ScoresPath
|
||||||
import com.nisemoe.generated.tables.records.ScoresJudgementsRecord
|
import com.nisemoe.generated.tables.records.ScoresJudgementsRecord
|
||||||
|
|
||||||
import java.util.function.Function
|
import kotlin.collections.Collection
|
||||||
|
|
||||||
import kotlin.collections.List
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Index
|
import org.jooq.Index
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.Path
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row9
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
@ -40,19 +45,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class ScoresJudgements(
|
open class ScoresJudgements(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, ScoresJudgementsRecord>?,
|
childPath: ForeignKey<out Record, ScoresJudgementsRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, ScoresJudgementsRecord>?,
|
||||||
aliased: Table<ScoresJudgementsRecord>?,
|
aliased: Table<ScoresJudgementsRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<ScoresJudgementsRecord>(
|
): TableImpl<ScoresJudgementsRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -90,7 +99,7 @@ open class ScoresJudgements(
|
|||||||
/**
|
/**
|
||||||
* The column <code>public.scores_judgements.type</code>.
|
* The column <code>public.scores_judgements.type</code>.
|
||||||
*/
|
*/
|
||||||
val TYPE: TableField<ScoresJudgementsRecord, JudgementType?> = createField(DSL.name("type"), SQLDataType.VARCHAR.asEnumDataType(com.nisemoe.generated.enums.JudgementType::class.java), this, "")
|
val TYPE: TableField<ScoresJudgementsRecord, JudgementType?> = createField(DSL.name("type"), SQLDataType.VARCHAR.asEnumDataType(JudgementType::class.java), this, "")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The column <code>public.scores_judgements.distance_center</code>.
|
* The column <code>public.scores_judgements.distance_center</code>.
|
||||||
@ -112,8 +121,9 @@ open class ScoresJudgements(
|
|||||||
*/
|
*/
|
||||||
val SCORE_ID: TableField<ScoresJudgementsRecord, Int?> = createField(DSL.name("score_id"), SQLDataType.INTEGER, this, "")
|
val SCORE_ID: TableField<ScoresJudgementsRecord, Int?> = createField(DSL.name("score_id"), SQLDataType.INTEGER, this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<ScoresJudgementsRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<ScoresJudgementsRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<ScoresJudgementsRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<ScoresJudgementsRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<ScoresJudgementsRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.scores_judgements</code> table reference
|
* Create an aliased <code>public.scores_judgements</code> table reference
|
||||||
@ -130,29 +140,40 @@ open class ScoresJudgements(
|
|||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("scores_judgements"), null)
|
constructor(): this(DSL.name("scores_judgements"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, ScoresJudgementsRecord>): this(Internal.createPathAlias(child, key), child, key, SCORES_JUDGEMENTS, null)
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, ScoresJudgementsRecord>?, parentPath: InverseForeignKey<out Record, ScoresJudgementsRecord>?): this(Internal.createPathAlias(path, childPath, parentPath), path, childPath, parentPath, SCORES_JUDGEMENTS, null, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||||
|
*/
|
||||||
|
open class ScoresJudgementsPath : ScoresJudgements, Path<ScoresJudgementsRecord> {
|
||||||
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, ScoresJudgementsRecord>?, parentPath: InverseForeignKey<out Record, ScoresJudgementsRecord>?): super(path, childPath, parentPath)
|
||||||
|
private constructor(alias: Name, aliased: Table<ScoresJudgementsRecord>): super(alias, aliased)
|
||||||
|
override fun `as`(alias: String): ScoresJudgementsPath = ScoresJudgementsPath(DSL.name(alias), this)
|
||||||
|
override fun `as`(alias: Name): ScoresJudgementsPath = ScoresJudgementsPath(alias, this)
|
||||||
|
override fun `as`(alias: Table<*>): ScoresJudgementsPath = ScoresJudgementsPath(alias.qualifiedName, this)
|
||||||
|
}
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIndexes(): List<Index> = listOf(IDX_SCORES_JUDGEMENTS_SCORE_ID)
|
override fun getIndexes(): List<Index> = listOf(IDX_SCORES_JUDGEMENTS_SCORE_ID)
|
||||||
override fun getPrimaryKey(): UniqueKey<ScoresJudgementsRecord> = SCORES_JUDGEMENTS_PKEY
|
override fun getPrimaryKey(): UniqueKey<ScoresJudgementsRecord> = SCORES_JUDGEMENTS_PKEY
|
||||||
override fun getReferences(): List<ForeignKey<ScoresJudgementsRecord, *>> = listOf(SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY)
|
override fun getReferences(): List<ForeignKey<ScoresJudgementsRecord, *>> = listOf(SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY)
|
||||||
|
|
||||||
private lateinit var _scores: Scores
|
private lateinit var _scores: ScoresPath
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the implicit join path to the <code>public.scores</code> table.
|
* Get the implicit join path to the <code>public.scores</code> table.
|
||||||
*/
|
*/
|
||||||
fun scores(): Scores {
|
fun scores(): ScoresPath {
|
||||||
if (!this::_scores.isInitialized)
|
if (!this::_scores.isInitialized)
|
||||||
_scores = Scores(this, SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY)
|
_scores = ScoresPath(this, SCORES_JUDGEMENTS__SCORES_JUDGEMENTS_SCORE_ID_FKEY, null)
|
||||||
|
|
||||||
return _scores;
|
return _scores;
|
||||||
}
|
}
|
||||||
|
|
||||||
val scores: Scores
|
val scores: ScoresPath
|
||||||
get(): Scores = scores()
|
get(): ScoresPath = scores()
|
||||||
override fun `as`(alias: String): ScoresJudgements = ScoresJudgements(DSL.name(alias), this)
|
override fun `as`(alias: String): ScoresJudgements = ScoresJudgements(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): ScoresJudgements = ScoresJudgements(alias, this)
|
override fun `as`(alias: Name): ScoresJudgements = ScoresJudgements(alias, this)
|
||||||
override fun `as`(alias: Table<*>): ScoresJudgements = ScoresJudgements(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): ScoresJudgements = ScoresJudgements(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -167,21 +188,55 @@ open class ScoresJudgements(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): ScoresJudgements = ScoresJudgements(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): ScoresJudgements = ScoresJudgements(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row9 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row9<Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?> = super.fieldsRow() as Row9<Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): ScoresJudgements = ScoresJudgements(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): ScoresJudgements = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): ScoresJudgements = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): ScoresJudgements = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): ScoresJudgements = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): ScoresJudgements = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): ScoresJudgements = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): ScoresJudgements = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): ScoresJudgements = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): ScoresJudgements = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,25 +12,28 @@ import com.nisemoe.generated.keys.UNIQUE_BEATMAP_REPLAY_IDS
|
|||||||
import com.nisemoe.generated.tables.records.ScoresSimilarityRecord
|
import com.nisemoe.generated.tables.records.ScoresSimilarityRecord
|
||||||
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.util.function.Function
|
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
import kotlin.collections.List
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Index
|
import org.jooq.Index
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row10
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
import org.jooq.UniqueKey
|
import org.jooq.UniqueKey
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
import org.jooq.impl.Internal
|
|
||||||
import org.jooq.impl.SQLDataType
|
import org.jooq.impl.SQLDataType
|
||||||
import org.jooq.impl.TableImpl
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
@ -41,19 +44,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class ScoresSimilarity(
|
open class ScoresSimilarity(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, ScoresSimilarityRecord>?,
|
childPath: ForeignKey<out Record, ScoresSimilarityRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, ScoresSimilarityRecord>?,
|
||||||
aliased: Table<ScoresSimilarityRecord>?,
|
aliased: Table<ScoresSimilarityRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<ScoresSimilarityRecord>(
|
): TableImpl<ScoresSimilarityRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -119,8 +126,9 @@ open class ScoresSimilarity(
|
|||||||
*/
|
*/
|
||||||
val CG_CORRELATION: TableField<ScoresSimilarityRecord, Double?> = createField(DSL.name("cg_correlation"), SQLDataType.DOUBLE, this, "")
|
val CG_CORRELATION: TableField<ScoresSimilarityRecord, Double?> = createField(DSL.name("cg_correlation"), SQLDataType.DOUBLE, this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<ScoresSimilarityRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<ScoresSimilarityRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<ScoresSimilarityRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<ScoresSimilarityRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<ScoresSimilarityRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.scores_similarity</code> table reference
|
* Create an aliased <code>public.scores_similarity</code> table reference
|
||||||
@ -136,15 +144,13 @@ open class ScoresSimilarity(
|
|||||||
* Create a <code>public.scores_similarity</code> table reference
|
* Create a <code>public.scores_similarity</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("scores_similarity"), null)
|
constructor(): this(DSL.name("scores_similarity"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, ScoresSimilarityRecord>): this(Internal.createPathAlias(child, key), child, key, SCORES_SIMILARITY, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIndexes(): List<Index> = listOf(IDX_REPLAY_IDS, IDX_REPLAY_IDS_PAIRS)
|
override fun getIndexes(): List<Index> = listOf(IDX_REPLAY_IDS, IDX_REPLAY_IDS_PAIRS)
|
||||||
override fun getPrimaryKey(): UniqueKey<ScoresSimilarityRecord> = SCORES_SIMILARITY_PKEY
|
override fun getPrimaryKey(): UniqueKey<ScoresSimilarityRecord> = SCORES_SIMILARITY_PKEY
|
||||||
override fun getUniqueKeys(): List<UniqueKey<ScoresSimilarityRecord>> = listOf(UNIQUE_BEATMAP_REPLAY_IDS)
|
override fun getUniqueKeys(): List<UniqueKey<ScoresSimilarityRecord>> = listOf(UNIQUE_BEATMAP_REPLAY_IDS)
|
||||||
override fun `as`(alias: String): ScoresSimilarity = ScoresSimilarity(DSL.name(alias), this)
|
override fun `as`(alias: String): ScoresSimilarity = ScoresSimilarity(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): ScoresSimilarity = ScoresSimilarity(alias, this)
|
override fun `as`(alias: Name): ScoresSimilarity = ScoresSimilarity(alias, this)
|
||||||
override fun `as`(alias: Table<*>): ScoresSimilarity = ScoresSimilarity(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): ScoresSimilarity = ScoresSimilarity(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -159,21 +165,55 @@ open class ScoresSimilarity(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): ScoresSimilarity = ScoresSimilarity(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): ScoresSimilarity = ScoresSimilarity(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row10 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row10<Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?> = super.fieldsRow() as Row10<Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): ScoresSimilarity = ScoresSimilarity(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): ScoresSimilarity = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): ScoresSimilarity = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): ScoresSimilarity = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): ScoresSimilarity = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): ScoresSimilarity = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): ScoresSimilarity = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): ScoresSimilarity = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): ScoresSimilarity = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): ScoresSimilarity = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,23 +10,27 @@ import com.nisemoe.generated.tables.records.UpdateUserQueueRecord
|
|||||||
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.function.Function
|
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Identity
|
import org.jooq.Identity
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row9
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
import org.jooq.UniqueKey
|
import org.jooq.UniqueKey
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
import org.jooq.impl.Internal
|
|
||||||
import org.jooq.impl.SQLDataType
|
import org.jooq.impl.SQLDataType
|
||||||
import org.jooq.impl.TableImpl
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
@ -37,19 +41,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UpdateUserQueue(
|
open class UpdateUserQueue(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, UpdateUserQueueRecord>?,
|
childPath: ForeignKey<out Record, UpdateUserQueueRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, UpdateUserQueueRecord>?,
|
||||||
aliased: Table<UpdateUserQueueRecord>?,
|
aliased: Table<UpdateUserQueueRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<UpdateUserQueueRecord>(
|
): TableImpl<UpdateUserQueueRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -109,8 +117,9 @@ open class UpdateUserQueue(
|
|||||||
*/
|
*/
|
||||||
val HAS_FAILED: TableField<UpdateUserQueueRecord, Boolean?> = createField(DSL.name("has_failed"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "")
|
val HAS_FAILED: TableField<UpdateUserQueueRecord, Boolean?> = createField(DSL.name("has_failed"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<UpdateUserQueueRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<UpdateUserQueueRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<UpdateUserQueueRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<UpdateUserQueueRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<UpdateUserQueueRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.update_user_queue</code> table reference
|
* Create an aliased <code>public.update_user_queue</code> table reference
|
||||||
@ -126,14 +135,12 @@ open class UpdateUserQueue(
|
|||||||
* Create a <code>public.update_user_queue</code> table reference
|
* Create a <code>public.update_user_queue</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("update_user_queue"), null)
|
constructor(): this(DSL.name("update_user_queue"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, UpdateUserQueueRecord>): this(Internal.createPathAlias(child, key), child, key, UPDATE_USER_QUEUE, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIdentity(): Identity<UpdateUserQueueRecord, Int?> = super.getIdentity() as Identity<UpdateUserQueueRecord, Int?>
|
override fun getIdentity(): Identity<UpdateUserQueueRecord, Int?> = super.getIdentity() as Identity<UpdateUserQueueRecord, Int?>
|
||||||
override fun getPrimaryKey(): UniqueKey<UpdateUserQueueRecord> = UPDATE_USER_QUEUE_PKEY
|
override fun getPrimaryKey(): UniqueKey<UpdateUserQueueRecord> = UPDATE_USER_QUEUE_PKEY
|
||||||
override fun `as`(alias: String): UpdateUserQueue = UpdateUserQueue(DSL.name(alias), this)
|
override fun `as`(alias: String): UpdateUserQueue = UpdateUserQueue(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): UpdateUserQueue = UpdateUserQueue(alias, this)
|
override fun `as`(alias: Name): UpdateUserQueue = UpdateUserQueue(alias, this)
|
||||||
override fun `as`(alias: Table<*>): UpdateUserQueue = UpdateUserQueue(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): UpdateUserQueue = UpdateUserQueue(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -148,21 +155,55 @@ open class UpdateUserQueue(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): UpdateUserQueue = UpdateUserQueue(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): UpdateUserQueue = UpdateUserQueue(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row9 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row9<Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?> = super.fieldsRow() as Row9<Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): UpdateUserQueue = UpdateUserQueue(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): UpdateUserQueue = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): UpdateUserQueue = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): UpdateUserQueue = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): UpdateUserQueue = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): UpdateUserQueue = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): UpdateUserQueue = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): UpdateUserQueue = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): UpdateUserQueue = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): UpdateUserQueue = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,21 +8,26 @@ import com.nisemoe.generated.Public
|
|||||||
import com.nisemoe.generated.keys.USER_FOLLOWS_PKEY
|
import com.nisemoe.generated.keys.USER_FOLLOWS_PKEY
|
||||||
import com.nisemoe.generated.keys.USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY
|
import com.nisemoe.generated.keys.USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY
|
||||||
import com.nisemoe.generated.keys.USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY
|
import com.nisemoe.generated.keys.USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY
|
||||||
|
import com.nisemoe.generated.tables.Users.UsersPath
|
||||||
import com.nisemoe.generated.tables.records.UserFollowsRecord
|
import com.nisemoe.generated.tables.records.UserFollowsRecord
|
||||||
|
|
||||||
import java.util.function.Function
|
import kotlin.collections.Collection
|
||||||
|
|
||||||
import kotlin.collections.List
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Identity
|
import org.jooq.Identity
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.Path
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row2
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
@ -39,19 +44,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UserFollows(
|
open class UserFollows(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, UserFollowsRecord>?,
|
childPath: ForeignKey<out Record, UserFollowsRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, UserFollowsRecord>?,
|
||||||
aliased: Table<UserFollowsRecord>?,
|
aliased: Table<UserFollowsRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<UserFollowsRecord>(
|
): TableImpl<UserFollowsRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -76,8 +85,9 @@ open class UserFollows(
|
|||||||
*/
|
*/
|
||||||
val FOLLOWS_USER_ID: TableField<UserFollowsRecord, Long?> = createField(DSL.name("follows_user_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "")
|
val FOLLOWS_USER_ID: TableField<UserFollowsRecord, Long?> = createField(DSL.name("follows_user_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<UserFollowsRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<UserFollowsRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<UserFollowsRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<UserFollowsRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<UserFollowsRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.user_follows</code> table reference
|
* Create an aliased <code>public.user_follows</code> table reference
|
||||||
@ -94,45 +104,57 @@ open class UserFollows(
|
|||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("user_follows"), null)
|
constructor(): this(DSL.name("user_follows"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, UserFollowsRecord>): this(Internal.createPathAlias(child, key), child, key, USER_FOLLOWS, null)
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, UserFollowsRecord>?, parentPath: InverseForeignKey<out Record, UserFollowsRecord>?): this(Internal.createPathAlias(path, childPath, parentPath), path, childPath, parentPath, USER_FOLLOWS, null, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||||
|
*/
|
||||||
|
open class UserFollowsPath : UserFollows, Path<UserFollowsRecord> {
|
||||||
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, UserFollowsRecord>?, parentPath: InverseForeignKey<out Record, UserFollowsRecord>?): super(path, childPath, parentPath)
|
||||||
|
private constructor(alias: Name, aliased: Table<UserFollowsRecord>): super(alias, aliased)
|
||||||
|
override fun `as`(alias: String): UserFollowsPath = UserFollowsPath(DSL.name(alias), this)
|
||||||
|
override fun `as`(alias: Name): UserFollowsPath = UserFollowsPath(alias, this)
|
||||||
|
override fun `as`(alias: Table<*>): UserFollowsPath = UserFollowsPath(alias.qualifiedName, this)
|
||||||
|
}
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIdentity(): Identity<UserFollowsRecord, Long?> = super.getIdentity() as Identity<UserFollowsRecord, Long?>
|
override fun getIdentity(): Identity<UserFollowsRecord, Long?> = super.getIdentity() as Identity<UserFollowsRecord, Long?>
|
||||||
override fun getPrimaryKey(): UniqueKey<UserFollowsRecord> = USER_FOLLOWS_PKEY
|
override fun getPrimaryKey(): UniqueKey<UserFollowsRecord> = USER_FOLLOWS_PKEY
|
||||||
override fun getReferences(): List<ForeignKey<UserFollowsRecord, *>> = listOf(USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY, USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY)
|
override fun getReferences(): List<ForeignKey<UserFollowsRecord, *>> = listOf(USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY, USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY)
|
||||||
|
|
||||||
private lateinit var _userFollowsUserIdFkey: Users
|
private lateinit var _userFollowsUserIdFkey: UsersPath
|
||||||
private lateinit var _userFollowsFollowsUserIdFkey: Users
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the implicit join path to the <code>public.users</code> table, via
|
* Get the implicit join path to the <code>public.users</code> table, via
|
||||||
* the <code>user_follows_user_id_fkey</code> key.
|
* the <code>user_follows_user_id_fkey</code> key.
|
||||||
*/
|
*/
|
||||||
fun userFollowsUserIdFkey(): Users {
|
fun userFollowsUserIdFkey(): UsersPath {
|
||||||
if (!this::_userFollowsUserIdFkey.isInitialized)
|
if (!this::_userFollowsUserIdFkey.isInitialized)
|
||||||
_userFollowsUserIdFkey = Users(this, USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY)
|
_userFollowsUserIdFkey = UsersPath(this, USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY, null)
|
||||||
|
|
||||||
return _userFollowsUserIdFkey;
|
return _userFollowsUserIdFkey;
|
||||||
}
|
}
|
||||||
|
|
||||||
val userFollowsUserIdFkey: Users
|
val userFollowsUserIdFkey: UsersPath
|
||||||
get(): Users = userFollowsUserIdFkey()
|
get(): UsersPath = userFollowsUserIdFkey()
|
||||||
|
|
||||||
|
private lateinit var _userFollowsFollowsUserIdFkey: UsersPath
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the implicit join path to the <code>public.users</code> table, via
|
* Get the implicit join path to the <code>public.users</code> table, via
|
||||||
* the <code>user_follows_follows_user_id_fkey</code> key.
|
* the <code>user_follows_follows_user_id_fkey</code> key.
|
||||||
*/
|
*/
|
||||||
fun userFollowsFollowsUserIdFkey(): Users {
|
fun userFollowsFollowsUserIdFkey(): UsersPath {
|
||||||
if (!this::_userFollowsFollowsUserIdFkey.isInitialized)
|
if (!this::_userFollowsFollowsUserIdFkey.isInitialized)
|
||||||
_userFollowsFollowsUserIdFkey = Users(this, USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY)
|
_userFollowsFollowsUserIdFkey = UsersPath(this, USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY, null)
|
||||||
|
|
||||||
return _userFollowsFollowsUserIdFkey;
|
return _userFollowsFollowsUserIdFkey;
|
||||||
}
|
}
|
||||||
|
|
||||||
val userFollowsFollowsUserIdFkey: Users
|
val userFollowsFollowsUserIdFkey: UsersPath
|
||||||
get(): Users = userFollowsFollowsUserIdFkey()
|
get(): UsersPath = userFollowsFollowsUserIdFkey()
|
||||||
override fun `as`(alias: String): UserFollows = UserFollows(DSL.name(alias), this)
|
override fun `as`(alias: String): UserFollows = UserFollows(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): UserFollows = UserFollows(alias, this)
|
override fun `as`(alias: Name): UserFollows = UserFollows(alias, this)
|
||||||
override fun `as`(alias: Table<*>): UserFollows = UserFollows(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): UserFollows = UserFollows(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -147,21 +169,55 @@ open class UserFollows(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): UserFollows = UserFollows(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): UserFollows = UserFollows(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row2 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row2<Long?, Long?> = super.fieldsRow() as Row2<Long?, Long?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Long?, Long?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): UserFollows = UserFollows(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Long?, Long?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): UserFollows = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): UserFollows = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): UserFollows = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): UserFollows = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): UserFollows = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): UserFollows = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): UserFollows = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): UserFollows = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): UserFollows = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,14 +10,22 @@ import com.nisemoe.generated.tables.records.UserScoresRecord
|
|||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
import kotlin.collections.List
|
import kotlin.collections.List
|
||||||
|
|
||||||
import org.jooq.Check
|
import org.jooq.Check
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
|
import org.jooq.SQL
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
@ -33,19 +41,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UserScores(
|
open class UserScores(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, UserScoresRecord>?,
|
childPath: ForeignKey<out Record, UserScoresRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, UserScoresRecord>?,
|
||||||
aliased: Table<UserScoresRecord>?,
|
aliased: Table<UserScoresRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<UserScoresRecord>(
|
): TableImpl<UserScoresRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -310,8 +322,9 @@ open class UserScores(
|
|||||||
*/
|
*/
|
||||||
val JUDGEMENTS: TableField<UserScoresRecord, ByteArray?> = createField(DSL.name("judgements"), SQLDataType.BLOB, this, "")
|
val JUDGEMENTS: TableField<UserScoresRecord, ByteArray?> = createField(DSL.name("judgements"), SQLDataType.BLOB, this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<UserScoresRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<UserScoresRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<UserScoresRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<UserScoresRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<UserScoresRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.user_scores</code> table reference
|
* Create an aliased <code>public.user_scores</code> table reference
|
||||||
@ -327,8 +340,6 @@ open class UserScores(
|
|||||||
* Create a <code>public.user_scores</code> table reference
|
* Create a <code>public.user_scores</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("user_scores"), null)
|
constructor(): this(DSL.name("user_scores"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, UserScoresRecord>): this(Internal.createPathAlias(child, key), child, key, USER_SCORES, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getChecks(): List<Check<UserScoresRecord>> = listOf(
|
override fun getChecks(): List<Check<UserScoresRecord>> = listOf(
|
||||||
Internal.createCheck(this, DSL.name("life_bar_graph_check"), "((octet_length(life_bar_graph) <= 524288))", true),
|
Internal.createCheck(this, DSL.name("life_bar_graph_check"), "((octet_length(life_bar_graph) <= 524288))", true),
|
||||||
@ -336,7 +347,7 @@ open class UserScores(
|
|||||||
)
|
)
|
||||||
override fun `as`(alias: String): UserScores = UserScores(DSL.name(alias), this)
|
override fun `as`(alias: String): UserScores = UserScores(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): UserScores = UserScores(alias, this)
|
override fun `as`(alias: Name): UserScores = UserScores(alias, this)
|
||||||
override fun `as`(alias: Table<*>): UserScores = UserScores(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): UserScores = UserScores(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -351,5 +362,55 @@ open class UserScores(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): UserScores = UserScores(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): UserScores = UserScores(name.qualifiedName, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Condition?): UserScores = UserScores(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(conditions: Collection<Condition>): UserScores = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): UserScores = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): UserScores = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): UserScores = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): UserScores = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): UserScores = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): UserScores = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): UserScores = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): UserScores = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,25 +11,28 @@ import com.nisemoe.generated.tables.records.UserScoresSimilarityRecord
|
|||||||
|
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
import java.util.function.Function
|
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
import kotlin.collections.List
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
import org.jooq.Identity
|
import org.jooq.Identity
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row9
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
import org.jooq.UniqueKey
|
import org.jooq.UniqueKey
|
||||||
import org.jooq.impl.DSL
|
import org.jooq.impl.DSL
|
||||||
import org.jooq.impl.Internal
|
|
||||||
import org.jooq.impl.SQLDataType
|
import org.jooq.impl.SQLDataType
|
||||||
import org.jooq.impl.TableImpl
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
@ -40,19 +43,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UserScoresSimilarity(
|
open class UserScoresSimilarity(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, UserScoresSimilarityRecord>?,
|
childPath: ForeignKey<out Record, UserScoresSimilarityRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, UserScoresSimilarityRecord>?,
|
||||||
aliased: Table<UserScoresSimilarityRecord>?,
|
aliased: Table<UserScoresSimilarityRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<UserScoresSimilarityRecord>(
|
): TableImpl<UserScoresSimilarityRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -112,8 +119,9 @@ open class UserScoresSimilarity(
|
|||||||
*/
|
*/
|
||||||
val CG_CORRELATION: TableField<UserScoresSimilarityRecord, Double?> = createField(DSL.name("cg_correlation"), SQLDataType.DOUBLE, this, "")
|
val CG_CORRELATION: TableField<UserScoresSimilarityRecord, Double?> = createField(DSL.name("cg_correlation"), SQLDataType.DOUBLE, this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<UserScoresSimilarityRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<UserScoresSimilarityRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<UserScoresSimilarityRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<UserScoresSimilarityRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<UserScoresSimilarityRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.user_scores_similarity</code> table
|
* Create an aliased <code>public.user_scores_similarity</code> table
|
||||||
@ -131,15 +139,13 @@ open class UserScoresSimilarity(
|
|||||||
* Create a <code>public.user_scores_similarity</code> table reference
|
* Create a <code>public.user_scores_similarity</code> table reference
|
||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("user_scores_similarity"), null)
|
constructor(): this(DSL.name("user_scores_similarity"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, UserScoresSimilarityRecord>): this(Internal.createPathAlias(child, key), child, key, USER_SCORES_SIMILARITY, null)
|
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
override fun getIdentity(): Identity<UserScoresSimilarityRecord, Int?> = super.getIdentity() as Identity<UserScoresSimilarityRecord, Int?>
|
override fun getIdentity(): Identity<UserScoresSimilarityRecord, Int?> = super.getIdentity() as Identity<UserScoresSimilarityRecord, Int?>
|
||||||
override fun getPrimaryKey(): UniqueKey<UserScoresSimilarityRecord> = USER_SCORES_SIMILARITY_PKEY
|
override fun getPrimaryKey(): UniqueKey<UserScoresSimilarityRecord> = USER_SCORES_SIMILARITY_PKEY
|
||||||
override fun getUniqueKeys(): List<UniqueKey<UserScoresSimilarityRecord>> = listOf(USER_SCORES_UNIQUE_BEATMAP_REPLAY_IDS)
|
override fun getUniqueKeys(): List<UniqueKey<UserScoresSimilarityRecord>> = listOf(USER_SCORES_UNIQUE_BEATMAP_REPLAY_IDS)
|
||||||
override fun `as`(alias: String): UserScoresSimilarity = UserScoresSimilarity(DSL.name(alias), this)
|
override fun `as`(alias: String): UserScoresSimilarity = UserScoresSimilarity(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): UserScoresSimilarity = UserScoresSimilarity(alias, this)
|
override fun `as`(alias: Name): UserScoresSimilarity = UserScoresSimilarity(alias, this)
|
||||||
override fun `as`(alias: Table<*>): UserScoresSimilarity = UserScoresSimilarity(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): UserScoresSimilarity = UserScoresSimilarity(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -154,21 +160,55 @@ open class UserScoresSimilarity(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): UserScoresSimilarity = UserScoresSimilarity(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): UserScoresSimilarity = UserScoresSimilarity(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row9 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row9<Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?> = super.fieldsRow() as Row9<Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): UserScoresSimilarity = UserScoresSimilarity(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): UserScoresSimilarity = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): UserScoresSimilarity = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): UserScoresSimilarity = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): UserScoresSimilarity = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): UserScoresSimilarity = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): UserScoresSimilarity = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): UserScoresSimilarity = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): UserScoresSimilarity = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): UserScoresSimilarity = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,21 +5,34 @@ package com.nisemoe.generated.tables
|
|||||||
|
|
||||||
|
|
||||||
import com.nisemoe.generated.Public
|
import com.nisemoe.generated.Public
|
||||||
|
import com.nisemoe.generated.indexes.IDX_USERS_IS_BANNED_FALSE
|
||||||
|
import com.nisemoe.generated.indexes.IDX_USERS_IS_BANNED_TRUE
|
||||||
import com.nisemoe.generated.keys.USERS_PKEY
|
import com.nisemoe.generated.keys.USERS_PKEY
|
||||||
|
import com.nisemoe.generated.keys.USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY
|
||||||
|
import com.nisemoe.generated.keys.USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY
|
||||||
|
import com.nisemoe.generated.tables.UserFollows.UserFollowsPath
|
||||||
import com.nisemoe.generated.tables.records.UsersRecord
|
import com.nisemoe.generated.tables.records.UsersRecord
|
||||||
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.function.Function
|
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
import org.jooq.Field
|
import org.jooq.Field
|
||||||
import org.jooq.ForeignKey
|
import org.jooq.ForeignKey
|
||||||
|
import org.jooq.Index
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
import org.jooq.Name
|
import org.jooq.Name
|
||||||
|
import org.jooq.Path
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
import org.jooq.Record
|
import org.jooq.Record
|
||||||
import org.jooq.Records
|
import org.jooq.SQL
|
||||||
import org.jooq.Row20
|
|
||||||
import org.jooq.Schema
|
import org.jooq.Schema
|
||||||
import org.jooq.SelectField
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
import org.jooq.Table
|
import org.jooq.Table
|
||||||
import org.jooq.TableField
|
import org.jooq.TableField
|
||||||
import org.jooq.TableOptions
|
import org.jooq.TableOptions
|
||||||
@ -36,19 +49,23 @@ import org.jooq.impl.TableImpl
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class Users(
|
open class Users(
|
||||||
alias: Name,
|
alias: Name,
|
||||||
child: Table<out Record>?,
|
path: Table<out Record>?,
|
||||||
path: ForeignKey<out Record, UsersRecord>?,
|
childPath: ForeignKey<out Record, UsersRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, UsersRecord>?,
|
||||||
aliased: Table<UsersRecord>?,
|
aliased: Table<UsersRecord>?,
|
||||||
parameters: Array<Field<*>?>?
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
): TableImpl<UsersRecord>(
|
): TableImpl<UsersRecord>(
|
||||||
alias,
|
alias,
|
||||||
Public.PUBLIC,
|
Public.PUBLIC,
|
||||||
child,
|
|
||||||
path,
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
aliased,
|
aliased,
|
||||||
parameters,
|
parameters,
|
||||||
DSL.comment(""),
|
DSL.comment(""),
|
||||||
TableOptions.table()
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
@ -163,8 +180,9 @@ open class Users(
|
|||||||
*/
|
*/
|
||||||
val APPROX_BAN_DATE: TableField<UsersRecord, OffsetDateTime?> = createField(DSL.name("approx_ban_date"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "")
|
val APPROX_BAN_DATE: TableField<UsersRecord, OffsetDateTime?> = createField(DSL.name("approx_ban_date"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "")
|
||||||
|
|
||||||
private constructor(alias: Name, aliased: Table<UsersRecord>?): this(alias, null, null, aliased, null)
|
private constructor(alias: Name, aliased: Table<UsersRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
private constructor(alias: Name, aliased: Table<UsersRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, aliased, parameters)
|
private constructor(alias: Name, aliased: Table<UsersRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<UsersRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an aliased <code>public.users</code> table reference
|
* Create an aliased <code>public.users</code> table reference
|
||||||
@ -181,12 +199,58 @@ open class Users(
|
|||||||
*/
|
*/
|
||||||
constructor(): this(DSL.name("users"), null)
|
constructor(): this(DSL.name("users"), null)
|
||||||
|
|
||||||
constructor(child: Table<out Record>, key: ForeignKey<out Record, UsersRecord>): this(Internal.createPathAlias(child, key), child, key, USERS, null)
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, UsersRecord>?, parentPath: InverseForeignKey<out Record, UsersRecord>?): this(Internal.createPathAlias(path, childPath, parentPath), path, childPath, parentPath, USERS, null, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||||
|
*/
|
||||||
|
open class UsersPath : Users, Path<UsersRecord> {
|
||||||
|
constructor(path: Table<out Record>, childPath: ForeignKey<out Record, UsersRecord>?, parentPath: InverseForeignKey<out Record, UsersRecord>?): super(path, childPath, parentPath)
|
||||||
|
private constructor(alias: Name, aliased: Table<UsersRecord>): super(alias, aliased)
|
||||||
|
override fun `as`(alias: String): UsersPath = UsersPath(DSL.name(alias), this)
|
||||||
|
override fun `as`(alias: Name): UsersPath = UsersPath(alias, this)
|
||||||
|
override fun `as`(alias: Table<*>): UsersPath = UsersPath(alias.qualifiedName, this)
|
||||||
|
}
|
||||||
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
|
override fun getIndexes(): List<Index> = listOf(IDX_USERS_IS_BANNED_FALSE, IDX_USERS_IS_BANNED_TRUE)
|
||||||
override fun getPrimaryKey(): UniqueKey<UsersRecord> = USERS_PKEY
|
override fun getPrimaryKey(): UniqueKey<UsersRecord> = USERS_PKEY
|
||||||
|
|
||||||
|
private lateinit var _userFollowsFollowsUserIdFkey: UserFollowsPath
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the implicit to-many join path to the
|
||||||
|
* <code>public.user_follows</code> table, via the
|
||||||
|
* <code>user_follows_follows_user_id_fkey</code> key
|
||||||
|
*/
|
||||||
|
fun userFollowsFollowsUserIdFkey(): UserFollowsPath {
|
||||||
|
if (!this::_userFollowsFollowsUserIdFkey.isInitialized)
|
||||||
|
_userFollowsFollowsUserIdFkey = UserFollowsPath(this, null, USER_FOLLOWS__USER_FOLLOWS_FOLLOWS_USER_ID_FKEY.inverseKey)
|
||||||
|
|
||||||
|
return _userFollowsFollowsUserIdFkey;
|
||||||
|
}
|
||||||
|
|
||||||
|
val userFollowsFollowsUserIdFkey: UserFollowsPath
|
||||||
|
get(): UserFollowsPath = userFollowsFollowsUserIdFkey()
|
||||||
|
|
||||||
|
private lateinit var _userFollowsUserIdFkey: UserFollowsPath
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the implicit to-many join path to the
|
||||||
|
* <code>public.user_follows</code> table, via the
|
||||||
|
* <code>user_follows_user_id_fkey</code> key
|
||||||
|
*/
|
||||||
|
fun userFollowsUserIdFkey(): UserFollowsPath {
|
||||||
|
if (!this::_userFollowsUserIdFkey.isInitialized)
|
||||||
|
_userFollowsUserIdFkey = UserFollowsPath(this, null, USER_FOLLOWS__USER_FOLLOWS_USER_ID_FKEY.inverseKey)
|
||||||
|
|
||||||
|
return _userFollowsUserIdFkey;
|
||||||
|
}
|
||||||
|
|
||||||
|
val userFollowsUserIdFkey: UserFollowsPath
|
||||||
|
get(): UserFollowsPath = userFollowsUserIdFkey()
|
||||||
override fun `as`(alias: String): Users = Users(DSL.name(alias), this)
|
override fun `as`(alias: String): Users = Users(DSL.name(alias), this)
|
||||||
override fun `as`(alias: Name): Users = Users(alias, this)
|
override fun `as`(alias: Name): Users = Users(alias, this)
|
||||||
override fun `as`(alias: Table<*>): Users = Users(alias.getQualifiedName(), this)
|
override fun `as`(alias: Table<*>): Users = Users(alias.qualifiedName, this)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
@ -201,21 +265,55 @@ open class Users(
|
|||||||
/**
|
/**
|
||||||
* Rename this table
|
* Rename this table
|
||||||
*/
|
*/
|
||||||
override fun rename(name: Table<*>): Users = Users(name.getQualifiedName(), null)
|
override fun rename(name: Table<*>): Users = Users(name.qualifiedName, null)
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Row20 type methods
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
override fun fieldsRow(): Row20<Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?> = super.fieldsRow() as Row20<Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
|
* Create an inline derived table from this table
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(from: (Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?) -> U): SelectField<U> = convertFrom(Records.mapping(from))
|
override fun where(condition: Condition?): Users = Users(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience mapping calling {@link SelectField#convertFrom(Class,
|
* Create an inline derived table from this table
|
||||||
* Function)}.
|
|
||||||
*/
|
*/
|
||||||
fun <U> mapping(toType: Class<U>, from: (Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?) -> U): SelectField<U> = convertFrom(toType, Records.mapping(from))
|
override fun where(conditions: Collection<Condition>): Users = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): Users = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): Users = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): Users = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): Users = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): Users = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): Users = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): Users = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): Users = where(DSL.notExists(select))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,10 +8,7 @@ import com.nisemoe.generated.tables.Beatmaps
|
|||||||
|
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record22
|
|
||||||
import org.jooq.Row22
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +16,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class BeatmapsRecord private constructor() : UpdatableRecordImpl<BeatmapsRecord>(Beatmaps.BEATMAPS), Record22<Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?> {
|
open class BeatmapsRecord private constructor() : UpdatableRecordImpl<BeatmapsRecord>(Beatmaps.BEATMAPS) {
|
||||||
|
|
||||||
open var beatmapId: Int?
|
open var beatmapId: Int?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -115,215 +112,6 @@ open class BeatmapsRecord private constructor() : UpdatableRecordImpl<BeatmapsRe
|
|||||||
|
|
||||||
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record22 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row22<Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?> = super.fieldsRow() as Row22<Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?>
|
|
||||||
override fun valuesRow(): Row22<Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?> = super.valuesRow() as Row22<Int?, String?, Int?, String?, String?, Double?, String?, String?, OffsetDateTime?, String?, String?, String?, Int?, Double?, Double?, Double?, Double?, Double?, Int?, Int?, Int?, Int?>
|
|
||||||
override fun field1(): Field<Int?> = Beatmaps.BEATMAPS.BEATMAP_ID
|
|
||||||
override fun field2(): Field<String?> = Beatmaps.BEATMAPS.ARTIST
|
|
||||||
override fun field3(): Field<Int?> = Beatmaps.BEATMAPS.BEATMAPSET_ID
|
|
||||||
override fun field4(): Field<String?> = Beatmaps.BEATMAPS.CREATOR
|
|
||||||
override fun field5(): Field<String?> = Beatmaps.BEATMAPS.SOURCE
|
|
||||||
override fun field6(): Field<Double?> = Beatmaps.BEATMAPS.STAR_RATING
|
|
||||||
override fun field7(): Field<String?> = Beatmaps.BEATMAPS.TITLE
|
|
||||||
override fun field8(): Field<String?> = Beatmaps.BEATMAPS.VERSION
|
|
||||||
override fun field9(): Field<OffsetDateTime?> = Beatmaps.BEATMAPS.SYS_LAST_UPDATE
|
|
||||||
override fun field10(): Field<String?> = Beatmaps.BEATMAPS.LAST_REPLAY_CHECK
|
|
||||||
override fun field11(): Field<String?> = Beatmaps.BEATMAPS.BEATMAP_FILE
|
|
||||||
override fun field12(): Field<String?> = Beatmaps.BEATMAPS.BEATMAP_HASH
|
|
||||||
override fun field13(): Field<Int?> = Beatmaps.BEATMAPS.TOTAL_LENGTH
|
|
||||||
override fun field14(): Field<Double?> = Beatmaps.BEATMAPS.BPM
|
|
||||||
override fun field15(): Field<Double?> = Beatmaps.BEATMAPS.ACCURACY
|
|
||||||
override fun field16(): Field<Double?> = Beatmaps.BEATMAPS.AR
|
|
||||||
override fun field17(): Field<Double?> = Beatmaps.BEATMAPS.CS
|
|
||||||
override fun field18(): Field<Double?> = Beatmaps.BEATMAPS.DRAIN
|
|
||||||
override fun field19(): Field<Int?> = Beatmaps.BEATMAPS.COUNT_CIRCLES
|
|
||||||
override fun field20(): Field<Int?> = Beatmaps.BEATMAPS.COUNT_SLIDERS
|
|
||||||
override fun field21(): Field<Int?> = Beatmaps.BEATMAPS.COUNT_SPINNERS
|
|
||||||
override fun field22(): Field<Int?> = Beatmaps.BEATMAPS.MAX_COMBO
|
|
||||||
override fun component1(): Int? = beatmapId
|
|
||||||
override fun component2(): String? = artist
|
|
||||||
override fun component3(): Int? = beatmapsetId
|
|
||||||
override fun component4(): String? = creator
|
|
||||||
override fun component5(): String? = source
|
|
||||||
override fun component6(): Double? = starRating
|
|
||||||
override fun component7(): String? = title
|
|
||||||
override fun component8(): String? = version
|
|
||||||
override fun component9(): OffsetDateTime? = sysLastUpdate
|
|
||||||
override fun component10(): String? = lastReplayCheck
|
|
||||||
override fun component11(): String? = beatmapFile
|
|
||||||
override fun component12(): String? = beatmapHash
|
|
||||||
override fun component13(): Int? = totalLength
|
|
||||||
override fun component14(): Double? = bpm
|
|
||||||
override fun component15(): Double? = accuracy
|
|
||||||
override fun component16(): Double? = ar
|
|
||||||
override fun component17(): Double? = cs
|
|
||||||
override fun component18(): Double? = drain
|
|
||||||
override fun component19(): Int? = countCircles
|
|
||||||
override fun component20(): Int? = countSliders
|
|
||||||
override fun component21(): Int? = countSpinners
|
|
||||||
override fun component22(): Int? = maxCombo
|
|
||||||
override fun value1(): Int? = beatmapId
|
|
||||||
override fun value2(): String? = artist
|
|
||||||
override fun value3(): Int? = beatmapsetId
|
|
||||||
override fun value4(): String? = creator
|
|
||||||
override fun value5(): String? = source
|
|
||||||
override fun value6(): Double? = starRating
|
|
||||||
override fun value7(): String? = title
|
|
||||||
override fun value8(): String? = version
|
|
||||||
override fun value9(): OffsetDateTime? = sysLastUpdate
|
|
||||||
override fun value10(): String? = lastReplayCheck
|
|
||||||
override fun value11(): String? = beatmapFile
|
|
||||||
override fun value12(): String? = beatmapHash
|
|
||||||
override fun value13(): Int? = totalLength
|
|
||||||
override fun value14(): Double? = bpm
|
|
||||||
override fun value15(): Double? = accuracy
|
|
||||||
override fun value16(): Double? = ar
|
|
||||||
override fun value17(): Double? = cs
|
|
||||||
override fun value18(): Double? = drain
|
|
||||||
override fun value19(): Int? = countCircles
|
|
||||||
override fun value20(): Int? = countSliders
|
|
||||||
override fun value21(): Int? = countSpinners
|
|
||||||
override fun value22(): Int? = maxCombo
|
|
||||||
|
|
||||||
override fun value1(value: Int?): BeatmapsRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: String?): BeatmapsRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: Int?): BeatmapsRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: String?): BeatmapsRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: String?): BeatmapsRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value6(value: Double?): BeatmapsRecord {
|
|
||||||
set(5, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value7(value: String?): BeatmapsRecord {
|
|
||||||
set(6, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value8(value: String?): BeatmapsRecord {
|
|
||||||
set(7, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value9(value: OffsetDateTime?): BeatmapsRecord {
|
|
||||||
set(8, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value10(value: String?): BeatmapsRecord {
|
|
||||||
set(9, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value11(value: String?): BeatmapsRecord {
|
|
||||||
set(10, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value12(value: String?): BeatmapsRecord {
|
|
||||||
set(11, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value13(value: Int?): BeatmapsRecord {
|
|
||||||
set(12, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value14(value: Double?): BeatmapsRecord {
|
|
||||||
set(13, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value15(value: Double?): BeatmapsRecord {
|
|
||||||
set(14, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value16(value: Double?): BeatmapsRecord {
|
|
||||||
set(15, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value17(value: Double?): BeatmapsRecord {
|
|
||||||
set(16, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value18(value: Double?): BeatmapsRecord {
|
|
||||||
set(17, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value19(value: Int?): BeatmapsRecord {
|
|
||||||
set(18, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value20(value: Int?): BeatmapsRecord {
|
|
||||||
set(19, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value21(value: Int?): BeatmapsRecord {
|
|
||||||
set(20, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value22(value: Int?): BeatmapsRecord {
|
|
||||||
set(21, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Int?, value2: String?, value3: Int?, value4: String?, value5: String?, value6: Double?, value7: String?, value8: String?, value9: OffsetDateTime?, value10: String?, value11: String?, value12: String?, value13: Int?, value14: Double?, value15: Double?, value16: Double?, value17: Double?, value18: Double?, value19: Int?, value20: Int?, value21: Int?, value22: Int?): BeatmapsRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
this.value6(value6)
|
|
||||||
this.value7(value7)
|
|
||||||
this.value8(value8)
|
|
||||||
this.value9(value9)
|
|
||||||
this.value10(value10)
|
|
||||||
this.value11(value11)
|
|
||||||
this.value12(value12)
|
|
||||||
this.value13(value13)
|
|
||||||
this.value14(value14)
|
|
||||||
this.value15(value15)
|
|
||||||
this.value16(value16)
|
|
||||||
this.value17(value17)
|
|
||||||
this.value18(value18)
|
|
||||||
this.value19(value19)
|
|
||||||
this.value20(value20)
|
|
||||||
this.value21(value21)
|
|
||||||
this.value22(value22)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised BeatmapsRecord
|
* Create a detached, initialised BeatmapsRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -8,10 +8,7 @@ import com.nisemoe.generated.tables.FlywaySchemaHistory
|
|||||||
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record10
|
|
||||||
import org.jooq.Row10
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +16,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class FlywaySchemaHistoryRecord private constructor() : UpdatableRecordImpl<FlywaySchemaHistoryRecord>(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY), Record10<Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?> {
|
open class FlywaySchemaHistoryRecord private constructor() : UpdatableRecordImpl<FlywaySchemaHistoryRecord>(FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY) {
|
||||||
|
|
||||||
open var installedRank: Int
|
open var installedRank: Int
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -67,107 +64,6 @@ open class FlywaySchemaHistoryRecord private constructor() : UpdatableRecordImpl
|
|||||||
|
|
||||||
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record10 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row10<Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?> = super.fieldsRow() as Row10<Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?>
|
|
||||||
override fun valuesRow(): Row10<Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?> = super.valuesRow() as Row10<Int?, String?, String?, String?, String?, Int?, String?, LocalDateTime?, Int?, Boolean?>
|
|
||||||
override fun field1(): Field<Int?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_RANK
|
|
||||||
override fun field2(): Field<String?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.VERSION
|
|
||||||
override fun field3(): Field<String?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.DESCRIPTION
|
|
||||||
override fun field4(): Field<String?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.TYPE
|
|
||||||
override fun field5(): Field<String?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.SCRIPT
|
|
||||||
override fun field6(): Field<Int?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.CHECKSUM
|
|
||||||
override fun field7(): Field<String?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_BY
|
|
||||||
override fun field8(): Field<LocalDateTime?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.INSTALLED_ON
|
|
||||||
override fun field9(): Field<Int?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.EXECUTION_TIME
|
|
||||||
override fun field10(): Field<Boolean?> = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY.SUCCESS
|
|
||||||
override fun component1(): Int = installedRank
|
|
||||||
override fun component2(): String? = version
|
|
||||||
override fun component3(): String = description
|
|
||||||
override fun component4(): String = type
|
|
||||||
override fun component5(): String = script
|
|
||||||
override fun component6(): Int? = checksum
|
|
||||||
override fun component7(): String = installedBy
|
|
||||||
override fun component8(): LocalDateTime? = installedOn
|
|
||||||
override fun component9(): Int = executionTime
|
|
||||||
override fun component10(): Boolean = success
|
|
||||||
override fun value1(): Int = installedRank
|
|
||||||
override fun value2(): String? = version
|
|
||||||
override fun value3(): String = description
|
|
||||||
override fun value4(): String = type
|
|
||||||
override fun value5(): String = script
|
|
||||||
override fun value6(): Int? = checksum
|
|
||||||
override fun value7(): String = installedBy
|
|
||||||
override fun value8(): LocalDateTime? = installedOn
|
|
||||||
override fun value9(): Int = executionTime
|
|
||||||
override fun value10(): Boolean = success
|
|
||||||
|
|
||||||
override fun value1(value: Int?): FlywaySchemaHistoryRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: String?): FlywaySchemaHistoryRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: String?): FlywaySchemaHistoryRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: String?): FlywaySchemaHistoryRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: String?): FlywaySchemaHistoryRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value6(value: Int?): FlywaySchemaHistoryRecord {
|
|
||||||
set(5, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value7(value: String?): FlywaySchemaHistoryRecord {
|
|
||||||
set(6, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value8(value: LocalDateTime?): FlywaySchemaHistoryRecord {
|
|
||||||
set(7, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value9(value: Int?): FlywaySchemaHistoryRecord {
|
|
||||||
set(8, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value10(value: Boolean?): FlywaySchemaHistoryRecord {
|
|
||||||
set(9, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Int?, value2: String?, value3: String?, value4: String?, value5: String?, value6: Int?, value7: String?, value8: LocalDateTime?, value9: Int?, value10: Boolean?): FlywaySchemaHistoryRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
this.value6(value6)
|
|
||||||
this.value7(value7)
|
|
||||||
this.value8(value8)
|
|
||||||
this.value9(value9)
|
|
||||||
this.value10(value10)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised FlywaySchemaHistoryRecord
|
* Create a detached, initialised FlywaySchemaHistoryRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -8,10 +8,7 @@ import com.nisemoe.generated.tables.OsuApiKeys
|
|||||||
|
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record5
|
|
||||||
import org.jooq.Row5
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +16,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class OsuApiKeysRecord private constructor() : UpdatableRecordImpl<OsuApiKeysRecord>(OsuApiKeys.OSU_API_KEYS), Record5<Int?, String?, OffsetDateTime?, Boolean?, Boolean?> {
|
open class OsuApiKeysRecord private constructor() : UpdatableRecordImpl<OsuApiKeysRecord>(OsuApiKeys.OSU_API_KEYS) {
|
||||||
|
|
||||||
open var id: Int?
|
open var id: Int?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -51,62 +48,6 @@ open class OsuApiKeysRecord private constructor() : UpdatableRecordImpl<OsuApiKe
|
|||||||
|
|
||||||
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record5 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row5<Int?, String?, OffsetDateTime?, Boolean?, Boolean?> = super.fieldsRow() as Row5<Int?, String?, OffsetDateTime?, Boolean?, Boolean?>
|
|
||||||
override fun valuesRow(): Row5<Int?, String?, OffsetDateTime?, Boolean?, Boolean?> = super.valuesRow() as Row5<Int?, String?, OffsetDateTime?, Boolean?, Boolean?>
|
|
||||||
override fun field1(): Field<Int?> = OsuApiKeys.OSU_API_KEYS.ID
|
|
||||||
override fun field2(): Field<String?> = OsuApiKeys.OSU_API_KEYS.API_KEY
|
|
||||||
override fun field3(): Field<OffsetDateTime?> = OsuApiKeys.OSU_API_KEYS.CREATED_AT
|
|
||||||
override fun field4(): Field<Boolean?> = OsuApiKeys.OSU_API_KEYS.IS_VALID
|
|
||||||
override fun field5(): Field<Boolean?> = OsuApiKeys.OSU_API_KEYS.IS_ACTIVE
|
|
||||||
override fun component1(): Int? = id
|
|
||||||
override fun component2(): String = apiKey
|
|
||||||
override fun component3(): OffsetDateTime? = createdAt
|
|
||||||
override fun component4(): Boolean? = isValid
|
|
||||||
override fun component5(): Boolean? = isActive
|
|
||||||
override fun value1(): Int? = id
|
|
||||||
override fun value2(): String = apiKey
|
|
||||||
override fun value3(): OffsetDateTime? = createdAt
|
|
||||||
override fun value4(): Boolean? = isValid
|
|
||||||
override fun value5(): Boolean? = isActive
|
|
||||||
|
|
||||||
override fun value1(value: Int?): OsuApiKeysRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: String?): OsuApiKeysRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: OffsetDateTime?): OsuApiKeysRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: Boolean?): OsuApiKeysRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: Boolean?): OsuApiKeysRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Int?, value2: String?, value3: OffsetDateTime?, value4: Boolean?, value5: Boolean?): OsuApiKeysRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised OsuApiKeysRecord
|
* Create a detached, initialised OsuApiKeysRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -6,10 +6,7 @@ package com.nisemoe.generated.tables.records
|
|||||||
|
|
||||||
import com.nisemoe.generated.tables.RedditPost
|
import com.nisemoe.generated.tables.RedditPost
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record5
|
|
||||||
import org.jooq.Row5
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +14,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class RedditPostRecord private constructor() : UpdatableRecordImpl<RedditPostRecord>(RedditPost.REDDIT_POST), Record5<String?, String?, Double?, String?, Boolean?> {
|
open class RedditPostRecord private constructor() : UpdatableRecordImpl<RedditPostRecord>(RedditPost.REDDIT_POST) {
|
||||||
|
|
||||||
open var postId: String
|
open var postId: String
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -47,62 +44,6 @@ open class RedditPostRecord private constructor() : UpdatableRecordImpl<RedditPo
|
|||||||
|
|
||||||
override fun key(): Record1<String?> = super.key() as Record1<String?>
|
override fun key(): Record1<String?> = super.key() as Record1<String?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record5 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row5<String?, String?, Double?, String?, Boolean?> = super.fieldsRow() as Row5<String?, String?, Double?, String?, Boolean?>
|
|
||||||
override fun valuesRow(): Row5<String?, String?, Double?, String?, Boolean?> = super.valuesRow() as Row5<String?, String?, Double?, String?, Boolean?>
|
|
||||||
override fun field1(): Field<String?> = RedditPost.REDDIT_POST.POST_ID
|
|
||||||
override fun field2(): Field<String?> = RedditPost.REDDIT_POST.TITLE
|
|
||||||
override fun field3(): Field<Double?> = RedditPost.REDDIT_POST.CREATED_UTC
|
|
||||||
override fun field4(): Field<String?> = RedditPost.REDDIT_POST.URL
|
|
||||||
override fun field5(): Field<Boolean?> = RedditPost.REDDIT_POST.IS_CHECKED
|
|
||||||
override fun component1(): String = postId
|
|
||||||
override fun component2(): String? = title
|
|
||||||
override fun component3(): Double? = createdUtc
|
|
||||||
override fun component4(): String? = url
|
|
||||||
override fun component5(): Boolean? = isChecked
|
|
||||||
override fun value1(): String = postId
|
|
||||||
override fun value2(): String? = title
|
|
||||||
override fun value3(): Double? = createdUtc
|
|
||||||
override fun value4(): String? = url
|
|
||||||
override fun value5(): Boolean? = isChecked
|
|
||||||
|
|
||||||
override fun value1(value: String?): RedditPostRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: String?): RedditPostRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: Double?): RedditPostRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: String?): RedditPostRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: Boolean?): RedditPostRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: String?, value2: String?, value3: Double?, value4: String?, value5: Boolean?): RedditPostRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised RedditPostRecord
|
* Create a detached, initialised RedditPostRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -7,10 +7,7 @@ package com.nisemoe.generated.tables.records
|
|||||||
import com.nisemoe.generated.enums.JudgementType
|
import com.nisemoe.generated.enums.JudgementType
|
||||||
import com.nisemoe.generated.tables.ScoresJudgements
|
import com.nisemoe.generated.tables.ScoresJudgements
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record9
|
|
||||||
import org.jooq.Row9
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +15,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class ScoresJudgementsRecord private constructor() : UpdatableRecordImpl<ScoresJudgementsRecord>(ScoresJudgements.SCORES_JUDGEMENTS), Record9<Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?> {
|
open class ScoresJudgementsRecord private constructor() : UpdatableRecordImpl<ScoresJudgementsRecord>(ScoresJudgements.SCORES_JUDGEMENTS) {
|
||||||
|
|
||||||
open var id: Int?
|
open var id: Int?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -62,98 +59,6 @@ open class ScoresJudgementsRecord private constructor() : UpdatableRecordImpl<Sc
|
|||||||
|
|
||||||
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record9 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row9<Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?> = super.fieldsRow() as Row9<Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?>
|
|
||||||
override fun valuesRow(): Row9<Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?> = super.valuesRow() as Row9<Int?, Double?, Double?, Double?, JudgementType?, Double?, Double?, Double?, Int?>
|
|
||||||
override fun field1(): Field<Int?> = ScoresJudgements.SCORES_JUDGEMENTS.ID
|
|
||||||
override fun field2(): Field<Double?> = ScoresJudgements.SCORES_JUDGEMENTS.TIME
|
|
||||||
override fun field3(): Field<Double?> = ScoresJudgements.SCORES_JUDGEMENTS.X
|
|
||||||
override fun field4(): Field<Double?> = ScoresJudgements.SCORES_JUDGEMENTS.Y
|
|
||||||
override fun field5(): Field<JudgementType?> = ScoresJudgements.SCORES_JUDGEMENTS.TYPE
|
|
||||||
override fun field6(): Field<Double?> = ScoresJudgements.SCORES_JUDGEMENTS.DISTANCE_CENTER
|
|
||||||
override fun field7(): Field<Double?> = ScoresJudgements.SCORES_JUDGEMENTS.DISTANCE_EDGE
|
|
||||||
override fun field8(): Field<Double?> = ScoresJudgements.SCORES_JUDGEMENTS.ERROR
|
|
||||||
override fun field9(): Field<Int?> = ScoresJudgements.SCORES_JUDGEMENTS.SCORE_ID
|
|
||||||
override fun component1(): Int? = id
|
|
||||||
override fun component2(): Double? = time
|
|
||||||
override fun component3(): Double? = x
|
|
||||||
override fun component4(): Double? = y
|
|
||||||
override fun component5(): JudgementType? = type
|
|
||||||
override fun component6(): Double? = distanceCenter
|
|
||||||
override fun component7(): Double? = distanceEdge
|
|
||||||
override fun component8(): Double? = error
|
|
||||||
override fun component9(): Int? = scoreId
|
|
||||||
override fun value1(): Int? = id
|
|
||||||
override fun value2(): Double? = time
|
|
||||||
override fun value3(): Double? = x
|
|
||||||
override fun value4(): Double? = y
|
|
||||||
override fun value5(): JudgementType? = type
|
|
||||||
override fun value6(): Double? = distanceCenter
|
|
||||||
override fun value7(): Double? = distanceEdge
|
|
||||||
override fun value8(): Double? = error
|
|
||||||
override fun value9(): Int? = scoreId
|
|
||||||
|
|
||||||
override fun value1(value: Int?): ScoresJudgementsRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: Double?): ScoresJudgementsRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: Double?): ScoresJudgementsRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: Double?): ScoresJudgementsRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: JudgementType?): ScoresJudgementsRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value6(value: Double?): ScoresJudgementsRecord {
|
|
||||||
set(5, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value7(value: Double?): ScoresJudgementsRecord {
|
|
||||||
set(6, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value8(value: Double?): ScoresJudgementsRecord {
|
|
||||||
set(7, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value9(value: Int?): ScoresJudgementsRecord {
|
|
||||||
set(8, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Int?, value2: Double?, value3: Double?, value4: Double?, value5: JudgementType?, value6: Double?, value7: Double?, value8: Double?, value9: Int?): ScoresJudgementsRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
this.value6(value6)
|
|
||||||
this.value7(value7)
|
|
||||||
this.value8(value8)
|
|
||||||
this.value9(value9)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised ScoresJudgementsRecord
|
* Create a detached, initialised ScoresJudgementsRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -8,10 +8,7 @@ import com.nisemoe.generated.tables.ScoresSimilarity
|
|||||||
|
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record10
|
|
||||||
import org.jooq.Row10
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +16,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class ScoresSimilarityRecord private constructor() : UpdatableRecordImpl<ScoresSimilarityRecord>(ScoresSimilarity.SCORES_SIMILARITY), Record10<Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?> {
|
open class ScoresSimilarityRecord private constructor() : UpdatableRecordImpl<ScoresSimilarityRecord>(ScoresSimilarity.SCORES_SIMILARITY) {
|
||||||
|
|
||||||
open var id: Int?
|
open var id: Int?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -67,107 +64,6 @@ open class ScoresSimilarityRecord private constructor() : UpdatableRecordImpl<Sc
|
|||||||
|
|
||||||
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record10 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row10<Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?> = super.fieldsRow() as Row10<Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?>
|
|
||||||
override fun valuesRow(): Row10<Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?> = super.valuesRow() as Row10<Int?, Int?, Long?, Long?, Double?, Double?, LocalDateTime?, Boolean?, Double?, Double?>
|
|
||||||
override fun field1(): Field<Int?> = ScoresSimilarity.SCORES_SIMILARITY.ID
|
|
||||||
override fun field2(): Field<Int?> = ScoresSimilarity.SCORES_SIMILARITY.BEATMAP_ID
|
|
||||||
override fun field3(): Field<Long?> = ScoresSimilarity.SCORES_SIMILARITY.REPLAY_ID_1
|
|
||||||
override fun field4(): Field<Long?> = ScoresSimilarity.SCORES_SIMILARITY.REPLAY_ID_2
|
|
||||||
override fun field5(): Field<Double?> = ScoresSimilarity.SCORES_SIMILARITY.SIMILARITY
|
|
||||||
override fun field6(): Field<Double?> = ScoresSimilarity.SCORES_SIMILARITY.CORRELATION
|
|
||||||
override fun field7(): Field<LocalDateTime?> = ScoresSimilarity.SCORES_SIMILARITY.CREATED_AT
|
|
||||||
override fun field8(): Field<Boolean?> = ScoresSimilarity.SCORES_SIMILARITY.SENT_DISCORD_NOTIFICATION
|
|
||||||
override fun field9(): Field<Double?> = ScoresSimilarity.SCORES_SIMILARITY.CG_SIMILARITY
|
|
||||||
override fun field10(): Field<Double?> = ScoresSimilarity.SCORES_SIMILARITY.CG_CORRELATION
|
|
||||||
override fun component1(): Int? = id
|
|
||||||
override fun component2(): Int? = beatmapId
|
|
||||||
override fun component3(): Long? = replayId_1
|
|
||||||
override fun component4(): Long? = replayId_2
|
|
||||||
override fun component5(): Double? = similarity
|
|
||||||
override fun component6(): Double? = correlation
|
|
||||||
override fun component7(): LocalDateTime? = createdAt
|
|
||||||
override fun component8(): Boolean? = sentDiscordNotification
|
|
||||||
override fun component9(): Double? = cgSimilarity
|
|
||||||
override fun component10(): Double? = cgCorrelation
|
|
||||||
override fun value1(): Int? = id
|
|
||||||
override fun value2(): Int? = beatmapId
|
|
||||||
override fun value3(): Long? = replayId_1
|
|
||||||
override fun value4(): Long? = replayId_2
|
|
||||||
override fun value5(): Double? = similarity
|
|
||||||
override fun value6(): Double? = correlation
|
|
||||||
override fun value7(): LocalDateTime? = createdAt
|
|
||||||
override fun value8(): Boolean? = sentDiscordNotification
|
|
||||||
override fun value9(): Double? = cgSimilarity
|
|
||||||
override fun value10(): Double? = cgCorrelation
|
|
||||||
|
|
||||||
override fun value1(value: Int?): ScoresSimilarityRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: Int?): ScoresSimilarityRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: Long?): ScoresSimilarityRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: Long?): ScoresSimilarityRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: Double?): ScoresSimilarityRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value6(value: Double?): ScoresSimilarityRecord {
|
|
||||||
set(5, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value7(value: LocalDateTime?): ScoresSimilarityRecord {
|
|
||||||
set(6, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value8(value: Boolean?): ScoresSimilarityRecord {
|
|
||||||
set(7, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value9(value: Double?): ScoresSimilarityRecord {
|
|
||||||
set(8, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value10(value: Double?): ScoresSimilarityRecord {
|
|
||||||
set(9, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Int?, value2: Int?, value3: Long?, value4: Long?, value5: Double?, value6: Double?, value7: LocalDateTime?, value8: Boolean?, value9: Double?, value10: Double?): ScoresSimilarityRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
this.value6(value6)
|
|
||||||
this.value7(value7)
|
|
||||||
this.value8(value8)
|
|
||||||
this.value9(value9)
|
|
||||||
this.value10(value10)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised ScoresSimilarityRecord
|
* Create a detached, initialised ScoresSimilarityRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -9,10 +9,7 @@ import com.nisemoe.generated.tables.UpdateUserQueue
|
|||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record9
|
|
||||||
import org.jooq.Row9
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +17,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UpdateUserQueueRecord private constructor() : UpdatableRecordImpl<UpdateUserQueueRecord>(UpdateUserQueue.UPDATE_USER_QUEUE), Record9<Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?> {
|
open class UpdateUserQueueRecord private constructor() : UpdatableRecordImpl<UpdateUserQueueRecord>(UpdateUserQueue.UPDATE_USER_QUEUE) {
|
||||||
|
|
||||||
open var id: Int?
|
open var id: Int?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -64,98 +61,6 @@ open class UpdateUserQueueRecord private constructor() : UpdatableRecordImpl<Upd
|
|||||||
|
|
||||||
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record9 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row9<Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?> = super.fieldsRow() as Row9<Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?>
|
|
||||||
override fun valuesRow(): Row9<Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?> = super.valuesRow() as Row9<Int?, Long?, Boolean?, LocalDateTime?, OffsetDateTime?, Int?, Int?, Long?, Boolean?>
|
|
||||||
override fun field1(): Field<Int?> = UpdateUserQueue.UPDATE_USER_QUEUE.ID
|
|
||||||
override fun field2(): Field<Long?> = UpdateUserQueue.UPDATE_USER_QUEUE.USER_ID
|
|
||||||
override fun field3(): Field<Boolean?> = UpdateUserQueue.UPDATE_USER_QUEUE.PROCESSED
|
|
||||||
override fun field4(): Field<LocalDateTime?> = UpdateUserQueue.UPDATE_USER_QUEUE.CREATED_AT
|
|
||||||
override fun field5(): Field<OffsetDateTime?> = UpdateUserQueue.UPDATE_USER_QUEUE.PROCESSED_AT
|
|
||||||
override fun field6(): Field<Int?> = UpdateUserQueue.UPDATE_USER_QUEUE.PROGRESS_CURRENT
|
|
||||||
override fun field7(): Field<Int?> = UpdateUserQueue.UPDATE_USER_QUEUE.PROGRESS_TOTAL
|
|
||||||
override fun field8(): Field<Long?> = UpdateUserQueue.UPDATE_USER_QUEUE.ADDED_BY_USER_ID
|
|
||||||
override fun field9(): Field<Boolean?> = UpdateUserQueue.UPDATE_USER_QUEUE.HAS_FAILED
|
|
||||||
override fun component1(): Int? = id
|
|
||||||
override fun component2(): Long = userId
|
|
||||||
override fun component3(): Boolean? = processed
|
|
||||||
override fun component4(): LocalDateTime? = createdAt
|
|
||||||
override fun component5(): OffsetDateTime? = processedAt
|
|
||||||
override fun component6(): Int? = progressCurrent
|
|
||||||
override fun component7(): Int? = progressTotal
|
|
||||||
override fun component8(): Long? = addedByUserId
|
|
||||||
override fun component9(): Boolean? = hasFailed
|
|
||||||
override fun value1(): Int? = id
|
|
||||||
override fun value2(): Long = userId
|
|
||||||
override fun value3(): Boolean? = processed
|
|
||||||
override fun value4(): LocalDateTime? = createdAt
|
|
||||||
override fun value5(): OffsetDateTime? = processedAt
|
|
||||||
override fun value6(): Int? = progressCurrent
|
|
||||||
override fun value7(): Int? = progressTotal
|
|
||||||
override fun value8(): Long? = addedByUserId
|
|
||||||
override fun value9(): Boolean? = hasFailed
|
|
||||||
|
|
||||||
override fun value1(value: Int?): UpdateUserQueueRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: Long?): UpdateUserQueueRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: Boolean?): UpdateUserQueueRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: LocalDateTime?): UpdateUserQueueRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: OffsetDateTime?): UpdateUserQueueRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value6(value: Int?): UpdateUserQueueRecord {
|
|
||||||
set(5, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value7(value: Int?): UpdateUserQueueRecord {
|
|
||||||
set(6, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value8(value: Long?): UpdateUserQueueRecord {
|
|
||||||
set(7, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value9(value: Boolean?): UpdateUserQueueRecord {
|
|
||||||
set(8, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Int?, value2: Long?, value3: Boolean?, value4: LocalDateTime?, value5: OffsetDateTime?, value6: Int?, value7: Int?, value8: Long?, value9: Boolean?): UpdateUserQueueRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
this.value6(value6)
|
|
||||||
this.value7(value7)
|
|
||||||
this.value8(value8)
|
|
||||||
this.value9(value9)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised UpdateUserQueueRecord
|
* Create a detached, initialised UpdateUserQueueRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -6,9 +6,7 @@ package com.nisemoe.generated.tables.records
|
|||||||
|
|
||||||
import com.nisemoe.generated.tables.UserFollows
|
import com.nisemoe.generated.tables.UserFollows
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record2
|
import org.jooq.Record2
|
||||||
import org.jooq.Row2
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -16,7 +14,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UserFollowsRecord private constructor() : UpdatableRecordImpl<UserFollowsRecord>(UserFollows.USER_FOLLOWS), Record2<Long?, Long?> {
|
open class UserFollowsRecord private constructor() : UpdatableRecordImpl<UserFollowsRecord>(UserFollows.USER_FOLLOWS) {
|
||||||
|
|
||||||
open var userId: Long?
|
open var userId: Long?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -32,35 +30,6 @@ open class UserFollowsRecord private constructor() : UpdatableRecordImpl<UserFol
|
|||||||
|
|
||||||
override fun key(): Record2<Long?, Long?> = super.key() as Record2<Long?, Long?>
|
override fun key(): Record2<Long?, Long?> = super.key() as Record2<Long?, Long?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record2 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row2<Long?, Long?> = super.fieldsRow() as Row2<Long?, Long?>
|
|
||||||
override fun valuesRow(): Row2<Long?, Long?> = super.valuesRow() as Row2<Long?, Long?>
|
|
||||||
override fun field1(): Field<Long?> = UserFollows.USER_FOLLOWS.USER_ID
|
|
||||||
override fun field2(): Field<Long?> = UserFollows.USER_FOLLOWS.FOLLOWS_USER_ID
|
|
||||||
override fun component1(): Long? = userId
|
|
||||||
override fun component2(): Long? = followsUserId
|
|
||||||
override fun value1(): Long? = userId
|
|
||||||
override fun value2(): Long? = followsUserId
|
|
||||||
|
|
||||||
override fun value1(value: Long?): UserFollowsRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: Long?): UserFollowsRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Long?, value2: Long?): UserFollowsRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised UserFollowsRecord
|
* Create a detached, initialised UserFollowsRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -9,10 +9,7 @@ import com.nisemoe.generated.tables.UserScoresSimilarity
|
|||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record9
|
|
||||||
import org.jooq.Row9
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +17,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UserScoresSimilarityRecord private constructor() : UpdatableRecordImpl<UserScoresSimilarityRecord>(UserScoresSimilarity.USER_SCORES_SIMILARITY), Record9<Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?> {
|
open class UserScoresSimilarityRecord private constructor() : UpdatableRecordImpl<UserScoresSimilarityRecord>(UserScoresSimilarity.USER_SCORES_SIMILARITY) {
|
||||||
|
|
||||||
open var id: Int?
|
open var id: Int?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -64,98 +61,6 @@ open class UserScoresSimilarityRecord private constructor() : UpdatableRecordImp
|
|||||||
|
|
||||||
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record9 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row9<Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?> = super.fieldsRow() as Row9<Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?>
|
|
||||||
override fun valuesRow(): Row9<Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?> = super.valuesRow() as Row9<Int?, Int?, UUID?, Long?, Double?, Double?, OffsetDateTime?, Double?, Double?>
|
|
||||||
override fun field1(): Field<Int?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.ID
|
|
||||||
override fun field2(): Field<Int?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.BEATMAP_ID
|
|
||||||
override fun field3(): Field<UUID?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.REPLAY_ID_USER
|
|
||||||
override fun field4(): Field<Long?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.REPLAY_ID_OSU
|
|
||||||
override fun field5(): Field<Double?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.SIMILARITY
|
|
||||||
override fun field6(): Field<Double?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.CORRELATION
|
|
||||||
override fun field7(): Field<OffsetDateTime?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.CREATED_AT
|
|
||||||
override fun field8(): Field<Double?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.CG_SIMILARITY
|
|
||||||
override fun field9(): Field<Double?> = UserScoresSimilarity.USER_SCORES_SIMILARITY.CG_CORRELATION
|
|
||||||
override fun component1(): Int? = id
|
|
||||||
override fun component2(): Int? = beatmapId
|
|
||||||
override fun component3(): UUID? = replayIdUser
|
|
||||||
override fun component4(): Long? = replayIdOsu
|
|
||||||
override fun component5(): Double? = similarity
|
|
||||||
override fun component6(): Double? = correlation
|
|
||||||
override fun component7(): OffsetDateTime? = createdAt
|
|
||||||
override fun component8(): Double? = cgSimilarity
|
|
||||||
override fun component9(): Double? = cgCorrelation
|
|
||||||
override fun value1(): Int? = id
|
|
||||||
override fun value2(): Int? = beatmapId
|
|
||||||
override fun value3(): UUID? = replayIdUser
|
|
||||||
override fun value4(): Long? = replayIdOsu
|
|
||||||
override fun value5(): Double? = similarity
|
|
||||||
override fun value6(): Double? = correlation
|
|
||||||
override fun value7(): OffsetDateTime? = createdAt
|
|
||||||
override fun value8(): Double? = cgSimilarity
|
|
||||||
override fun value9(): Double? = cgCorrelation
|
|
||||||
|
|
||||||
override fun value1(value: Int?): UserScoresSimilarityRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: Int?): UserScoresSimilarityRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: UUID?): UserScoresSimilarityRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: Long?): UserScoresSimilarityRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: Double?): UserScoresSimilarityRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value6(value: Double?): UserScoresSimilarityRecord {
|
|
||||||
set(5, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value7(value: OffsetDateTime?): UserScoresSimilarityRecord {
|
|
||||||
set(6, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value8(value: Double?): UserScoresSimilarityRecord {
|
|
||||||
set(7, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value9(value: Double?): UserScoresSimilarityRecord {
|
|
||||||
set(8, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Int?, value2: Int?, value3: UUID?, value4: Long?, value5: Double?, value6: Double?, value7: OffsetDateTime?, value8: Double?, value9: Double?): UserScoresSimilarityRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
this.value6(value6)
|
|
||||||
this.value7(value7)
|
|
||||||
this.value8(value8)
|
|
||||||
this.value9(value9)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised UserScoresSimilarityRecord
|
* Create a detached, initialised UserScoresSimilarityRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -9,10 +9,7 @@ import com.nisemoe.generated.tables.Users
|
|||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
|
|
||||||
import org.jooq.Field
|
|
||||||
import org.jooq.Record1
|
import org.jooq.Record1
|
||||||
import org.jooq.Record20
|
|
||||||
import org.jooq.Row20
|
|
||||||
import org.jooq.impl.UpdatableRecordImpl
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +17,7 @@ import org.jooq.impl.UpdatableRecordImpl
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
open class UsersRecord private constructor() : UpdatableRecordImpl<UsersRecord>(Users.USERS), Record20<Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?> {
|
open class UsersRecord private constructor() : UpdatableRecordImpl<UsersRecord>(Users.USERS) {
|
||||||
|
|
||||||
open var userId: Long?
|
open var userId: Long?
|
||||||
set(value): Unit = set(0, value)
|
set(value): Unit = set(0, value)
|
||||||
@ -112,197 +109,6 @@ open class UsersRecord private constructor() : UpdatableRecordImpl<UsersRecord>(
|
|||||||
|
|
||||||
override fun key(): Record1<Long?> = super.key() as Record1<Long?>
|
override fun key(): Record1<Long?> = super.key() as Record1<Long?>
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
// Record20 type implementation
|
|
||||||
// -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
override fun fieldsRow(): Row20<Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?> = super.fieldsRow() as Row20<Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?>
|
|
||||||
override fun valuesRow(): Row20<Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?> = super.valuesRow() as Row20<Long?, String?, LocalDateTime?, String?, Long?, Long?, Double?, Double?, Long?, Long?, Long?, Long?, Long?, Long?, Long?, OffsetDateTime?, Boolean?, Long?, Boolean?, OffsetDateTime?>
|
|
||||||
override fun field1(): Field<Long?> = Users.USERS.USER_ID
|
|
||||||
override fun field2(): Field<String?> = Users.USERS.USERNAME
|
|
||||||
override fun field3(): Field<LocalDateTime?> = Users.USERS.JOIN_DATE
|
|
||||||
override fun field4(): Field<String?> = Users.USERS.COUNTRY
|
|
||||||
override fun field5(): Field<Long?> = Users.USERS.COUNTRY_RANK
|
|
||||||
override fun field6(): Field<Long?> = Users.USERS.RANK
|
|
||||||
override fun field7(): Field<Double?> = Users.USERS.PP_RAW
|
|
||||||
override fun field8(): Field<Double?> = Users.USERS.ACCURACY
|
|
||||||
override fun field9(): Field<Long?> = Users.USERS.PLAYCOUNT
|
|
||||||
override fun field10(): Field<Long?> = Users.USERS.TOTAL_SCORE
|
|
||||||
override fun field11(): Field<Long?> = Users.USERS.RANKED_SCORE
|
|
||||||
override fun field12(): Field<Long?> = Users.USERS.SECONDS_PLAYED
|
|
||||||
override fun field13(): Field<Long?> = Users.USERS.COUNT_100
|
|
||||||
override fun field14(): Field<Long?> = Users.USERS.COUNT_300
|
|
||||||
override fun field15(): Field<Long?> = Users.USERS.COUNT_50
|
|
||||||
override fun field16(): Field<OffsetDateTime?> = Users.USERS.SYS_LAST_UPDATE
|
|
||||||
override fun field17(): Field<Boolean?> = Users.USERS.IS_ADMIN
|
|
||||||
override fun field18(): Field<Long?> = Users.USERS.COUNT_MISS
|
|
||||||
override fun field19(): Field<Boolean?> = Users.USERS.IS_BANNED
|
|
||||||
override fun field20(): Field<OffsetDateTime?> = Users.USERS.APPROX_BAN_DATE
|
|
||||||
override fun component1(): Long? = userId
|
|
||||||
override fun component2(): String? = username
|
|
||||||
override fun component3(): LocalDateTime? = joinDate
|
|
||||||
override fun component4(): String? = country
|
|
||||||
override fun component5(): Long? = countryRank
|
|
||||||
override fun component6(): Long? = rank
|
|
||||||
override fun component7(): Double? = ppRaw
|
|
||||||
override fun component8(): Double? = accuracy
|
|
||||||
override fun component9(): Long? = playcount
|
|
||||||
override fun component10(): Long? = totalScore
|
|
||||||
override fun component11(): Long? = rankedScore
|
|
||||||
override fun component12(): Long? = secondsPlayed
|
|
||||||
override fun component13(): Long? = count_100
|
|
||||||
override fun component14(): Long? = count_300
|
|
||||||
override fun component15(): Long? = count_50
|
|
||||||
override fun component16(): OffsetDateTime? = sysLastUpdate
|
|
||||||
override fun component17(): Boolean? = isAdmin
|
|
||||||
override fun component18(): Long? = countMiss
|
|
||||||
override fun component19(): Boolean? = isBanned
|
|
||||||
override fun component20(): OffsetDateTime? = approxBanDate
|
|
||||||
override fun value1(): Long? = userId
|
|
||||||
override fun value2(): String? = username
|
|
||||||
override fun value3(): LocalDateTime? = joinDate
|
|
||||||
override fun value4(): String? = country
|
|
||||||
override fun value5(): Long? = countryRank
|
|
||||||
override fun value6(): Long? = rank
|
|
||||||
override fun value7(): Double? = ppRaw
|
|
||||||
override fun value8(): Double? = accuracy
|
|
||||||
override fun value9(): Long? = playcount
|
|
||||||
override fun value10(): Long? = totalScore
|
|
||||||
override fun value11(): Long? = rankedScore
|
|
||||||
override fun value12(): Long? = secondsPlayed
|
|
||||||
override fun value13(): Long? = count_100
|
|
||||||
override fun value14(): Long? = count_300
|
|
||||||
override fun value15(): Long? = count_50
|
|
||||||
override fun value16(): OffsetDateTime? = sysLastUpdate
|
|
||||||
override fun value17(): Boolean? = isAdmin
|
|
||||||
override fun value18(): Long? = countMiss
|
|
||||||
override fun value19(): Boolean? = isBanned
|
|
||||||
override fun value20(): OffsetDateTime? = approxBanDate
|
|
||||||
|
|
||||||
override fun value1(value: Long?): UsersRecord {
|
|
||||||
set(0, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value2(value: String?): UsersRecord {
|
|
||||||
set(1, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value3(value: LocalDateTime?): UsersRecord {
|
|
||||||
set(2, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value4(value: String?): UsersRecord {
|
|
||||||
set(3, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value5(value: Long?): UsersRecord {
|
|
||||||
set(4, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value6(value: Long?): UsersRecord {
|
|
||||||
set(5, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value7(value: Double?): UsersRecord {
|
|
||||||
set(6, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value8(value: Double?): UsersRecord {
|
|
||||||
set(7, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value9(value: Long?): UsersRecord {
|
|
||||||
set(8, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value10(value: Long?): UsersRecord {
|
|
||||||
set(9, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value11(value: Long?): UsersRecord {
|
|
||||||
set(10, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value12(value: Long?): UsersRecord {
|
|
||||||
set(11, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value13(value: Long?): UsersRecord {
|
|
||||||
set(12, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value14(value: Long?): UsersRecord {
|
|
||||||
set(13, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value15(value: Long?): UsersRecord {
|
|
||||||
set(14, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value16(value: OffsetDateTime?): UsersRecord {
|
|
||||||
set(15, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value17(value: Boolean?): UsersRecord {
|
|
||||||
set(16, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value18(value: Long?): UsersRecord {
|
|
||||||
set(17, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value19(value: Boolean?): UsersRecord {
|
|
||||||
set(18, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun value20(value: OffsetDateTime?): UsersRecord {
|
|
||||||
set(19, value)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun values(value1: Long?, value2: String?, value3: LocalDateTime?, value4: String?, value5: Long?, value6: Long?, value7: Double?, value8: Double?, value9: Long?, value10: Long?, value11: Long?, value12: Long?, value13: Long?, value14: Long?, value15: Long?, value16: OffsetDateTime?, value17: Boolean?, value18: Long?, value19: Boolean?, value20: OffsetDateTime?): UsersRecord {
|
|
||||||
this.value1(value1)
|
|
||||||
this.value2(value2)
|
|
||||||
this.value3(value3)
|
|
||||||
this.value4(value4)
|
|
||||||
this.value5(value5)
|
|
||||||
this.value6(value6)
|
|
||||||
this.value7(value7)
|
|
||||||
this.value8(value8)
|
|
||||||
this.value9(value9)
|
|
||||||
this.value10(value10)
|
|
||||||
this.value11(value11)
|
|
||||||
this.value12(value12)
|
|
||||||
this.value13(value13)
|
|
||||||
this.value14(value14)
|
|
||||||
this.value15(value15)
|
|
||||||
this.value16(value16)
|
|
||||||
this.value17(value17)
|
|
||||||
this.value18(value18)
|
|
||||||
this.value19(value19)
|
|
||||||
this.value20(value20)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a detached, initialised UsersRecord
|
* Create a detached, initialised UsersRecord
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -38,7 +38,7 @@ class BanlistController(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
val totalPages: Int
|
val totalPages: Int
|
||||||
get() = if (totalResults % pageSize == 0) totalResults / pageSize else totalResults / pageSize + 1
|
get() = if (totalResults == 0) 1 else (totalResults + pageSize - 1) / pageSize
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Set variables
|
# Set variables
|
||||||
IMAGE_NAME="nise-frontend"
|
IMAGE_NAME="nise-frontend"
|
||||||
IMAGE_REGISTRY="git.gengo.tech/nuff"
|
IMAGE_REGISTRY="git.nise.moe/nuff"
|
||||||
IMAGE_VERSION="latest"
|
IMAGE_VERSION="latest"
|
||||||
|
|
||||||
rm -rf target/
|
rm -rf target/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user