-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69d94bd
commit 91ef4d7
Showing
9 changed files
with
662 additions
and
37 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
## class kuzu::main::DataTypeInfo | ||
|
||
|
||
|
||
--- | ||
|
||
## class kuzu::main::QueryResult | ||
|
||
QueryResult stores the result of a query execution. | ||
|
||
--- | ||
|
||
```c++ | ||
QueryResult (const PreparedSummary & preparedSummary) | ||
``` | ||
Creates a QueryResult object. | ||
|
||
**Parameters** | ||
- `preparedSummary` stores compiling time and query options. | ||
|
||
--- | ||
|
||
```c++ | ||
std::vector<common::DataType> getColumnDataTypes () | ||
``` | ||
|
||
**Returns:** | ||
- dataType of each column in query result. | ||
|
||
--- | ||
|
||
```c++ | ||
std::vector<std::string> getColumnNames () | ||
``` | ||
|
||
**Returns:** | ||
- name of each column in query result. | ||
|
||
--- | ||
|
||
```c++ | ||
std::vector<std::unique_ptr<DataTypeInfo> > getColumnTypesInfo () | ||
``` | ||
|
||
**Returns:** | ||
- dataTypeInfo of each column. | ||
|
||
--- | ||
|
||
```c++ | ||
std::string getErrorMessage () | ||
``` | ||
|
||
**Returns:** | ||
- error message of the query execution if the query fails. | ||
|
||
--- | ||
|
||
```c++ | ||
std::shared_ptr<processor::FlatTuple> getNext () | ||
``` | ||
|
||
**Returns:** | ||
- next flat tuple in the query result. | ||
|
||
--- | ||
|
||
```c++ | ||
size_t getNumColumns () | ||
``` | ||
|
||
**Returns:** | ||
- number of columns in query result. | ||
|
||
--- | ||
|
||
```c++ | ||
uint64_t getNumTuples () | ||
``` | ||
|
||
**Returns:** | ||
- num of tuples in query result. | ||
|
||
--- | ||
|
||
```c++ | ||
QuerySummary* getQuerySummary () | ||
``` | ||
|
||
**Returns:** | ||
- query summary which stores the execution time, compiling time, plan and query options. | ||
|
||
--- | ||
|
||
```c++ | ||
bool hasNext () | ||
``` | ||
|
||
**Returns:** | ||
- whether there are more tuples to read. | ||
|
||
--- | ||
|
||
```c++ | ||
bool isSuccess () | ||
``` | ||
|
||
**Returns:** | ||
- query is executed successfully or not. | ||
|
||
--- | ||
|
||
```c++ | ||
void writeToCSV (const std::string & fileName, char delimiter = ',', char escapeCharacter = ''', char newline = 'n') | ||
``` | ||
writes the query result to a csv file. | ||
|
||
**Parameters** | ||
- `fileName` name of the csv file. | ||
- `delimiter` delimiter of the csv file. | ||
- `escapeCharacter` escape character of the csv file. | ||
- `newline` newline character of the csv file. | ||
|
||
--- | ||
|
||
###### API documentation generated using [Doxygenmd](https://github.com/d99kris/doxygenmd) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.