# 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"))
    }

Content copied to clipboard

Generates: `DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci`

## Constructors

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

## Functions

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

Returns the SQL string representation of this option.

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