CharsetOption

class CharsetOption(charset: String, collation: String? = null) : Table.TableOption

Character set and collation option for MySQL/MariaDB.

Example:

object Users : Table("users") {
override val options = listOf(Table.CharsetOption("utf8mb4", "utf8mb4_unicode_ci"))
}

Generates: DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci

Constructors

Link copied to clipboard
constructor(charset: String, collation: String? = null)

Functions

Link copied to clipboard
open override fun toSQL(): String

Returns the SQL string representation of this option.

Link copied to clipboard
open override fun toString(): String