This file is indexed.

/usr/share/libkface/database/dbfaceconfig.xml is in libkf5kface-data 15.12.0-3.

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
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * ============================================================
 *
 * This file is a part of libkface project
 * Based on the similarly named file from the digikam project
 * http://www.digikam.org
 *
 * Date        : 2013-05-13
 * Description : Database statements
 *
 * Copyright (C) 2009      by Holger Foerster <hamsi2k at freenet dot de>
 * Copyright (C) 2009-2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
 * Public License as published by the Free Software Foundation;
 * either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * ============================================================
 -->

<databaseconfig>
    <defaultDB>QSQLITE</defaultDB>

    <!-- Increment this version number whenever you change this file.
         On version mismatch, users will be warned.
         Don't forget to update DatabaseFaceSchemaUpdater::schemaVersion()
    -->
    <version>2</version>

    <database name="QSQLITE">
        <hostName>TestHost</hostName>
        <databaseName>DatabaseName</databaseName>
        <userName>UserName</userName>
        <password>Password</password>
        <port>Port</port>
        <connectoptions>ConnectOptions</connectoptions>
        <dbservercmd></dbservercmd>
        <dbinitcmd></dbinitcmd>

        <dbactions>
              <dbaction name="CreateDB" mode="transaction">
                  <statement mode="plain">
                      CREATE TABLE Settings
                      (keyword TEXT NOT NULL UNIQUE,
                       value TEXT)
                  </statement>
                  <statement mode="plain">
                      CREATE TABLE Identities
                      (id INTEGER PRIMARY KEY,
                       type INTEGER)
                  </statement>
                  <statement mode="plain">
                      CREATE TABLE IdentityAttributes
                      (id INTEGER,
                       attribute TEXT,
                       value TEXT)
                  </statement>
              </dbaction>

              <dbaction name="CreateDBOpenCVLBPH" mode="transaction">
                  <statement mode="plain">
                      CREATE TABLE OpenCVLBPHRecognizer
                      (id INTEGER PRIMARY KEY,
                       version INTEGER,
                       radius INTEGER,
                       neighbors INTEGER,
                       grid_x INTEGER,
                       grid_y INTEGER)
                  </statement>
                  <statement mode="plain">
                      CREATE TABLE OpenCVLBPHistograms
                      (id INTEGER PRIMARY KEY,
                       recognizerid INTEGER,
                       identity INTEGER,
                       context TEXT,
                       type INTEGER,
                       rows INTEGER,
                       cols INTEGER,
                       data BLOB)
                  </statement>
              </dbaction>

              <!-- Indices -->
              <dbaction name="CreateIndices" mode="transaction">
                  <statement mode="plain">CREATE INDEX attribute_index  ON IdentityAttributes (id);</statement>
              </dbaction>

              <!-- Triggers -->
              <dbaction name="CreateTriggers" mode="transaction">
                  <statement mode="plain">
                      CREATE TRIGGER delete_identities DELETE ON Identities
                      BEGIN
                          DELETE FROM IdentityAttributes
                          WHERE IdentityAttributes.id = OLD.id;
                      END;
                  </statement>
              </dbaction>

        </dbactions>
    </database>
</databaseconfig>