Skip to content

Commit 3b09955

Browse files
committed
feat(format): add constraint_expression to GetObjects
Closes #3987.
1 parent 4248d7c commit 3b09955

File tree

2 files changed

+24
-2
lines changed
  • c/include/arrow-adbc
  • go/adbc/drivermgr/arrow-adbc

2 files changed

+24
-2
lines changed

c/include/arrow-adbc/adbc.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.

go/adbc/drivermgr/arrow-adbc/adbc.h

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)