Exposed
 

Table types

Last modified: 03 March 2025

In Exposed, the Table class is the core abstraction for defining database tables. This class provides methods to define various column types, constraints, and other table-specific properties.

Table is located in the org.jetbrains.exposed.sql package of the exposed-core module.

The following example defines a table with an auto-incrementing integer id column and string name and director column:

For more information on defining and configuring tables in Exposed, see Working with tables.