From f1d3f012facb468dc3c516a44ef43cde3d84e528 Mon Sep 17 00:00:00 2001 From: Jakob Hain <32147996+Jakobeha@users.noreply.github.com> Date: Fri, 3 Sep 2021 18:08:47 -0400 Subject: [PATCH] updated data types and added reference to (https://github.com/JetBrains/Exposed/issues/1087) (#16) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * updated data types and added reference to (https://github.com/JetBra… --- DataTypes.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/DataTypes.md b/DataTypes.md index bb24848..7622a1f 100644 --- a/DataTypes.md +++ b/DataTypes.md @@ -10,13 +10,19 @@ Currently Exposed support the following data types in table definition: * `enumeration` - `INT` ordinal value * `enumerationByName` - `VARCHAR` * `customEnumeration` - see [additional section](#how-to-use-database-enum-types) -* `date` - `DATETIME` -* `datetime` - `DATETIME` * `blob` - `BLOB` * `binary` - `VARBINARY` with length * `uuid` - `BINARY(16)` * `reference` - a foreign key +The `exposed-java-time` extension (`org.jetbrains.exposed:exposed-java-time:$exposed_version`) provides additional types + +* `date` - `DATETIME` +* `time` - `TIME` +* `datetime` - `DATETIME` +* `timestamp` - `TIMESTAMP` +* `duration` - `DURATION` + Note: some types are different for specific DB dialect. ## How to use database Enum types