-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Allow a schema to be specified for Postgres beyond the default schema. - Add db_schema as an optional postgres secret. - Add an empty set_schema method on the Base SQL Connector that can optionally be added on a subclass to set a schema for an entire session. - Define PostgreSQLConnector.set_schema to set the search path - Add a required secrets_schema property to be defined on every SQLConnector - Move "create_client" to the base SQLConnector and remove most locations where it was overridden because the primary element that was changing was the secrets schema. - Remove Redshift overrides for retrieve_data and mask_data since their only purposes are to set the schema, which the base sql connector can now do. * Update CHANGELOG. * Update the secrets format in testing now that db_schema can be optionally set. * Update separate missed test concerning new db_schema secrets attribute * Update CHANGELOG.md * Random import removed from this file.
- Loading branch information
Showing
8 changed files
with
205 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,4 +174,26 @@ INSERT INTO public.report VALUES | |
|
||
INSERT INTO public.type_link_test VALUES | ||
('1', 'name1'), | ||
('2', 'name2'); | ||
('2', 'name2'); | ||
|
||
|
||
CREATE SCHEMA backup_schema; | ||
CREATE TABLE backup_schema.product (LIKE public.product INCLUDING ALL); | ||
CREATE TABLE backup_schema.address (LIKE public.address INCLUDING ALL); | ||
CREATE TABLE backup_schema.customer (LIKE public.customer INCLUDING ALL); | ||
CREATE TABLE backup_schema.employee (LIKE public.employee INCLUDING ALL); | ||
CREATE TABLE backup_schema.payment_card (LIKE public.payment_card INCLUDING ALL); | ||
CREATE TABLE backup_schema.orders (LIKE public.orders INCLUDING ALL); | ||
CREATE TABLE backup_schema.order_item (LIKE public.order_item INCLUDING ALL); | ||
CREATE TABLE backup_schema.visit (LIKE public.visit INCLUDING ALL); | ||
CREATE TABLE backup_schema.login (LIKE public.login INCLUDING ALL); | ||
CREATE TABLE backup_schema.service_request (LIKE public.service_request INCLUDING ALL); | ||
CREATE TABLE backup_schema.report (LIKE public.report INCLUDING ALL); | ||
CREATE TABLE backup_schema.composite_pk_test (LIKE public.composite_pk_test INCLUDING ALL); | ||
CREATE TABLE backup_schema.type_link_test (LIKE public.type_link_test INCLUDING ALL); | ||
|
||
INSERT INTO backup_schema.customer VALUES | ||
(1, '[email protected]', 'Johanna Customer', '2022-05-01 12:22:11', 7); | ||
|
||
INSERT INTO backup_schema.address VALUES | ||
(7, '311', 'Test Street', 'Test Town', 'TX', '79843'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.