forked from duckdb/duckdb-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpystatement.hpp
More file actions
35 lines (27 loc) · 777 Bytes
/
Copy pathpystatement.hpp
File metadata and controls
35 lines (27 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb_python/pystatement.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb_python/nb/casters.hpp"
#include "duckdb.hpp"
namespace duckdb {
struct DuckDBPyStatement {
public:
explicit DuckDBPyStatement(unique_ptr<SQLStatement> statement);
public:
//! Create a copy of the wrapped statement
unique_ptr<SQLStatement> GetStatement();
string Query() const;
nb::set NamedParameters() const;
StatementType Type() const;
nb::list ExpectedResultType() const;
public:
static void Initialize(nb::handle &m);
private:
unique_ptr<SQLStatement> statement;
};
} // namespace duckdb