Skip to content

Commit

Permalink
Merge branch 'upstream/dev' into feature/modules-support
Browse files Browse the repository at this point in the history
  • Loading branch information
trueqbit committed Jul 22, 2024
2 parents 1a3d518 + 8c15e4b commit ea04817
Show file tree
Hide file tree
Showing 7 changed files with 343 additions and 85 deletions.
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ for:
install:
- |-
cd C:\Tools\vcpkg
git fetch --tags && git checkout 2024.06.15
git fetch --tags && git checkout 2024.07.12
cd %APPVEYOR_BUILD_FOLDER%
C:\Tools\vcpkg\bootstrap-vcpkg.bat -disableMetrics
C:\Tools\vcpkg\vcpkg integrate install
Expand Down Expand Up @@ -146,7 +146,7 @@ for:
install:
- |-
pushd $HOME/vcpkg
git fetch --tags && git checkout 2024.06.15
git fetch --tags && git checkout 2024.07.12
popd
$HOME/vcpkg/bootstrap-vcpkg.sh -disableMetrics
$HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets
Expand Down Expand Up @@ -174,7 +174,7 @@ for:
# using custom vcpkg triplets for building and linking dynamic dependent libraries
install:
- |-
git clone --depth 1 --branch 2024.06.15 https://github.com/microsoft/vcpkg.git $HOME/vcpkg
git clone --depth 1 --branch 2024.07.12 https://github.com/microsoft/vcpkg.git $HOME/vcpkg
$HOME/vcpkg/bootstrap-vcpkg.sh -disableMetrics
$HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets
vcpkg install sqlite3[core,dbstat,math,json1,fts5,soundex] catch2 --overlay-triplets=vcpkg/triplets
Expand Down
14 changes: 7 additions & 7 deletions dev/pragma.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ namespace sqlite_orm {
auto& res = *(std::vector<sqlite_orm::table_xinfo>*)data;
if(argc) {
auto index = 0;
auto cid = std::atoi(argv[index++]);
auto cid = atoi(argv[index++]);
std::string name = argv[index++];
std::string type = argv[index++];
bool notnull = !!std::atoi(argv[index++]);
bool notnull = !!atoi(argv[index++]);
std::string dflt_value = argv[index] ? argv[index] : "";
++index;
auto pk = std::atoi(argv[index++]);
auto hidden = std::atoi(argv[index++]);
auto pk = atoi(argv[index++]);
auto hidden = atoi(argv[index++]);
res.emplace_back(cid,
std::move(name),
std::move(type),
Expand Down Expand Up @@ -188,13 +188,13 @@ namespace sqlite_orm {
auto& res = *(std::vector<sqlite_orm::table_info>*)data;
if(argc) {
auto index = 0;
auto cid = std::atoi(argv[index++]);
auto cid = atoi(argv[index++]);
std::string name = argv[index++];
std::string type = argv[index++];
bool notnull = !!std::atoi(argv[index++]);
bool notnull = !!atoi(argv[index++]);
std::string dflt_value = argv[index] ? argv[index] : "";
++index;
auto pk = std::atoi(argv[index++]);
auto pk = atoi(argv[index++]);
res.emplace_back(cid, std::move(name), std::move(type), notnull, std::move(dflt_value), pk);
}
return 0;
Expand Down
4 changes: 2 additions & 2 deletions dev/statement_binder.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#include <memory> // std::default_delete
#include <string> // std::string, std::wstring
#include <vector> // std::vector
#include <cstring> // ::strncpy, ::strlen
#include <cstring> // strncpy, strlen
#include "functional/cxx_string_view.h"
#ifndef SQLITE_ORM_STRING_VIEW_SUPPORTED
#include <cwchar> // ::wcsncpy, ::wcslen
#include <cwchar> // wcsncpy, wcslen
#endif
#ifndef SQLITE_ORM_OMITS_CODECVT
#include <locale> // std::wstring_convert
Expand Down
3 changes: 2 additions & 1 deletion dev/storage_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <sqlite3.h>
#ifndef _IMPORT_STD_MODULE
#include <cstdlib> // atoi
#include <memory> // std::allocator
#include <functional> // std::function, std::bind, std::bind_front
#include <string> // std::string
Expand Down Expand Up @@ -171,7 +172,7 @@ namespace sqlite_orm {
[](void* data, int argc, char** argv, char** /*azColName*/) -> int {
auto& res = *(bool*)data;
if(argc) {
res = !!std::atoi(argv[0]);
res = !!atoi(argv[0]);
}
return 0;
},
Expand Down
Loading

0 comments on commit ea04817

Please sign in to comment.