database package
database.load module
Load project information and read from the project database
- create_db(sql_file_name: str)[source]
Create a new sql table from .slq file in /database
- Parameters:
sql_file_name (str) – name of the sql file to create
- class Database(db_path)[source]
Bases:
object- create_col(table: str, col_name: str, type: str)[source]
Create a new column in table
- Parameters:
table (str) – table name to add the column
col_name (str) – column name
type (str) – data type for the column (e.g., TEXT, INT)
- update(table, col_name, condition_col=None, condition_value=None, value=None)[source]
Update values to table