Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Unified Data IO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
FACT Unified Data IO
Commits
a43f144a
Commit
a43f144a
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned printouts
parent
5b8a91cf
No related branches found
Branches containing commit
Tags
v0.0.3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/manifestIO.jl
+1
-2
1 addition, 2 deletions
src/manifestIO.jl
with
1 addition
and
2 deletions
src/manifestIO.jl
+
1
−
2
View file @
a43f144a
...
@@ -105,7 +105,6 @@ This function relies on the implementation of `find_table_name_in_manifest`, whi
...
@@ -105,7 +105,6 @@ This function relies on the implementation of `find_table_name_in_manifest`, whi
"""
"""
function
does_table_exist_for_method
(
conn
::
MySQL
.
Connection
,
method_name
::
String
,
arguments_string
::
String
,
arguments
::
Dict
)
function
does_table_exist_for_method
(
conn
::
MySQL
.
Connection
,
method_name
::
String
,
arguments_string
::
String
,
arguments
::
Dict
)
table_str
=
find_table_name_in_manifest
(
conn
,
method_name
,
arguments_string
,
arguments
)
table_str
=
find_table_name_in_manifest
(
conn
,
method_name
,
arguments_string
,
arguments
)
println
(
table_str
)
return
table_str
!=
""
return
table_str
!=
""
end
end
...
@@ -178,7 +177,7 @@ In this example, `find_table_name_in_manifest` is used to search for a table in
...
@@ -178,7 +177,7 @@ In this example, `find_table_name_in_manifest` is used to search for a table in
function
find_table_name_in_manifest
(
conn
::
MySQL
.
Connection
,
method_name
::
String
,
arguments_string
::
String
,
arguments
::
Dict
)
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
# Serialize the arguments dictionary to a JSON string
arguments_dict
=
bytes2hex
(
sha256
(
JSON
.
json
(
arguments
)))
arguments_dict
=
bytes2hex
(
sha256
(
JSON
.
json
(
arguments
)))
println
(
arguments_dict
)
# Prepare and execute a query to check if the entry exists in the manifest table
# Prepare and execute a query to check if the entry exists in the manifest table
query
=
"""
query
=
"""
SELECT result_table_name
SELECT result_table_name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment