Skip to content

Commit 7e0eb19

Browse files
committed
.
1 parent f588d59 commit 7e0eb19

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

cds/types.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ The following table lists the built-in types available to all CDS models. In add
1616
| CDS Type | Remarks | ANSI SQL <sup>(1)</sup> |
1717
| --- | --- | --- |
1818
| `UUID` | CAP generates [RFC 4122](https://tools.ietf.org/html/rfc4122)-compliant UUIDs <sup>(2)</sup> | _NVARCHAR(36)_ |
19-
| `Boolean` | | _BOOLEAN_ |
20-
| `Integer` | | _INTEGER_ |
21-
| `Int16` | | _SMALLINT_ |
22-
| `Int32` | | _INTEGER_ |
23-
| `Int64` | | _BIGINT_ |
24-
| `UInt8` | Not available on PostgreSQL and H2 | _TINYINT_ |
19+
| `Boolean` | Values: `true`, `false`, `null`, `0`, `1` | _BOOLEAN_ |
20+
| `Integer` | Same as `Int32` by default | _INTEGER_ |
21+
| `Int16` | Signed 16-bit integer, range *[ -2<sup>15</sup> ... +2<sup>15</sup> )* | _SMALLINT_ |
22+
| `Int32` | Signed 32-bit integer, range *[ -2<sup>31</sup> ... +2<sup>31</sup> )* | _INTEGER_ |
23+
| `Int64` | Signed 64-bit integer, range *[ -2<sup>63</sup> ... +2<sup>63</sup> )* | _BIGINT_ |
24+
| `UInt8` | Unsigned 8-bit integer, range *[ 0 ... 255 ]* | _TINYINT_ <sup>(3)</sup> |
2525
| `Decimal` (`prec`, `scale`) | A *decfloat* type is used if arguments are omitted | _DECIMAL_ |
26-
| `Double` | | _DOUBLE_ |
27-
| `Date` | | _DATE_ |
28-
| `Time` | | _TIME_ |
26+
| `Double` | Floating point with binary mantissa | _DOUBLE_ |
27+
| `Date` | e.g. `2022-12-31` | _DATE_ |
28+
| `Time` | e.g. `24:59:59` | _TIME_ |
2929
| `DateTime` | _sec_ precision | _TIMESTAMP_ |
3030
| `Timestamp` | _µs_ precision, with up to 7 fractional digits | _TIMESTAMP_ |
31-
| `String` (`length`) | Default *length*: 255; on HANA: 5000 <sup>(3)</sup> | _NVARCHAR_ |
32-
| `Binary` (`length`) | default *length*: 255; on HANA: 5000 <sup>(4)</sup> | _VARBINARY_ |
33-
| `LargeBinary` | | _BLOB_ |
34-
| `LargeString` | | _NCLOB_ |
31+
| `String` (`length`) | Default *length*: 255; on HANA: 5000 <sup>(4)</sup> | _NVARCHAR_ |
32+
| `Binary` (`length`) | Default *length*: 255; on HANA: 5000 <sup>(5)</sup> | _VARBINARY_ |
33+
| `LargeBinary` | Unlimited data, usually streamed at runtime | _BLOB_ |
34+
| `LargeString` | Unlimited data, usually streamed at runtime | _NCLOB_ |
3535
| `Map` | Mapped to *NCLOB* for HANA. | *JSON* type |
3636
| `Vector` (`dimension `) | Requires SAP HANA Cloud QRC 1/2024, or later | _REAL_VECTOR_ |
3737

@@ -40,9 +40,11 @@ The following table lists the built-in types available to all CDS models. In add
4040
>
4141
> <sup>(2)</sup> See also [Best Practices](../guides/domain-modeling#don-t-interpret-uuids).
4242
>
43-
> <sup>(3)</sup> Configurable through `cds.cdsc.defaultStringLength`.
43+
> <sup>(3)</sup> Not available on PostgreSQL and H2.
4444
>
45-
> <sup>(4)</sup> Configurable through `cds.cdsc.defaultBinaryLength`.
45+
> <sup>(4)</sup> Configurable through `cds.cdsc.defaultStringLength`.
46+
>
47+
> <sup>(5)</sup> Configurable through `cds.cdsc.defaultBinaryLength`.
4648
4749
#### See also...
4850

0 commit comments

Comments
 (0)