Module db

Source
Expand description

§Database Management

This module provides all the core functionalities for interacting with the SQLite database. It handles database initialization, connection, table creation, and listing tables. The functions in this module are designed to be robust, with features like retry logic for connections and integrity checks to ensure database validity.

Functions§

connect_database
Connects to an existing SQLite database.
create_table
Creates a new table in the specified database.
init_database
Initializes a new SQLite database file.
list_tables
Lists all user-created tables in the specified database.