# binary

fun binary(name: String): Column<ByteArray>

Creates a binary column, with the specified name, for storing byte arrays of arbitrary size.

Note: This function is only supported by SQLite, PostgreSQL, and H2 dialects. For the rest, please specify a length. For H2 dialects, the maximum size is 1,000,000,000 bytes.

#### Samples

org.jetbrains.exposed.v1.tests.shared.DDLTests.testBinaryWithoutLength

fun binary(name: String, length: Int): Column<ByteArray>

Creates a binary column, with the specified name, for storing byte arrays with the specified maximum length.

Note: The length of the binary column is not required in PostgreSQL and will be ignored.

#### Samples

org.jetbrains.exposed.v1.tests.shared.DDLTests.testBinary