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

Function DoGetSQLiteQuery

cpp/src/arrow/flight/sql/example/sqlite_server.cc:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118arrow::Result<std::unique_ptr<FlightDataStream>> DoGetSQLiteQuery(
119 sqlite3* db, const std::string& query, const std::shared_ptr<Schema>& schema) {
120 std::shared_ptr<SqliteStatement> statement;
121
122 ARROW_ASSIGN_OR_RAISE(statement, SqliteStatement::Create(db, query));
123
124 std::shared_ptr<SqliteStatementBatchReader> reader;
125 ARROW_ASSIGN_OR_RAISE(reader, SqliteStatementBatchReader::Create(statement, schema));
126
127 return std::make_unique<RecordBatchStream>(reader);
128}
129
130arrow::Result<std::unique_ptr<FlightInfo>> GetFlightInfoForCommand(
131 const FlightDescriptor& descriptor, const std::shared_ptr<Schema>& schema) {

Callers 5

DoGetTableTypesMethod · 0.85
DoGetPrimaryKeysMethod · 0.85
DoGetImportedKeysMethod · 0.85
DoGetExportedKeysMethod · 0.85
DoGetCrossReferenceMethod · 0.85

Calls 1

ARROW_ASSIGN_OR_RAISEFunction · 0.50

Tested by

no test coverage detected