class DuckDB::PendingResult
result = pending_result.execute_pending
end
pending_result.execute_task
sleep(0.01)
print ‘.’
while pending_result.state == :not_ready
pending_result = stmt.pending_prepared
stmt = con.prepared_statement(VERY_SLOW_QUERY)
con = db.connect
db = DuckDB::Database.open
require ‘duckdb’
if the result is ready and to get the result.
PendingResult provides methods to execute SQL asynchronousely and check
result.
The DuckDB::PendingResult encapsulates connection with DuckDB pending
def execute_check_state
-
(symbol)- :ready, :not_ready, :error, :no_tasks
def execute_check_state STATES[_execute_check_state] end
def state
-
(symbol)- :ready, :not_ready, :error, :no_tasks
def state STATES[_state] end