DataBaseController Module
DataBaseController
Controller class for managing SQLite database connections and queries.
Attributes:
Name | Type | Description |
---|---|---|
app_db |
Connection
|
The SQLite database connection object. |
app_cursor |
Cursor
|
The cursor object for executing SQL queries. |
Source code in GameFrame/DataBaseController.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
__init__(dbase_file_name)
Initializes the DataBaseController with the specified database file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dbase_file_name
|
str
|
The name of the SQLite database file. |
required |
Source code in GameFrame/DataBaseController.py
14 15 16 17 18 19 20 21 22 23 |
|
close()
Closes the database connection.
Source code in GameFrame/DataBaseController.py
25 26 27 28 29 |
|