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
259c50f7
Commit
259c50f7
authored
3 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Fix results connection
parent
9b281a06
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Project.toml
+1
-1
1 addition, 1 deletion
Project.toml
src/utils/db.jl
+2
-2
2 additions, 2 deletions
src/utils/db.jl
with
3 additions
and
3 deletions
Project.toml
+
1
−
1
View file @
259c50f7
name
=
"FACT_unified_data_IO"
name
=
"FACT_unified_data_IO"
uuid
=
"ec8d5dc6-0dfe-41d7-8c2c-855ff50b7b42"
uuid
=
"ec8d5dc6-0dfe-41d7-8c2c-855ff50b7b42"
authors
=
[
"Riccardo Boero <ribo@nilu.no>"
]
authors
=
[
"Riccardo Boero <ribo@nilu.no>"
]
version
=
"0.0.
4
"
version
=
"0.0.
5
"
[deps]
[deps]
DataFrames
=
"a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DataFrames
=
"a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
...
...
This diff is collapsed.
Click to expand it.
src/utils/db.jl
+
2
−
2
View file @
259c50f7
...
@@ -142,7 +142,7 @@ This function creates a `Service` object from the given `service_dict` and uses
...
@@ -142,7 +142,7 @@ This function creates a `Service` object from the given `service_dict` and uses
# Behavior
# Behavior
- Constructs a `Service` object using the provided host and port from `service_dict`.
- Constructs a `Service` object using the provided host and port from `service_dict`.
- Calls `get_connection` with the constructed `Service` object to establish the database connection.
- Calls `get_
results_
connection` with the constructed `Service` object to establish the database connection.
# Example
# Example
Define the service dictionary and establish a connection:
Define the service dictionary and establish a connection:
...
@@ -166,7 +166,7 @@ function get_results_connection(service_dict::Dict)
...
@@ -166,7 +166,7 @@ function get_results_connection(service_dict::Dict)
service_dict
[
"host"
],
service_dict
[
"host"
],
service_dict
[
"port"
]
service_dict
[
"port"
]
)
)
return
get_connection
(
service
)
return
get_
results_
connection
(
service
)
end
end
"""
"""
...
...
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