-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathmysql_scanner.hpp
49 lines (40 loc) · 1.05 KB
/
mysql_scanner.hpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//===----------------------------------------------------------------------===//
// DuckDB
//
// mysql_scanner.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb.hpp"
#include "mysql_utils.hpp"
#include "mysql_connection.hpp"
namespace duckdb {
class MySQLTableEntry;
class MySQLTransaction;
struct MySQLBindData : public FunctionData {
explicit MySQLBindData(MySQLTableEntry &table) : table(table) {
}
MySQLTableEntry &table;
vector<MySQLType> mysql_types;
vector<string> names;
vector<LogicalType> types;
//Filter pushdown to apply
vector<unique_ptr<Expression>> filters_to_apply;
public:
unique_ptr<FunctionData> Copy() const override {
throw NotImplementedException("");
}
bool Equals(const FunctionData &other_p) const override {
return false;
}
};
class MySQLScanFunction : public TableFunction {
public:
MySQLScanFunction();
};
class MySQLClearCacheFunction : public TableFunction {
public:
MySQLClearCacheFunction();
};
} // namespace duckdb