/
UCS
/
sqlite_orm
Обзор
Документация
Войти
/
UCS
/
sqlite_orm
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
dev/storage_traits.h
37 строк
1 KB
klaus triendl
Corrected storage lookup in regard to non-unique DB objects
08 июл 2022, 17:14
08 июл 2022, 17:14
4a51800
Код
Авторство
О чём код?
#pragma once #include <tuple> // std::tuple #include "functional/cxx_type_traits_polyfill.h" #include "tuple_helper/tuple_filter.h" #include "tuple_helper/tuple_transformer.h" #include "type_traits.h" #include "storage_lookup.h" namespace sqlite_orm { namespace internal { namespace storage_traits { /** * DBO - db object (table) */ template<class DBO> struct storage_mapped_columns_impl : tuple_transformer<filter_tuple_t<elements_type_t<DBO>, is_column>, field_type_t> {}; template<> struct storage_mapped_columns_impl<polyfill::nonesuch> { using type = std::tuple<>; }; /** * DBOs - db_objects_tuple type * Lookup - mapped or unmapped data type */ template<class DBOs, class Lookup> struct storage_mapped_columns : storage_mapped_columns_impl<storage_find_table_t<Lookup, DBOs>> {}; } } }