Cppinecone
A C++ client for the Pinecone vector database
pinecone::domain::operation< Op, Dep > Struct Template Reference

Data common to all Pinecone API operation types. More...

#include <operation.hpp>

Public Member Functions

 operation (operation_args< Op, Dep > args) noexcept
 
constexpr auto method () const noexcept
 
constexpr auto set_opts (CURL *curl, curl_slist *headers) noexcept -> util::curl_result
 Set CURL options for the operation. More...
 

Static Public Attributes

static constexpr auto op_type = Op
 The type of the operation.
 

Detailed Description

template<operation_type Op, typename Dep = std::monostate>
struct pinecone::domain::operation< Op, Dep >

Data common to all Pinecone API operation types.

Definition at line 181 of file operation.hpp.

Member Function Documentation

◆ method()

template<operation_type Op, typename Dep = std::monostate>
constexpr auto pinecone::domain::operation< Op, Dep >::method ( ) const
inlineconstexprnoexcept
Returns
the HTTP method associated with the operation

Definition at line 195 of file operation.hpp.

◆ set_opts()

template<operation_type Op, typename Dep = std::monostate>
constexpr auto pinecone::domain::operation< Op, Dep >::set_opts ( CURL *  curl,
curl_slist *  headers 
) -> util::curl_result
inlineconstexprnoexcept

Set CURL options for the operation.

Parameters
curlthe initialized curl object
headersheaders common to all API operations
Returns
the result

Definition at line 204 of file operation.hpp.

Referenced by pinecone::net::http_client< threading_mode::sync >::request().


The documentation for this struct was generated from the following file: