-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathIndex.h
More file actions
17 lines (15 loc) · 525 Bytes
/
Copy pathIndex.h
File metadata and controls
17 lines (15 loc) · 525 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include <QString>
#include <QStringList>
// Represents a single index on a table, as read from PRAGMA index_list /
// PRAGMA index_info. SQLite's own implicit indexes for PRIMARY KEY /
// UNIQUE constraints (named sqlite_autoindex_...) are filtered out by
// Schema::load - they can't be dropped directly and aren't something a
// user would manage by hand, so only explicitly-created indexes show up.
struct Index
{
QString name;
QString table;
QStringList columns;
bool isUnique = false;
};