|
|
DUCKDB_API | Connection (DuckDB &database) |
| |
|
DUCKDB_API | Connection (DatabaseInstance &database) |
| |
|
| Connection (const Connection &other)=delete |
| |
|
Connection & | operator= (const Connection &)=delete |
| |
|
DUCKDB_API | Connection (Connection &&other) noexcept |
| | enable move constructors
|
| |
|
DUCKDB_API Connection & | operator= (Connection &&) noexcept |
| |
|
DUCKDB_API string | GetProfilingInformation (ProfilerPrintFormat format=ProfilerPrintFormat::QUERY_TREE) |
| | Returns query profiling information for the current query.
|
| |
|
DUCKDB_API optional_ptr< ProfilingNode > | GetProfilingTree () |
| | Returns the first node of the query profiling tree.
|
| |
|
DUCKDB_API void | Interrupt () |
| | Interrupt execution of the current query.
|
| |
|
DUCKDB_API double | GetQueryProgress () |
| | Get query progress of current query.
|
| |
|
DUCKDB_API void | EnableProfiling () |
| | Enable query profiling.
|
| |
|
DUCKDB_API void | DisableProfiling () |
| | Disable query profiling.
|
| |
|
DUCKDB_API void | EnableQueryVerification () |
| | Enable aggressive verification/testing of queries, should only be used in testing.
|
| |
|
DUCKDB_API void | DisableQueryVerification () |
| |
|
DUCKDB_API void | ForceParallelism () |
| | Force parallel execution, even for smaller tables. Should only be used in testing.
|
| |
| DUCKDB_API unique_ptr< QueryResult > | SendQuery (const string &query, QueryParameters query_parameters=QueryResultOutputType::ALLOW_STREAMING) |
| |
|
DUCKDB_API unique_ptr< QueryResult > | SendQuery (unique_ptr< SQLStatement > statement, QueryParameters query_parameters=QueryResultOutputType::ALLOW_STREAMING) |
| |
| DUCKDB_API unique_ptr< MaterializedQueryResult > | Query (const string &query) |
| |
| DUCKDB_API unique_ptr< MaterializedQueryResult > | Query (unique_ptr< SQLStatement > statement, QueryResultMemoryType memory_type=QueryResultMemoryType::IN_MEMORY) |
| |
| template<typename... ARGS> |
| unique_ptr< QueryResult > | Query (const string &query, ARGS... args) |
| |
| DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (const string &query, QueryParameters query_parameters=QueryResultOutputType::FORCE_MATERIALIZED) |
| |
|
DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (unique_ptr< SQLStatement > statement, QueryParameters query_parameters=QueryResultOutputType::FORCE_MATERIALIZED) |
| | Issues a query to the database and returns a Pending Query Result.
|
| |
|
DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (unique_ptr< SQLStatement > statement, case_insensitive_map_t< BoundParameterData > &named_values, QueryParameters query_parameters=QueryResultOutputType::FORCE_MATERIALIZED) |
| |
|
DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (const string &query, case_insensitive_map_t< BoundParameterData > &named_values, QueryParameters query_parameters=QueryResultOutputType::FORCE_MATERIALIZED) |
| |
|
DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (const string &query, vector< Value > &values, QueryParameters query_parameters=QueryResultOutputType::FORCE_MATERIALIZED) |
| |
|
DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (const string &query, PendingQueryParameters parameters) |
| |
|
DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (unique_ptr< SQLStatement > statement, vector< Value > &values, QueryParameters query_parameters=QueryResultOutputType::FORCE_MATERIALIZED) |
| |
|
DUCKDB_API unique_ptr< PreparedStatement > | Prepare (const string &query) |
| | Prepare the specified query, returning a prepared statement object.
|
| |
|
DUCKDB_API unique_ptr< PreparedStatement > | Prepare (unique_ptr< SQLStatement > statement) |
| | Prepare the specified statement, returning a prepared statement object.
|
| |
|
DUCKDB_API unique_ptr< TableDescription > | TableInfo (const string &database_name, const string &schema_name, const string &table_name) |
| | Get the table info of a specific table, or nullptr if it cannot be found.
|
| |
|
DUCKDB_API unique_ptr< TableDescription > | TableInfo (const string &schema_name, const string &table_name) |
| | Get the table info of a specific table, or nullptr if it cannot be found. Uses INVALID_CATALOG.
|
| |
| DUCKDB_API unique_ptr< TableDescription > | TableInfo (const string &table_name) |
| |
|
DUCKDB_API vector< unique_ptr< SQLStatement > > | ExtractStatements (const string &query) |
| | Extract a set of SQL statements from a specific query.
|
| |
|
DUCKDB_API unique_ptr< LogicalOperator > | ExtractPlan (const string &query) |
| | Extract the logical plan that corresponds to a query.
|
| |
|
DUCKDB_API void | Append (TableDescription &description, ColumnDataCollection &collection) |
| | Appends a ColumnDataCollection to the described table.
|
| |
|
DUCKDB_API shared_ptr< Relation > | Table (const string &tname) |
| | Returns a relation that produces a table from this connection.
|
| |
|
DUCKDB_API shared_ptr< Relation > | Table (const string &schema_name, const string &table_name) |
| |
|
DUCKDB_API shared_ptr< Relation > | Table (const string &catalog_name, const string &schema_name, const string &table_name) |
| |
|
DUCKDB_API shared_ptr< Relation > | View (const string &tname) |
| | Returns a relation that produces a view from this connection.
|
| |
|
DUCKDB_API shared_ptr< Relation > | View (const string &schema_name, const string &table_name) |
| |
|
DUCKDB_API shared_ptr< Relation > | TableFunction (const string &tname) |
| | Returns a relation that calls a specified table function.
|
| |
|
DUCKDB_API shared_ptr< Relation > | TableFunction (const string &tname, const vector< Value > &values, const named_parameter_map_t &named_parameters) |
| |
|
DUCKDB_API shared_ptr< Relation > | TableFunction (const string &tname, const vector< Value > &values) |
| |
|
DUCKDB_API shared_ptr< Relation > | Values (const vector< vector< Value > > &values) |
| | Returns a relation that produces values.
|
| |
|
DUCKDB_API shared_ptr< Relation > | Values (vector< vector< unique_ptr< ParsedExpression > > > &&values) |
| |
|
DUCKDB_API shared_ptr< Relation > | Values (const vector< vector< Value > > &values, const vector< string > &column_names, const string &alias="values") |
| |
|
DUCKDB_API shared_ptr< Relation > | Values (const string &values) |
| |
|
DUCKDB_API shared_ptr< Relation > | Values (const string &values, const vector< string > &column_names, const string &alias="values") |
| |
|
DUCKDB_API shared_ptr< Relation > | ReadCSV (const string &csv_file) |
| | Reads CSV file.
|
| |
|
DUCKDB_API shared_ptr< Relation > | ReadCSV (const vector< string > &csv_input, named_parameter_map_t &&options) |
| |
|
DUCKDB_API shared_ptr< Relation > | ReadCSV (const string &csv_input, named_parameter_map_t &&options) |
| |
|
DUCKDB_API shared_ptr< Relation > | ReadCSV (const string &csv_file, const vector< string > &columns) |
| |
|
DUCKDB_API shared_ptr< Relation > | ReadParquet (const string &parquet_file, bool binary_as_string) |
| | Reads Parquet file.
|
| |
|
DUCKDB_API shared_ptr< Relation > | RelationFromQuery (const string &query, const string &alias="queryrelation", const string &error="Expected a single SELECT statement") |
| | Returns a relation from a query.
|
| |
|
DUCKDB_API shared_ptr< Relation > | RelationFromQuery (unique_ptr< SelectStatement > select_stmt, const string &alias="queryrelation", const string &query="") |
| |
|
DUCKDB_API void | BeginTransaction () |
| |
|
DUCKDB_API void | Commit () |
| |
|
DUCKDB_API void | Rollback () |
| |
|
DUCKDB_API void | SetAutoCommit (bool auto_commit) |
| |
|
DUCKDB_API bool | IsAutoCommit () |
| |
|
DUCKDB_API bool | HasActiveTransaction () |
| |
| DUCKDB_API unordered_set< string > | GetTableNames (const string &query, const bool qualified=false) |
| |
| template<typename TR , typename... ARGS> |
| void | CreateScalarFunction (const string &name, TR(*udf_func)(ARGS...)) |
| |
| template<typename TR , typename... ARGS> |
| void | CreateScalarFunction (const string &name, vector< LogicalType > args, LogicalType ret_type, TR(*udf_func)(ARGS...)) |
| |
| template<typename TR , typename... ARGS> |
| void | CreateVectorizedFunction (const string &name, scalar_function_t udf_func, LogicalType varargs=LogicalType::INVALID) |
| |
| void | CreateVectorizedFunction (const string &name, vector< LogicalType > args, LogicalType ret_type, scalar_function_t udf_func, LogicalType varargs=LogicalType::INVALID) |
| |
| template<typename UDF_OP , typename STATE , typename TR , typename TA > |
| void | CreateAggregateFunction (const string &name) |
| |
| template<typename UDF_OP , typename STATE , typename TR , typename TA , typename TB > |
| void | CreateAggregateFunction (const string &name) |
| |
| template<typename UDF_OP , typename STATE , typename TR , typename TA > |
| void | CreateAggregateFunction (const string &name, LogicalType ret_type, LogicalType input_type_a) |
| |
| template<typename UDF_OP , typename STATE , typename TR , typename TA , typename TB > |
| void | CreateAggregateFunction (const string &name, LogicalType ret_type, LogicalType input_type_a, LogicalType input_type_b) |
| |
| void | CreateAggregateFunction (const string &name, const vector< LogicalType > &arguments, const LogicalType &return_type, aggregate_size_t state_size, aggregate_initialize_t initialize, aggregate_update_t update, aggregate_combine_t combine, aggregate_finalize_t finalize, aggregate_simple_update_t simple_update=nullptr, bind_aggregate_function_t bind=nullptr, aggregate_destructor_t destructor=nullptr) |
| |
A connection to a database. This represents a (client) connection that can be used to query the database.