Datenbank des Mumble-Clients

In der Datenbank des Mumble-Clients werden folgende Daten gespeichert:

Die Einstellungen, die nicht in der Datenbank zu finden sind, werden je nach System in der Registry oder einer .conf-Datei gespeichert, siehe unter Wo werden die Einstellungen/Daten von Mumble gespeichert?.

Datenbankstruktur

Der Aufbau der Datenbank (SQLite3) unter Mumble 1.2.4:

sqlite> .tables
blobs      comments   muted      servers    tokens   
cert       friends    pingcache  shortcut   udp

sqlite> .schema blobs
CREATE TABLE `blobs` (`hash` TEXT, `data` BLOB, `seen` DATE);
CREATE UNIQUE INDEX `blobs_hash` ON `blobs`(`hash`);
CREATE INDEX `blobs_seen` ON `blobs`(`seen`);

sqlite> .schema comments
CREATE TABLE `comments` (`who` TEXT, `comment` BLOB, `seen` DATE);
CREATE UNIQUE INDEX `comments_comment` ON `comments`(`who`, `comment`);
CREATE INDEX `comments_seen` ON `comments`(`seen`);

sqlite> .schema muted
CREATE TABLE `muted` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `hash` TEXT);
CREATE UNIQUE INDEX `muted_hash` ON `muted`(`hash`);

sqlite> .schema servers
CREATE TABLE `servers` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT, `hostname` TEXT, `port` INTEGER DEFAULT 64738, `username` TEXT, `password` TEXT, `url` TEXT);

sqlite> .schema tokens
CREATE TABLE `tokens` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `digest` BLOB, `token` TEXT);
CREATE INDEX `tokens_host_port` ON `tokens`(`digest`);

sqlite> .schema cert
CREATE TABLE `cert` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `hostname` TEXT, `port` INTEGER, `digest` TEXT);
CREATE UNIQUE INDEX `cert_host_port` ON `cert`(`hostname`,`port`);

sqlite> .schema friends
CREATE TABLE `friends` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT, `hash` TEXT);
CREATE UNIQUE INDEX `friends_hash` ON `friends`(`hash`);
CREATE UNIQUE INDEX `friends_name` ON `friends`(`name`);

sqlite> .schema pingcache
CREATE TABLE `pingcache` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `hostname` TEXT, `port` INTEGER, `ping` INTEGER);
CREATE UNIQUE INDEX `pingcache_host_port` ON `pingcache`(`hostname`,`port`);

sqlite> .schema shortcut
CREATE TABLE `shortcut` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `digest` BLOB, `shortcut` BLOB, `target` BLOB, `suppress` INTEGER);
CREATE INDEX `shortcut_host_port` ON `shortcut`(`digest`);

sqlite> .schema udp
CREATE TABLE `udp` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `digest` BLOB);
CREATE UNIQUE INDEX `udp_host_port` ON `udp`(`digest`);