-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed vestigial Sqlite package, removed version fixing on mongocxx(…
… for some reason this makes it compile) Current new issue: Certain mongocxx header files such as server_api.hpp don't exist for the project.
- Loading branch information
Showing
5 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "PCH.hpp" | ||
|
||
#include "Core/Database.hpp" | ||
|
||
using bsoncxx::builder::basic::kvp; | ||
using bsoncxx::builder::basic::make_array; | ||
using bsoncxx::builder::basic::make_document; | ||
using bsoncxx::builder::stream::document; | ||
|
||
Database::Database(const std::string& uri) | ||
{ | ||
try | ||
{ | ||
const auto mongoURI = mongocxx::uri{ uri }; | ||
mongocxx::options::client clientOptions; | ||
//TODO: Why does this server_api object not exist? It is on both the spike and documentation. | ||
const auto api = mongocxx::options::server_api{ mongocxx::options::server_api::version::k_version_1 }; | ||
|
||
|
||
} | ||
catch (std::exception& err) | ||
{ | ||
Logger::Log(LogLevel::Err, StringUtils::stows(std::string(err.what()))); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters