MCPcopy Create free account
hub / github.com/apache/arrow / CreatePreparedStatement

Method CreatePreparedStatement

c_glib/arrow-flight-sql-glib/server.cpp:686–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684 }
685
686 arrow::Result<arrow::flight::sql::ActionCreatePreparedStatementResult>
687 CreatePreparedStatement(
688 const arrow::flight::ServerCallContext &context,
689 const arrow::flight::sql::ActionCreatePreparedStatementRequest &request) override
690 {
691 auto gacontext = gaflight_server_call_context_new_raw(&context);
692 auto garequest = gaflightsql_create_prepared_statement_request_new_raw(&request);
693 GError *gerror = nullptr;
694 auto garesult = gaflightsql_server_create_prepared_statement(gaserver_,
695 gacontext,
696 garequest,
697 &gerror);
698 g_object_unref(garequest);
699 g_object_unref(gacontext);
700 if (gerror) {
701 return garrow_error_to_status(gerror,
702 arrow::StatusCode::UnknownError,
703 "[flight-sql-server][create-prepared-statement]");
704 }
705 auto garesult_priv =
706 GAFLIGHTSQL_CREATE_PREPARED_STATEMENT_RESULT_GET_PRIVATE(garesult);
707 auto flightsql_result = garesult_priv->result;
708 g_object_unref(garesult);
709 return flightsql_result;
710 }
711
712 arrow::Status
713 ClosePreparedStatement(

Callers

nothing calls this directly

Tested by

no test coverage detected