Public Member Functions | |
| def | __init__ |
| The constructor. | |
| def | open |
| Opens a database connection. | |
| def | close |
| Closes the database connection. | |
| def | quit |
| 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 | |
Holds methods to search the databse for albums, artists, tracks and related informations
Definition at line 339 of file dbthreaded.py.
| def modules::dbthreaded::DB::__init__ | ( | self, | ||
| par | ||||
| ) |
The constructor.
| self | The object pointer | |
| par | Pyjama reference |
Definition at line 343 of file dbthreaded.py.
| def modules::dbthreaded::DB::artistinfos | ( | self, | ||
| id, | ||||
thread_id = 0 | ||||
| ) |
get several informations for a spicific artist-id
| 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 524 of file dbthreaded.py.
| def modules::dbthreaded::DB::close | ( | self | ) |
Closes the database connection.
| self | The Object pointer |
Definition at line 421 of file dbthreaded.py.
| def modules::dbthreaded::DB::open | ( | self | ) |
Opens a database connection.
| self | The Object pointer |
Definition at line 410 of file dbthreaded.py.
| def modules::dbthreaded::DB::query | ( | self, | ||
| query | ||||
| ) |
queries the database
| self | The Object pointer | |
| query | a string with a sql command |
Definition at line 435 of file dbthreaded.py.
1.5.8