Skip to content
Snippets Groups Projects
Commit c46818d5 authored by Martin Weise's avatar Martin Weise
Browse files

Merge branch 'dev'

parents 17d0a576 ccf144d7
Branches
Tags v1.4.5
No related merge requests found
...@@ -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: [
......
...@@ -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 }}"
......
...@@ -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 | DataFrame, quote: str = None, skip_lines: int = 0, separator: str = None, 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment