diff --git a/include/sqlite_orm/sqlite_orm.h b/include/sqlite_orm/sqlite_orm.h index 8e47be88f..f47608156 100644 --- a/include/sqlite_orm/sqlite_orm.h +++ b/include/sqlite_orm/sqlite_orm.h @@ -8761,6 +8761,12 @@ namespace sqlite_orm { prepared_statement_t(T t_, sqlite3_stmt* stmt_, connection_ref con_) : prepared_statement_base{stmt_, std::move(con_)}, t(std::move(t_)) {} + + + prepared_statement_t(prepared_statement_t && prepared_stmt) : + prepared_statement_base{prepared_stmt.stmt, std::move(prepared_stmt.con)}, t(std::move(prepared_stmt.t)) { + prepared_stmt.stmt = nullptr; + } }; template @@ -13744,6 +13750,16 @@ namespace sqlite_orm { } public: + + template + std::vector get_table_info() const { + this->assert_mapped_type(); + + auto & tInfo = this->get_impl(); + + return tInfo.table.get_table_info(); + } + template view_t iterate(Args&&... args) { this->assert_mapped_type();