Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/sqlgen/duckdb/Connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "../internal/remove_auto_incr_primary_t.hpp"
#include "../internal/to_container.hpp"
#include "../is_connection.hpp"
#include "../sqlgen_api.hpp"
#include "./parsing/Parser_default.hpp"
#include "DuckDBAppender.hpp"
#include "DuckDBConnection.hpp"
Expand All @@ -32,7 +33,7 @@

namespace sqlgen::duckdb {

class Connection {
class SQLGEN_API Connection {
using ConnPtr = Ref<DuckDBConnection>;

public:
Expand Down
3 changes: 2 additions & 1 deletion include/sqlgen/duckdb/DuckDBAppender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

#include <string>

#include "../sqlgen_api.hpp"
#include "DuckDBConnection.hpp"

namespace sqlgen::duckdb {

class DuckDBAppender {
class SQLGEN_API DuckDBAppender {
using ConnPtr = Ref<DuckDBConnection>;

public:
Expand Down
3 changes: 2 additions & 1 deletion include/sqlgen/duckdb/DuckDBConnection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

#include "../Ref.hpp"
#include "../Result.hpp"
#include "../sqlgen_api.hpp"

namespace sqlgen::duckdb {

class DuckDBConnection {
class SQLGEN_API DuckDBConnection {
public:
static Result<Ref<DuckDBConnection>> make(
const std::optional<std::string>& _fname);
Expand Down
3 changes: 2 additions & 1 deletion include/sqlgen/duckdb/DuckDBResult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

#include <string>

#include "../sqlgen_api.hpp"
#include "DuckDBConnection.hpp"

namespace sqlgen::duckdb {

class DuckDBResult {
class SQLGEN_API DuckDBResult {
using ConnPtr = Ref<DuckDBConnection>;

public:
Expand Down
3 changes: 2 additions & 1 deletion include/sqlgen/duckdb/to_sql.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#include <string>

#include "../dynamic/Statement.hpp"
#include "../sqlgen_api.hpp"
#include "../transpilation/to_sql.hpp"

namespace sqlgen::duckdb {

/// Transpiles a dynamic general SQL statement to the duckdb dialect.
std::string to_sql_impl(const dynamic::Statement& _stmt) noexcept;
SQLGEN_API std::string to_sql_impl(const dynamic::Statement& _stmt) noexcept;

/// Transpiles any SQL statement to the duckdb dialect.
template <class T>
Expand Down
Loading