Skip to content

Conversation

@taniabogatsch
Copy link
Contributor

/*!
Creates a table description object. Note that `duckdb_table_description_destroy` must be called on the resulting
table_description, even if the function returns `DuckDBError`.
* @param connection The connection context.
* @param catalog The catalog (database) name of the table, or `nullptr` for the default catalog.
* @param schema The schema of the table, or `nullptr` for the default schema.
* @param table The table name.
* @param out The resulting table description object.
* @return `DuckDBSuccess` on success or `DuckDBError` on failure.
*/
DUCKDB_API duckdb_state duckdb_table_description_create_ext(duckdb_connection connection, const char *catalog,
                                                            const char *schema, const char *table,
                                                            duckdb_table_description *out);
/*!
Obtain the column name at 'index'.
The out result must be destroyed with `duckdb_free`.
* @param table_description The table_description to query.
* @param index The index of the column to query.
* @return The column name.
*/
DUCKDB_API char *duckdb_table_description_get_column_name(duckdb_table_description table_description, idx_t index);

@duckdb-draftbot duckdb-draftbot marked this pull request as draft October 10, 2024 12:20
@taniabogatsch taniabogatsch marked this pull request as ready for review October 10, 2024 12:31
@Mytherin Mytherin merged commit dedddb9 into duckdb:feature Oct 15, 2024
@Mytherin
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants