|
How can i add support for smth like this? struct User
{
std::unordered_set<int> Payments;
std::chrono::year_month_day Birthday;
};
storage.insert(User{ ... }); |
Answered by
fnc12
Dec 9, 2023
Replies: 1 comment 3 replies
|
how would you encode |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok I see. One can bind any custom type if you know how to map it to raw SQLite values and back. Check these examples
https://github.com/fnc12/sqlite_orm/blob/master/examples/enum_binding.cpp
https://github.com/fnc12/sqlite_orm/blob/master/examples/nullable_enum_binding.cpp