Permalink
Browse files

Sample postgres examples

  • Loading branch information...
1 parent 248bd4d commit 3d13be1f34f58bb837d8714e79e786036eb2e411 anuragbhardwaj committed Dec 29, 2015
Showing with 6 additions and 6 deletions.
  1. +2 −2 examples/example_extract_postgres.yaml
  2. +4 −4 examples/example_load_postgres.yaml
@@ -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
@@ -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.