1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/common/enums/scan_options.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/common/constants.hpp"
12
13namespace duckdb {
14
15enum class TableScanType : uint8_t {
16 //! Regular table scan: scan all tuples that are relevant for the current transaction
17 TABLE_SCAN_REGULAR = 0,
18 //! Scan all rows, including any deleted rows. Committed updates are merged in.
19 TABLE_SCAN_COMMITTED_ROWS = 1,
20 //! Scan all rows, including any deleted rows. Throws an exception if there are any uncommitted updates.
21 TABLE_SCAN_COMMITTED_ROWS_DISALLOW_UPDATES = 2,
22 //! Scan all rows, excluding any permanently deleted rows.
23 //! Permanently deleted rows are rows which no transaction will ever need again.
24 TABLE_SCAN_COMMITTED_ROWS_OMIT_PERMANENTLY_DELETED = 3
25};
26
27} // namespace duckdb
28