modules::dbthreaded::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 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


Detailed Description

Main Database Class.

Holds methods to search the databse for albums, artists, tracks and related informations

Definition at line 339 of file dbthreaded.py.


Member Function Documentation

def modules::dbthreaded::DB::__init__ (   self,
  par 
)

The constructor.

Parameters:
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

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 524 of file dbthreaded.py.

def modules::dbthreaded::DB::close (   self  ) 

Closes the database connection.

Returns:
None
Parameters:
self The Object pointer

Definition at line 421 of file dbthreaded.py.

def modules::dbthreaded::DB::open (   self  ) 

Opens a database connection.

Returns:
None
Parameters:
self The Object pointer

Definition at line 410 of file dbthreaded.py.

def modules::dbthreaded::DB::query (   self,
  query 
)

queries the database

Returns:
list
Parameters:
self The Object pointer
query a string with a sql command

Definition at line 435 of file dbthreaded.py.


The documentation for this class was generated from the following file:

Generated on Thu Jun 4 19:08:24 2009 for Pyjama by  doxygen 1.5.8