Public Member Functions | |
| def | __init__ |
| The Constructor. | |
| def | set_value |
| Set a option's value. | |
| def | increase_value |
| def | get_value |
| Reads a value from an option. | |
| def | create_table |
| def | create_database |
| Create Database if not existant. | |
| def | open |
| Open Database connection. | |
| def | quit |
| def | close |
| Close Database connection. | |
| def | query |
| Queries the SQLite database. | |
Public Attributes | |
| pyjama | |
| Reference to pyjama. | |
| db | |
| Database file. | |
| connection | |
| Holds the databse connection. | |
| query_counter | |
Of course you can still use the ConfigParser but have in mind, that this class also allows you to have own tables and real db queries.
Definition at line 152 of file dbthreaded.py.
| def modules::dbthreaded::DB_Settings::__init__ | ( | self, | ||
| pyjama | ||||
| ) |
The Constructor.
| self | The Object pointer | |
| pyjama | Reference to pyjama |
Definition at line 156 of file dbthreaded.py.
| def modules::dbthreaded::DB_Settings::close | ( | self | ) |
Close Database connection.
| self | The Object poi |
Definition at line 302 of file dbthreaded.py.
| def modules::dbthreaded::DB_Settings::create_database | ( | self | ) |
Create Database if not existant.
| self | The Object Pointer |
Definition at line 258 of file dbthreaded.py.
| def modules::dbthreaded::DB_Settings::get_value | ( | self, | ||
| section, | ||||
| option, | ||||
default = None, |
||||
table = "settings" | ||||
| ) |
Reads a value from an option.
| self | The Object pointer | |
| section | The table to read from | |
| option | An option as string | |
| default | A default value |
Definition at line 213 of file dbthreaded.py.
| def modules::dbthreaded::DB_Settings::open | ( | self | ) |
Open Database connection.
| self | The Object pointer |
Definition at line 283 of file dbthreaded.py.
| def modules::dbthreaded::DB_Settings::query | ( | self, | ||
| query | ||||
| ) |
Queries the SQLite database.
| self | The Object pointer | |
| query | A SQL Query |
Definition at line 308 of file dbthreaded.py.
| def modules::dbthreaded::DB_Settings::set_value | ( | self, | ||
| section, | ||||
| option, | ||||
| value, | ||||
table = "settings" | ||||
| ) |
Set a option's value.
| self | The Object pointer | |
| section | The table to write to | |
| option | The option as string | |
| value | The value to set as string |
Definition at line 178 of file dbthreaded.py.
1.5.8