Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
lance::SqlQuery Class Reference

#include <lance/detail/declarations.hpp>

Public Member Functions

 SqlQuery (LanceSqlQuery *query)
 
 SqlQuery (SqlQuery &&) noexcept=default
 
SqlQuery & operator= (SqlQuery &&) noexcept=default
 
 SqlQuery (const SqlQuery &)=delete
 
SqlQuery & operator= (const SqlQuery &)=delete
 
ArrowStream into_stream ()
 

Detailed Description

Planned native SQL query result. Created by SqlQueryBuilder::build(); into_stream moves the query's native stream into a caller-owned ArrowStream and consumes this object, so it must not be used afterwards.

Definition at line 5233 of file declarations.hpp.

Constructor & Destructor Documentation

◆ SqlQuery() [1/3]

lance::SqlQuery::SqlQuery ( LanceSqlQuery * query)
explicit

◆ SqlQuery() [2/3]

lance::SqlQuery::SqlQuery ( SqlQuery && )
defaultnoexcept

◆ SqlQuery() [3/3]

lance::SqlQuery::SqlQuery ( const SqlQuery & )
delete

Member Function Documentation

◆ into_stream()

ArrowStream lance::SqlQuery::into_stream ( )

Move the query's native stream into a returned ArrowStream, consuming this query: the C entry point frees the query allocation on every return path, including errors, so the handle is released before the call and never closed again. The returned stream is owned by the caller and released exactly once. On error this object is already consumed; do not reuse it.

◆ operator=() [1/2]

SqlQuery & lance::SqlQuery::operator= ( const SqlQuery & )
delete

◆ operator=() [2/2]

SqlQuery & lance::SqlQuery::operator= ( SqlQuery && )
defaultnoexcept

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