You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docstrings generation was requested by @GalacticCodeGambit.
* #105 (comment)
The following files were modified:
* `project/backend/Datenbank.py`
* `project/backend/LazyCookVerwaltung.py`
Copy file name to clipboardExpand all lines: project/backend/Datenbank.py
+56-1Lines changed: 56 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,11 @@ def get_connection(self):
20
20
returncon
21
21
22
22
def__create_tables_if_not_exist(self):
23
+
"""
24
+
Create the required SQLite tables for the application's schema if they do not already exist.
25
+
26
+
Executes CREATE TABLE IF NOT EXISTS statements for all application tables and commits the transaction on success. On error, prints the exception message and rolls back the transaction.
Persist the provided data dictionary into this instance's database.
161
+
162
+
Parameters:
163
+
daten (Dict[str, Any]): A mapping of column/field names to values representing the record(s) to persist. The exact expected keys and behavior depend on calling context and table targeted by the implementation.
Retrieve all rows from the specified table as a list of dictionaries.
170
+
171
+
Parameters:
172
+
tabelle (str): Name of the database table to read from.
173
+
174
+
Returns:
175
+
list[Dict[str, Any]]: A list where each item is a mapping of column names to their values for a single row; returns an empty list if the table has no rows or does not exist.
176
+
"""
137
177
pass
138
178
139
179
defentferneTextSyntax(self, text):
180
+
"""
181
+
Remove common bracket and punctuation characters from a string.
182
+
183
+
This function returns the input string with all parentheses `()`, square brackets `[]`, single quotes `'`, and commas `,` removed.
184
+
185
+
Parameters:
186
+
text (str): Input string to sanitize.
187
+
188
+
Returns:
189
+
str: The sanitized string with the specified characters removed.
0 commit comments