@@ -1766,11 +1766,16 @@ AdbcStatusCode AdbcConnectionGetInfo(struct AdbcConnection* connection,
17661766/// | constraint_type | utf8 not null | (1) |
17671767/// | constraint_column_names | list<utf8> not null | (2) |
17681768/// | constraint_column_usage | list<USAGE_SCHEMA> | (3) |
1769+ /// | constraint_expression | utf8 | (4) |
17691770///
1770- /// 1. One of 'CHECK', 'FOREIGN KEY', 'PRIMARY KEY', or 'UNIQUE'.
1771+ /// 1. One of 'CHECK', 'FOREIGN KEY', 'PRIMARY KEY', or 'UNIQUE', or a
1772+ /// vendor-specific type.
17711773/// 2. The columns on the current table that are constrained, in
17721774/// order.
17731775/// 3. For FOREIGN KEY only, the referenced table and columns.
1776+ /// 4. [Since version 1.2.0] If supported, the vendor-specific definition of
1777+ /// the constraint (e.g. the SQL expression to be checked). This field is
1778+ /// optional.
17741779///
17751780/// USAGE_SCHEMA is a Struct with fields:
17761781///
@@ -1781,6 +1786,12 @@ AdbcStatusCode AdbcConnectionGetInfo(struct AdbcConnection* connection,
17811786/// | fk_table | utf8 not null |
17821787/// | fk_column_name | utf8 not null |
17831788///
1789+ /// Starting in version 1.2.0, optional fields were introduced to the schema.
1790+ /// Optional fields may not be present and applications should check before
1791+ /// using them. Drivers may choose to include optional fields (with null
1792+ /// values). If an optional field is present, all optional fields defined
1793+ /// before it in the schema must be present.
1794+ ///
17841795/// This AdbcConnection must outlive the returned ArrowArrayStream.
17851796///
17861797/// \param[in] connection The database connection.
0 commit comments