modules::clDB::DB Class Reference
Main Database Class.
More...
List of all members.
|
Public Member Functions |
| def | __init__ |
| | The constructor.
|
| def | open |
| | Opens a database connection.
|
| def | close |
| | Closes the database connection.
|
| def | query |
| | queries the database
|
| def | artistinfos |
| | get several informations for a spicific artist-id
|
|
def | multiple_albuminfos |
Public Attributes |
|
| parent |
| | reference to pyjama
|
|
| home |
| | pyjama's home directory
|
|
| db |
| | pyjama's database file
|
|
| artists |
| | number of artists in the database
|
|
| query_counter |
|
| results |
| | stores results for threaded queries
|
|
| queue |
|
| connection |
| | holds the connection to our database
|
|
| database_ok |
|
| tracks |
| | number of tracks in the database
|
|
| albums |
| | number of albums in the database
|
Detailed Description
Main Database Class.
Holds methods to search the databse for albums, artists, tracks and related informations
Definition at line 209 of file clDB.py.
Member Function Documentation
| def modules::clDB::DB::__init__ |
( |
|
self, |
|
|
|
par | |
|
) |
| | |
The constructor.
- Parameters:
-
| self | The object pointer |
| par | Pyjama reference |
Definition at line 213 of file clDB.py.
| def modules::clDB::DB::artistinfos |
( |
|
self, |
|
|
|
id, |
|
|
|
thread_id = 0 | |
|
) |
| | |
get several informations for a spicific artist-id
- Returns:
- dictionary
- Parameters:
-
| self | The Object pointer |
| id | An artist id as int or string |
| thread_id | If this function is called by a thread, this is the thread's id |
Definition at line 375 of file clDB.py.
| def modules::clDB::DB::close |
( |
|
self |
) |
|
Closes the database connection.
- Returns:
- None
- Parameters:
-
Definition at line 288 of file clDB.py.
| def modules::clDB::DB::open |
( |
|
self |
) |
|
Opens a database connection.
- Returns:
- None
- Parameters:
-
Definition at line 282 of file clDB.py.
| def modules::clDB::DB::query |
( |
|
self, |
|
|
|
query | |
|
) |
| | |
queries the database
- Returns:
- list
- Parameters:
-
| self | The Object pointer |
| query | a string with a sql command |
Definition at line 295 of file clDB.py.
The documentation for this class was generated from the following file: