Bases: peewee.Model
Simple base class to inherit from so all the other models inherit the database connection used.
alias of BaseDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy djs table.
alias of DJDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy efave table.
alias of FaveDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy lastfm table.
alias of LastFmDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy nickrequesttime table.
alias of NickRequestDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy enick table.
alias of NicknameDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy eplay table.
alias of PlayDoesNotExist
Bases: hanyuu.db.models.Base
Models the new design queue table.
alias of QueueDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy relays table.
alias of RelayDoesNotExist
Bases: hanyuu.db.models.Base
Models the legacy esong table.
alias of SongDoesNotExist
Returns the first match found of metadata
Params unicode metadata: | |
---|---|
A string of metadata. | |
Returns: | Song instance. |
Raises : | Song.DoesNotExist if no result was found. |
Note
This currently does no pre-fetching of the faves and plays
Returns the first match found of metadata
Params unicode metadata: | |
---|---|
A string of metadata. | |
Returns: | peewee.SelectQuery instance. |
Note
This currently does no pre-fetching of the faves and plays
Bases: hanyuu.db.models.Base
Models the legacy tracks table.
alias of TrackDoesNotExist
Returns the first match found of metadata
Params unicode metadata: | |
---|---|
A string of metadata. | |
Returns: | Track instance. |
Bases: hanyuu.db.models.Base
Models the legacy users table.
alias of UserDoesNotExist