|
1 | 1 | author: Anna Beckers |
2 | | -description: Query the PatstatDB to a CSV |
| 2 | +description: Query DB to a CSV |
3 | 3 | docker_image: registry.git.rwth-aachen.de/tim-institute/literature-analysis-pipeline/patstat-compute-block/patstatcb |
4 | | -name: Patstat Compute Block |
| 4 | +name: Database Interactions |
5 | 5 | entrypoints: |
6 | | - run_query: |
7 | | - description: Run the query by directly passing an SQL Query |
| 6 | + run_query_from_file: |
| 7 | + description: Run the query using a file containing the query |
8 | 8 | envs: |
9 | | - PATSTAT_DB: patstat |
10 | | - PATSTAT_HOST: 134.130.176.139 |
11 | | - PATSTAT_PORT: 5432 |
12 | | - PATSTAT_USER: guest |
| 9 | + DB_DSN: null |
13 | 10 | inputs: |
14 | | - query_str: |
| 11 | + query_file: |
15 | 12 | config: |
16 | | - QUERY: '' |
17 | | - description: Pass your SQL-Query here |
18 | | - type: custom |
| 13 | + query_file_BUCKET_NAME: null |
| 14 | + query_file_FILE_EXT: null |
| 15 | + query_file_FILE_NAME: null |
| 16 | + query_file_FILE_PATH: null |
| 17 | + query_file_S3_ACCESS_KEY: null |
| 18 | + query_file_S3_HOST: null |
| 19 | + query_file_S3_PORT: null |
| 20 | + query_file_S3_SECRET_KEY: null |
| 21 | + description: txt file containing the SQL query |
| 22 | + type: file |
19 | 23 | outputs: |
20 | 24 | csv_output: |
21 | 25 | config: |
22 | 26 | csv_output_BUCKET_NAME: null |
23 | | - csv_output_FILE_EXT: null |
| 27 | + csv_output_FILE_EXT: csv |
24 | 28 | csv_output_FILE_NAME: null |
25 | 29 | csv_output_FILE_PATH: null |
26 | 30 | csv_output_S3_ACCESS_KEY: null |
27 | 31 | csv_output_S3_HOST: null |
28 | 32 | csv_output_S3_PORT: null |
29 | 33 | csv_output_S3_SECRET_KEY: null |
30 | | - description: The CSV-File of the queries result |
| 34 | + description: CSV of the queries result |
31 | 35 | type: file |
32 | | - run_query_from_file: |
33 | | - description: Run the query using a txt file |
| 36 | + run_query_from_string: |
| 37 | + description: Run the query directly by passing an SQL Query |
34 | 38 | envs: |
35 | | - PATSTAT_DB: patstat |
36 | | - PATSTAT_HOST: 134.130.176.139 |
37 | | - PATSTAT_PORT: 5432 |
38 | | - PATSTAT_USER: guest |
| 39 | + DB_DSN: null |
39 | 40 | inputs: |
40 | | - query_file: |
| 41 | + query_str: |
41 | 42 | config: |
42 | | - query_file_BUCKET_NAME: null |
43 | | - query_file_FILE_EXT: null |
44 | | - query_file_FILE_NAME: null |
45 | | - query_file_FILE_PATH: null |
46 | | - query_file_S3_ACCESS_KEY: null |
47 | | - query_file_S3_HOST: null |
48 | | - query_file_S3_PORT: null |
49 | | - query_file_S3_SECRET_KEY: null |
50 | | - description: Pass the txt file here including your SQL Query |
51 | | - type: file |
| 43 | + QUERY: '' |
| 44 | + description: Pass your SQL-Query here |
| 45 | + type: custom |
52 | 46 | outputs: |
53 | 47 | csv_output: |
54 | 48 | config: |
55 | 49 | csv_output_BUCKET_NAME: null |
56 | | - csv_output_FILE_EXT: null |
| 50 | + csv_output_FILE_EXT: csv |
57 | 51 | csv_output_FILE_NAME: null |
58 | 52 | csv_output_FILE_PATH: null |
59 | 53 | csv_output_S3_ACCESS_KEY: null |
60 | 54 | csv_output_S3_HOST: null |
61 | 55 | csv_output_S3_PORT: null |
62 | 56 | csv_output_S3_SECRET_KEY: null |
63 | | - description: The CSV-File of the queries result |
| 57 | + description: CSV of the queries result |
64 | 58 | type: file |
0 commit comments