1 | //===----------------------------------------------------------------------===// |
2 | // DuckDB |
3 | // |
4 | // duckdb/storage/magic_bytes.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/common/common.hpp" |
12 | |
13 | namespace duckdb { |
14 | class FileSystem; |
15 | |
16 | enum class DataFileType : uint8_t { |
17 | FILE_DOES_NOT_EXIST, // file does not exist |
18 | DUCKDB_FILE, // duckdb database file |
19 | SQLITE_FILE, // sqlite database file |
20 | PARQUET_FILE // parquet file |
21 | }; |
22 | |
23 | class MagicBytes { |
24 | public: |
25 | static DataFileType CheckMagicBytes(FileSystem *fs, const string &path); |
26 | }; |
27 | |
28 | } // namespace duckdb |
29 | |