Skip to content

Commit b75c4d2

Browse files
committed
add examples/definition
1 parent dca687d commit b75c4d2

1 file changed

Lines changed: 42 additions & 36 deletions

File tree

c/include/arrow-adbc/adbc.h

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,60 +1993,66 @@ AdbcStatusCode AdbcConnectionGetObjects(struct AdbcConnection* connection, int d
19931993
///
19941994
/// The result is an Arrow dataset with the following schema:
19951995
///
1996-
/// | Field Name | Field Type |
1997-
/// |--------------------------|-------------------------|
1998-
/// | catalog_name | utf8 |
1999-
/// | catalog_db_schemas | list<DB_SCHEMA_SCHEMA> |
1996+
/// | Field Name | Field Type |
1997+
/// |-----------------------------|-------------------------|
1998+
/// | catalog_name | utf8 |
1999+
/// | catalog_db_schemas | list<DB_SCHEMA_SCHEMA> |
20002000
///
20012001
/// DB_SCHEMA_SCHEMA is a Struct with fields:
20022002
///
2003-
/// | Field Name | Field Type |
2004-
/// |--------------------------|-------------------------|
2005-
/// | db_schema_name | utf8 |
2006-
/// | db_schema_routines | list<ROUTINE_SCHEMA> |
2003+
/// | Field Name | Field Type |
2004+
/// |-----------------------------|-------------------------|
2005+
/// | db_schema_name | utf8 |
2006+
/// | db_schema_routines | list<ROUTINE_SCHEMA> |
20072007
///
20082008
/// ROUTINE_SCHEMA is a Struct with fields:
20092009
///
2010-
/// | Field Name | Field Type | Comments |
2011-
/// |--------------------------|-------------------------|----------|
2012-
/// | routine_name | utf8 not null | |
2013-
/// | routine_specific_name | utf8 not null | (1) |
2014-
/// | routine_type | utf8 not null | (2) |
2015-
/// | routine_remarks | utf8 | (3) |
2016-
/// | routine_parameters | list<PARAMETER_SCHEMA> | (4) |
2017-
/// | routine_result | list<PARAMETER_SCHEMA> | (4) |
2018-
/// | routine_parameter_schema | binary | (5) |
2019-
/// | routine_result_schema | binary | (5) |
2010+
/// | Field Name | Field Type | Comments |
2011+
/// |-----------------------------|-------------------------|----------|
2012+
/// | routine_name | utf8 not null | |
2013+
/// | routine_specific_name | utf8 not null | (1) |
2014+
/// | routine_type | utf8 not null | (2) |
2015+
/// | routine_remarks | utf8 | (3) |
2016+
/// | routine_examples | list<utf8> | (3) |
2017+
/// | routine_definition | utf8 | (4) |
2018+
/// | routine_definition_language | utf8 | (4) |
2019+
/// | routine_parameters | list<PARAMETER_SCHEMA> | (5) |
2020+
/// | routine_result | list<PARAMETER_SCHEMA> | (5) |
2021+
/// | routine_parameter_schema | binary | (6) |
2022+
/// | routine_result_schema | binary | (6) |
20202023
///
20212024
/// 1. A name that uniquely identifies the routine, to disambiguate
20222025
/// overloads.
20232026
/// 2. 'FUNCTION', 'PROCEDURE', or a vendor-specific name (e.g. 'TABLE
20242027
/// FUNCTION').
2025-
/// 3. Vendor-specific description of the routine.
2026-
/// 4. Metadata about the accepted parameters and return values as structured
2028+
/// 3. Vendor-specific description or help text, along with examples of the
2029+
/// syntax.
2030+
/// 4. The definition (e.g. SQL text used to create a procedure) and the
2031+
/// language of the definition (e.g. SQL, Python)
2032+
/// 5. Metadata about the accepted parameters and return values as structured
20272033
/// Arrow data. Only populated if include_columns is set, otherwise null.
2028-
/// 5. Metadata about the accepted parameters and return values as an Arrow
2034+
/// 6. Metadata about the accepted parameters and return values as an Arrow
20292035
/// schema, serialized as an IPC message containing a schema Flatbuffers
20302036
/// structure. Only populated if include_arrow_schema is set, otherwise
20312037
/// null.
20322038
///
20332039
/// PARAMETER_SCHEMA is a Struct with fields:
20342040
///
2035-
/// | Field Name | Field Type | Comments |
2036-
/// |--------------------------|-------------------------|----------|
2037-
/// | param_name | utf8 not null | |
2038-
/// | ordinal_position | int32 | (1) |
2039-
/// | remarks | utf8 | (2) |
2040-
/// | param_type | utf8 | (3) |
2041-
/// | xdbc_data_type | int16 | (3) |
2042-
/// | xdbc_type_name | utf8 | (3) |
2043-
/// | xdbc_precision | int32 | (3) |
2044-
/// | xdbc_length | int32 | (3) |
2045-
/// | xdbc_scale | int16 | (3) |
2046-
/// | xdbc_num_prec_radix | int16 | (3) |
2047-
/// | xdbc_nullable | int16 | (3) |
2048-
/// | xdbc_char_octet_length | int32 | (3) |
2049-
/// | xdbc_is_nullable | utf8 | (3) |
2041+
/// | Field Name | Field Type | Comments |
2042+
/// |-----------------------------|-------------------------|----------|
2043+
/// | param_name | utf8 not null | |
2044+
/// | ordinal_position | int32 | (1) |
2045+
/// | remarks | utf8 | (2) |
2046+
/// | param_type | utf8 | (3) |
2047+
/// | xdbc_data_type | int16 | (3) |
2048+
/// | xdbc_type_name | utf8 | (3) |
2049+
/// | xdbc_precision | int32 | (3) |
2050+
/// | xdbc_length | int32 | (3) |
2051+
/// | xdbc_scale | int16 | (3) |
2052+
/// | xdbc_num_prec_radix | int16 | (3) |
2053+
/// | xdbc_nullable | int16 | (3) |
2054+
/// | xdbc_char_octet_length | int32 | (3) |
2055+
/// | xdbc_is_nullable | utf8 | (3) |
20502056
///
20512057
/// 1. The ordinal position of the parameter or return value (1-indexed).
20522058
/// 2. Vendor-specific description of the parameter or return value.

0 commit comments

Comments
 (0)