@@ -23,8 +23,8 @@ This function first attempts to find the table name in a 'manifest' table using
In this example, `get_table` is called with a MySQL connection `conn` and specific method details. It retrieves data from the identified table in the database and returns it as a DataFrame.
"""
function get_table(conn::MySQL.Connection,method_name::String,arguments_string::String,arguments::Dict,references_string::String)
@@ -61,10 +61,10 @@ Write data from a DataFrame to a MySQL table based on the specified method name
In this example, the `write_table` function attempts to write the contents of `results` DataFrame to a MySQL table. If a table corresponding to `method_name` and `arguments_string` does not exist, it will be created and populated with the data from `results`. If such a table already exists, an error will be raised.
"""
function write_table(conn::MySQL.Connection,method_name::String,arguments_string::String,arguments::Dict,references_string::String,results::DataFrame)
@@ -104,8 +104,8 @@ If the table does not exist, it is simply created and the data is written to it.
In this example, `overwrite_table` is called with a MySQL connection, method name, arguments, and a DataFrame. If a table matching the method name and arguments exists, it is overwritten with the new data from the DataFrame.
"""
function overwrite_table(conn::MySQL.Connection,method_name::String,arguments_string::String,arguments::Dict,references_string::String,results::DataFrame)
@@ -144,9 +144,9 @@ This function queries the 'manifest' table for an entry that matches the specifi
In this example, `find_table_name_in_manifest` is used to search for a table in the 'manifest' table that matches the given method name and arguments. It returns the name of the found table or an empty string if no match is found.
"""
function find_table_name_in_manifest(conn::MySQL.Connection,method_name::String,arguments_string::String,arguments::Dict,references_string::String)
function find_table_name_in_manifest(conn::MySQL.Connection,method_name::String,arguments_string::String,arguments::Dict)
# Serialize the arguments dictionary to a JSON string
# Prepare and execute a query to check if the entry exists in the manifest table
query="""
...
...
@@ -222,9 +222,9 @@ This function first serializes the provided arguments dictionary into a JSON str
In this example, `write_table_name_in_manifest` is called with a MySQL connection, method name, arguments string, and a dictionary of arguments. It inserts a new entry into the 'manifest' table and returns the generated table name.
"""
function write_table_name_in_manifest(conn::MySQL.Connection,method_name::String,arguments_string::String,arguments::Dict,references_string::String)
function write_table_name_in_manifest(conn::MySQL.Connection,method_name::String,arguments_string::String,arguments::Dict)
# Serialize the arguments dictionary to a JSON string