Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
c46818d5
Commit
c46818d5
authored
Jul 12, 2024
by
Martin Weise
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev'
parents
17d0a576
ccf144d7
Branches
Branches containing commit
Tags
v1.4.5
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
dbrepo-ui/components/table/TableImport.vue
+1
-1
1 addition, 1 deletion
dbrepo-ui/components/table/TableImport.vue
helm/dbrepo/templates/data-secret.yaml
+1
-1
1 addition, 1 deletion
helm/dbrepo/templates/data-secret.yaml
lib/python/dbrepo/RestClient.py
+4
-4
4 additions, 4 deletions
lib/python/dbrepo/RestClient.py
with
6 additions
and
6 deletions
dbrepo-ui/components/table/TableImport.vue
+
1
−
1
View file @
c46818d5
...
@@ -292,7 +292,7 @@ export default {
...
@@ -292,7 +292,7 @@ export default {
true_element
:
null
,
true_element
:
null
,
null_element
:
''
,
null_element
:
''
,
separator
:
'
,
'
,
separator
:
'
,
'
,
line_termination
:
'
\\
r
\\
n
'
,
line_termination
:
'
\\
n
'
,
skip_lines
:
1
skip_lines
:
1
},
},
separators
:
[
separators
:
[
...
...
This diff is collapsed.
Click to expand it.
helm/dbrepo/templates/data-secret.yaml
+
1
−
1
View file @
c46818d5
...
@@ -28,7 +28,7 @@ stringData:
...
@@ -28,7 +28,7 @@ stringData:
DEFAULT_TIME_FORMAT_ID
:
"
{{
.Values.dataservice.default.time
}}"
DEFAULT_TIME_FORMAT_ID
:
"
{{
.Values.dataservice.default.time
}}"
DEFAULT_TIMESTAMP_FORMAT_ID
:
"
{{
.Values.dataservice.default.timestamp
}}"
DEFAULT_TIMESTAMP_FORMAT_ID
:
"
{{
.Values.dataservice.default.timestamp
}}"
JWT_PUBKEY
:
"
{{
.Values.authservice.jwt.pubkey
}}"
JWT_PUBKEY
:
"
{{
.Values.authservice.jwt.pubkey
}}"
LOG_LEVEL
:
"
{{
ternary
"
debug
" "info" .Values.dataservice.image.debug }}"
LOG_LEVEL
:
"
{{
ternary
"
trace
" "info" .Values.dataservice.image.debug }}"
METADATA_SERVICE_ENDPOINT
:
"
{{
.Values.metadataservice.endpoint
}}"
METADATA_SERVICE_ENDPOINT
:
"
{{
.Values.metadataservice.endpoint
}}"
MIN_CONCURRENT_CONSUMERS
:
"
{{
.Values.dataservice.rabbitmq.consumerConcurrentMin
}}"
MIN_CONCURRENT_CONSUMERS
:
"
{{
.Values.dataservice.rabbitmq.consumerConcurrentMin
}}"
MAX_CONCURRENT_CONSUMERS
:
"
{{
.Values.dataservice.rabbitmq.consumerConcurrentMax
}}"
MAX_CONCURRENT_CONSUMERS
:
"
{{
.Values.dataservice.rabbitmq.consumerConcurrentMax
}}"
...
...
This diff is collapsed.
Click to expand it.
lib/python/dbrepo/RestClient.py
+
4
−
4
View file @
c46818d5
...
@@ -1102,17 +1102,17 @@ class RestClient:
...
@@ -1102,17 +1102,17 @@ class RestClient:
raise
ResponseCodeError
(
f
'
Failed to insert table data: response code:
{
response
.
status_code
}
is not
'
raise
ResponseCodeError
(
f
'
Failed to insert table data: response code:
{
response
.
status_code
}
is not
'
f
'
201 (CREATED):
{
response
.
text
}
'
)
f
'
201 (CREATED):
{
response
.
text
}
'
)
def
import_table_data
(
self
,
database_id
:
int
,
table_id
:
int
,
separator
:
str
,
def
import_table_data
(
self
,
database_id
:
int
,
table_id
:
int
,
file_name_or_data_frame
:
str
|
DataFrame
,
file_name_or_data_frame
:
str
|
DataFram
e
,
quote
:
str
=
None
,
skip_lines
:
int
=
0
,
separator
:
str
=
Non
e
,
quote
:
str
=
None
,
skip_lines
:
int
=
0
,
false_encoding
:
str
=
None
,
true_encoding
:
str
=
None
,
null_encoding
:
str
=
None
,
false_encoding
:
str
=
None
,
true_encoding
:
str
=
None
,
null_encoding
:
str
=
None
,
line_encoding
:
str
=
"
\
r\
n
"
)
->
None
:
line_encoding
:
str
=
"
\n
"
)
->
None
:
"""
"""
Import a csv dataset from a file into a table in a database with given database id and table id.
Import a csv dataset from a file into a table in a database with given database id and table id.
:param database_id: The database id.
:param database_id: The database id.
:param table_id: The table id.
:param table_id: The table id.
:param separator: The csv column separator.
:param file_name_or_data_frame: The path of the file that is imported on the storage service or pandas dataframe.
:param file_name_or_data_frame: The path of the file that is imported on the storage service or pandas dataframe.
:param separator: The csv column separator. Optional.
:param quote: The column data quotation character. Optional.
:param quote: The column data quotation character. Optional.
:param skip_lines: The number of lines to skip. Optional. Default: 0.
:param skip_lines: The number of lines to skip. Optional. Default: 0.
:param false_encoding: The encoding of boolean false. Optional.
:param false_encoding: The encoding of boolean false. Optional.
...
...
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