Amarok/Archives/database structure

From KDE Community Wiki
Revision as of 20:00, 11 December 2012 by Votick (talk | contribs) (Created page with "= sqlite = The sqlite database is located in the directory %home%/.kde/share/Apps/amarok/ The filename is collection.db. In this database file there is some tables that conta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

sqlite

The sqlite database is located in the directory %home%/.kde/share/Apps/amarok/ The filename is collection.db. In this database file there is some tables that contains almost all the informations abhout tracks lyrics tags and even podcast.

tables

admin

  • noption : VARCHAR(255)
  • value : VARCHAR(255)

album

  • id : INTEGER
  • name : VARCHAR(255)

amazon

  • asin : VARCHAR(20)
  • locale : VARCHAR(2)
  • filename : VARCHAR(33)
  • refetchdate : INTEGER

artist

  • id : INTEGER
  • name : VARCHAR(255)

composer

  • id : INTEGER
  • name : VARCHAR(255)

devices

  • id : INTEGER
  • type : VARCHAR(255)
  • label : VARCHAR(255)
  • lastmountpoint : VARCHAR(255)
  • uuid : VARCHAR(255)
  • servername : VARCHAR(255)
  • sharename : VARCHAR(255)

directories

  • dir : VARCHAR(1024)
  • deviceid : INTEGER
  • changedate : INTEGER

embed

  • url : VARCHAR(1024)
  • deviceid : INTEGER
  • hash : VARCHAR(1024)
  • description : VARCHAR(255)

genre

  • id : INTEGER
  • name : VARCHAR(255)

images

  • path : VARCHAR(1024)
  • deviceid : INTEGER
  • artist : VARCHAR(255)
  • album : VARCHAR(255)

labels

  • id : INTEGER
  • name : VARCHAR(255)
  • type : INTEGER

lyrics

  • url : VARCHAR(1024)
  • deviceid : INTEGER
  • lyrics : TEXT
  • uniqueid : VARCHAR(32)

playlists

  • playlist : VARCHAR(255)
  • url : VARCHAR(1024)
  • tracknum : INTEGER

podcastchannels

  • url : VARCHAR(1024)
  • title : VARCHAR(255)
  • weblink : VARCHAR(1024)
  • image : VARCHAR(1024)
  • comment : TEXT
  • copyright : VARCHAR(255)
  • parent : INTEGER
  • directory : VARCHAR(255)
  • autoscan : BOOL
  • fetchtype : INTEGER
  • autotransfer : BOOL
  • haspurge : BOOL
  • purgecount : INTEGER

podcastepisodes

  • id : INTEGER
  • url : VARCHAR(1024)
  • localurl : VARCHAR(1024)
  • parent : VARCHAR(1024)
  • guid : VARCHAR(1024)
  • title : VARCHAR(255)
  • subtitle : VARCHAR(255)
  • composer : VARCHAR(255)
  • comment : TEXT
  • filetype : VARCHAR(255)
  • createdate : VARCHAR(255)
  • length : INTEGER
  • size : INTEGER
  • isNew : BOOL

podcastfolders

  • id : INTEGER
  • name : VARCHAR(255)
  • parent : INTEGER
  • isOpen : BOOL

related_artists

  • artist : VARCHAR(255)
  • suggestion : VARCHAR(255)
  • changedate : INTEGER

statistics

  • url : VARCHAR(1024)
  • deviceid : INTEGER
  • createdate : INTEGER
  • accessdate : INTEGER
  • percentage : FLOAT
  • rating : INTEGER
  • playcounter : INTEGER
  • uniqueid : VARCHAR(32)
  • deleted : BOOL

tags

  • url : VARCHAR(1024)
  • dir : VARCHAR(1024)
  • createdate : INTEGER
  • modifydate : INTEGER
  • album : INTEGER
  • artist : INTEGER
  • composer : INTEGER
  • genre : INTEGER
  • title : VARCHAR(255)
  • year : INTEGER
  • comment : TEXT
  • track : NUMERIC(4)
  • discnumber : INTEGER
  • bitrate : INTEGER
  • length : INTEGER
  • samplerate : INTEGER
  • filesize : INTEGER
  • filetype : INTEGER
  • sampler : BOOL
  • bpm : FLOAT
  • deviceid : INTEGER

tags_labels

  • deviceid : INTEGER
  • url : VARCHAR(1024)
  • uniqueid : VARCHAR(32)
  • labelid : INTEGER

uniqueid

  • url : VARCHAR(1024)
  • deviceid : INTEGER
  • uniqueid : VARCHAR(32)
  • dir : VARCHAR(1024)

year

  • id : INTEGER
  • name : VARCHAR(255)