This file is indexed.

/usr/include/libpreludedb/preludedb-sql.hxx is in libpreludedb-dev 4.1.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#ifndef _LIBPRELUDE_PRELUDEDB_SQL_HXX
#define _LIBPRELUDE_PRELUDEDB_SQL_HXX

#include <string>
#include <vector>
#include <map>

#include <libprelude/prelude.hxx>

#include "preludedb.h"

using namespace std;

namespace PreludeDB {
        class SQL {
            private:
                preludedb_sql_t *_sql;

            public:
                class Table {
                    private:
                        preludedb_sql_table_t *_table;

                    public:
                        class Row {
                            private:
                                preludedb_sql_row_t *_row;

                            public:
                                ~Row();
                                Row();
                                Row(preludedb_sql_row_t *row);
                                Row(const Row &row);

                                unsigned int getFieldCount();
                                unsigned int count() { return getFieldCount(); };

                                const char *getField(unsigned int num);
                                const char *getField(const std::string &name);

                                const char *get(unsigned int num) { return getField(num); };
                                const char *get(const std::string &name) { return getField(name); };

                                SQL::Table::Row &operator = (const SQL::Table::Row &row);

                                std::string toString(void);

                                const char *operator[] (unsigned int num) {
                                        return get(num);
                                };

                                const char *operator[] (const std::string &name) {
                                        return get(name);
                                };
                        };

                        ~Table();
                        Table(preludedb_sql_table_t *table);
                        Table(const Table &table);
                        Table(void) { _table = NULL; };

                        const char *getColumnName(unsigned int column_num);
                        int getColumnNum(const std::string &column_name);

                        unsigned int getColumnCount();
                        unsigned int getRowCount();
                        unsigned int count() { return getRowCount(); };

                        SQL::Table::Row *fetch(void);
                        SQL::Table::Row *get(unsigned int row_index);

                        std::string toString(void);

                        SQL::Table &operator = (const SQL::Table &table);

                };

                ~SQL();
                SQL &operator = (const SQL &sql);
                SQL(const char *settings);
                SQL(const std::map<std::string,std::string> &settings);

                long getServerVersion();

                SQL::Table query(const std::string &query);
                void transactionStart(void);
                void transactionEnd(void);
                void transactionAbort(void);
                std::string escape(const char *str);
                std::string escape(const std::string &str);
                std::string escapeBinary(const std::string &str);
                uint64_t getLastInsertIdent(void);
                std::string getType(void) { return preludedb_sql_get_type(_sql); };

                operator preludedb_sql_t *() const;
        };
};

#endif