<jupyter_start><jupyter_text>Creating a SQL DatabaseFor this project I will be creating a lot of datasets, and I want to organize this into a SQL database that is easily accessible. There is a lot of information in this site: https://www.sqlitetutorial.net/sqlite-python/<jupyter_code>import sqlite3
from sqlite3 import Error<jupyter_output><empty_output><jupyter_text>It is recommended to create a function that will connect to the SQLite database.<jupyter_code>def create_connection(db_file):
    """ create a database connection to a SQLite database """
    conn = None
    try:
        conn = sqlite3.connect(db_file)
        print(sqlite3.version)
    except Error as e:
        print(e)
    finally:
        if conn:
            conn.close()<jupyter_output><empty_output><jupyter_text>Next, we will used the function we defined to create a SQL database called *biblesql*<jupyter_code>if __name__ == '__main__':
    create_connection(r"C:\Bible Research\SQL database\biblesql.db")<jupyter_output>2.6.0
{'fraction_non_alphanumeric': 0.0805168986083499, 'fraction_numerical': 0.006958250497017893, 'mean_word_length': 4.3, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '443140', 'license': 'Apache-2.0', 'n_tokens_mistral': 311, 'n_tokens_neox': 306, 'n_words': 99, 'path': '000 - Biblical Resarch Database.ipynb', 'repo_name': 'davidbusby18/Bible-Research', 'size': '1006'}