Skip to content

Commit

Permalink
Sample postgres examples
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragbhardwaj committed Dec 29, 2015
1 parent 248bd4d commit 3d13be1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/example_extract_postgres.yaml
Expand Up @@ -6,5 +6,5 @@ description: This example extracts data out of postgres

steps:
- step_type: extract-postgres
sql: "SELECT * from test limit 100"
output_path: s3://test-bucket/dataduct/test-output.csv
sql: "SELECT * from sometable"
output_path: s3://somebucket/somedata.csv
8 changes: 4 additions & 4 deletions examples/example_load_postgres.yaml
@@ -1,13 +1,13 @@
name: example_load_postgres
frequency: one-time
load_time: 01:05 # Hour:Min in UTC
load_time: 00:01 # Hour:Min in UTC

description: Example for the load_postgres step

steps:
- step_type: extract-s3
file_uri: s3://optimus-etl-data/dev/olukai_test.csv
file_uri: s3://somebucket/somedata.csv

- step_type: load-postgres
table: test_olukai
insert_query: "INSERT INTO test_olukai (title, variant, macrocat, url, png, price, prodinfo) VALUES (?,?,?,?,?,?,?);"
table: sometable
insert_query: "INSERT INTO sometable (col1, col2, col3) VALUES (?,?,?);"

0 comments on commit 3d13be1

Please sign in to comment.