Wrap the iterator in a Ref

This commit is contained in:
Dr. Patrick Urbanke
2025-03-22 03:26:35 +01:00
parent bf4f1a256e
commit 4b88ed886d

View File

@@ -5,6 +5,7 @@
#include <vector>
#include "Iterator.hpp"
#include "Ref.hpp"
#include "Result.hpp"
#include "dynamic/CreateTable.hpp"
#include "dynamic/Insert.hpp"
@@ -20,7 +21,7 @@ struct Connection {
virtual Result<Nothing> execute(const CreateTable& _stmt) = 0;
/// Reads the results of a SelectFrom statement.
virtual Result<Iterator> read(const dynamic::SelectFrom& _query) = 0;
virtual Result<Ref<Iterator>> read(const dynamic::SelectFrom& _query) = 0;
/// Writes data into a table. Each vector in data MUST have the same length as
/// _stmt.columns.