@@ -13782,7 +13782,7 @@ SQLITE_ORM_EXPORT namespace sqlite_orm {
1378213782#ifndef SQLITE_ORM_IMPORT_STD_MODULE
1378313783#ifdef SQLITE_ORM_REFLECTION_SUPPORTED
1378413784#include <meta> // std::meta::access_context, std::meta::nonstatic_data_members_of, std::meta::identifier_of
13785- #include <tuple> // std::tuple, std::get
13785+ #include <tuple> // std::tuple
1378613786#include <utility> // std::index_sequence, std::make_index_sequence
1378713787#endif
1378813788#endif
@@ -13896,7 +13896,7 @@ namespace sqlite_orm::internal {
1389613896#ifdef SQLITE_ORM_WITH_VIEW
1389713897#ifdef SQLITE_ORM_REFLECTION_SUPPORTED
1389813898namespace sqlite_orm::internal {
13899- template<class O, class Select, std:: size_t... I>
13899+ template<class O, class Select, size_t... I>
1390013900 auto make_view(std::string name, std::index_sequence<I...>, Select select) {
1390113901 constexpr auto memberNames = extract_member_names<O>();
1390213902 constexpr auto memberPointers = extract_member_pointers<O>();
@@ -13913,6 +13913,12 @@ namespace sqlite_orm::internal {
1391313913}
1391413914
1391513915SQLITE_ORM_EXPORT namespace sqlite_orm {
13916+ /**
13917+ * Factory function for a view definition.
13918+ *
13919+ * The mapped object type is explicitly specified, columns and their names are deferred from the object type.
13920+ * The object type must be an aggregate.
13921+ */
1391613922 template<class O, class Select>
1391713923 requires (internal::is_select_expression_v<Select>)
1391813924 auto make_view(std::string name, Select select) {
0 commit comments