//===----------------------------------------------------------------------===// // DuckDB // // duckdb/main/relation/limit_relation.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/main/relation.hpp" namespace duckdb { class LimitRelation : public Relation { public: DUCKDB_API LimitRelation(shared_ptr child, int64_t limit, int64_t offset); int64_t limit; int64_t offset; shared_ptr child; public: unique_ptr GetQueryNode() override; const vector &Columns() override; string ToString(idx_t depth) override; string GetAlias() override; public: bool InheritsColumnBindings() override { return true; } Relation *ChildRelation() override { return child.get(); } }; } // namespace duckdb