Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for source schema and exclude/include pattern and fix numeric type cast #28

Closed
wants to merge 14 commits into from

Conversation

dingn1
Copy link

@dingn1 dingn1 commented Dec 5, 2017

Added the ability to specify source schema.Also added a way to only run for certain tables and only exclude certain tables. also fixed #26

@dingn1
Copy link
Author

dingn1 commented Dec 5, 2017

@toothrot remake the pr and added the spec need some help to get the spec to pass.

@dingn1
Copy link
Author

dingn1 commented Jan 3, 2018

@toothrot ?

@dingn1
Copy link
Author

dingn1 commented Mar 9, 2018

@toothrot ?

@toothrot
Copy link
Owner

Sorry for the delay, I will look at this shortly.

@dingn1
Copy link
Author

dingn1 commented Mar 10, 2018

No matter, thanks.

after(:all) do
PostgresToRedshift::Test.test_connection.exec(%q[DROP TABLE IF EXISTS "p2r_integration";])
PostgresToRedshift::Test.test_target_connection.exec(%q[DROP TABLE IF EXISTS "p2r_integration";])

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove empty line here

Copy link
Owner

@toothrot toothrot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

README.md Outdated
export S3_DATABASE_EXPORT_ID='yourid'
export S3_DATABASE_EXPORT_KEY='yourkey'
export S3_DATABASE_EXPORT_BUCKET='some-bucket-to-use'
export DROP_TABLE_BEFORE_CREATE = true
export POSTGRES_TO_REDSHIFT_EXCLUDE_TABLE_PATTERN = 'table-pattern-to-exclude1,table-pattern-to-exclude2'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe comment here that all tables are included by default?

README.md Outdated
export S3_DATABASE_EXPORT_ID='yourid'
export S3_DATABASE_EXPORT_KEY='yourkey'
export S3_DATABASE_EXPORT_BUCKET='some-bucket-to-use'
export DROP_TABLE_BEFORE_CREATE = true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also worth mentioning that this is false by default

```bash
export POSTGRES_TO_REDSHIFT_SOURCE_URI='postgres://username:password@host:port/database-name'
export POSTGRES_TO_REDSHIFT_TARGET_URI='postgres://username:password@host:port/database-name'
export POSTGRES_TO_REDSHIFT_TARGET_SCHEMA='testing-data'
export POSTGRES_TO_REDSHIFT_SOURCE_SCHEMA='testing-data'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth mentioning that this is 'public' by default

@dingn1
Copy link
Author

dingn1 commented Mar 16, 2018

@toothrot just updated the readme added a bunch of notes

@flah00
Copy link

flah00 commented Jun 5, 2018

@dingn1 The env var docs you added include spaces between =, which will lead to bash errors.

export DROP_TABLE_BEFORE_CREATE = true

Should be

export DROP_TABLE_BEFORE_CREATE=true

@dingn1 dingn1 changed the title add support for source schema and exclude/include pattern add support for source schema and exclude/include pattern and fix numeric type cast Apr 11, 2019
@dingn1
Copy link
Author

dingn1 commented May 21, 2019

@toothrot bump

@dingn1 dingn1 closed this Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getting zlib error when running the update_tables
3 participants