Conversation
`c_str()` expresses the intent better than `data()`
Note: C++ reflection-based approach isn't implemented yet.
* Removed `serializer_context_builder`, which is now entirely replaced by `obtain_db_objects()`. * Renamed serializer context flag variables.
* Factored out common functionality into common base classes and mixins. * Renamed structures. * Split CTE table class into its own structure, effectively decoupling it from a table DBO.
It is better to include configuration header files of third-party libraries (including SQLite) in the library's configuration header than in the umbrella header.
clang/gcc use an intrinsic compiler builtin [`__builtin_offsetof`], which doesn't work the way we need.
sqlite_orm's policy is to provide an API without external dependencies (even if implicit).
Open
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Views in SQL are virtual tables based on the result-set of a SELECT statement, also known as query views.
With sqlite_orm, views are defined using make_view() which leverages C++ reflection to automatically map columns from the SELECT statement to struct fields.
SQL views created with make_view() don't require explicit column definitions - the columns are automatically determined from the view's object type through reflection.
Resolves the following discussions and tickets:
Note: There are no tests executed yet as no github action platform (Linux Ubuntu) provides gcc-16 binaries. However I tested the "view" example and unit tests in a local Windows Subsystem for Linux (WSL) environment.