Skip to content

Commit

Permalink
Included <sqlite3.h> explicitly in examples and unit tests
Browse files Browse the repository at this point in the history
When importing sqlite_orm as a named module, sqlite3 symbols are not exported.
  • Loading branch information
trueqbit committed Jul 18, 2024
1 parent 5b515ca commit 1ab8076
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/blob_binding.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>
#include <iostream>

Expand Down
6 changes: 6 additions & 0 deletions examples/chrono_binding.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>
#ifdef __has_include
#if __has_include(<version>)
#include <version>
#endif
#endif
#if __cpp_lib_chrono >= 201907L && __cpp_lib_format >= 201907L
#define ENABLE_THIS_EXAMPLE
#endif
Expand Down
2 changes: 1 addition & 1 deletion examples/enum_binding.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion examples/nullable_enum_binding.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>
#include <iostream>
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions tests/row_extractor.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch_all.hpp>

Expand Down
1 change: 1 addition & 0 deletions tests/static_tests/row_extractor.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>
#ifdef SQLITE_ORM_CPP20_CONCEPTS_SUPPORTED
#define ENABLE_THIS_UT
Expand Down
1 change: 1 addition & 0 deletions tests/storage_non_crud_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch_all.hpp>

Expand Down

0 comments on commit 1ab8076

Please sign in to comment.