mirror of
https://github.com/getml/sqlgen.git
synced 2026-01-01 06:59:42 -06:00
Made sure that the postgres module compiles
This commit is contained in:
@@ -58,6 +58,7 @@ target_include_directories(
|
||||
$<INSTALL_INTERFACE:include>)
|
||||
|
||||
if (SQLGEN_POSTGRES)
|
||||
list(APPEND SQLGEN_SOURCES src/sqlgen_postgres.cpp)
|
||||
if (NOT TARGET PostgreSQL)
|
||||
find_package(PostgreSQL REQUIRED)
|
||||
endif()
|
||||
|
||||
@@ -46,8 +46,12 @@ class Connection : public sqlgen::Connection {
|
||||
const std::vector<std::vector<std::optional<std::string>>>& _data) final;
|
||||
|
||||
private:
|
||||
static rfl::Result<Ref<sqlgen::Connection>> make_conn(
|
||||
const std::string& _conn_str);
|
||||
static ConnPtr make_conn(const std::string& _conn_str);
|
||||
|
||||
private:
|
||||
ConnPtr conn_;
|
||||
|
||||
Credentials credentials_;
|
||||
};
|
||||
|
||||
} // namespace sqlgen::postgres
|
||||
|
||||
2
src/sqlgen_postgres.cpp
Normal file
2
src/sqlgen_postgres.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
#include "sqlgen/postgres/Connection.cpp"
|
||||
#include "sqlgen/postgres/Iterator.cpp"
|
||||
Reference in New Issue
Block a user