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

Extract 2 #63

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions datasets/a/a.dataset.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
BEGIN TRANSACTION;
CREATE TABLE "Account" (
id INTEGER NOT NULL,
"AccountNumber" VARCHAR(255),
"AccountSource" VARCHAR(255),
"AnnualRevenue" VARCHAR(255),
"BillingCity" VARCHAR(255),
"BillingCountry" VARCHAR(255),
"BillingGeocodeAccuracy" VARCHAR(255),
"BillingLatitude" VARCHAR(255),
"BillingLongitude" VARCHAR(255),
"BillingPostalCode" VARCHAR(255),
"BillingState" VARCHAR(255),
"BillingStreet" VARCHAR(255),
"CleanStatus" VARCHAR(255),
"Description" VARCHAR(255),
"DunsNumber" VARCHAR(255),
"Fax" VARCHAR(255),
"Industry" VARCHAR(255),
"Jigsaw" VARCHAR(255),
"NaicsCode" VARCHAR(255),
"NaicsDesc" VARCHAR(255),
"Name" VARCHAR(255),
"NumberOfEmployees" VARCHAR(255),
"Ownership" VARCHAR(255),
"Phone" VARCHAR(255),
"Rating" VARCHAR(255),
"ShippingCity" VARCHAR(255),
"ShippingCountry" VARCHAR(255),
"ShippingGeocodeAccuracy" VARCHAR(255),
"ShippingLatitude" VARCHAR(255),
"ShippingLongitude" VARCHAR(255),
"ShippingPostalCode" VARCHAR(255),
"ShippingState" VARCHAR(255),
"ShippingStreet" VARCHAR(255),
"Sic" VARCHAR(255),
"SicDesc" VARCHAR(255),
"Site" VARCHAR(255),
"TickerSymbol" VARCHAR(255),
"Tradestyle" VARCHAR(255),
"Type" VARCHAR(255),
"Website" VARCHAR(255),
"YearStarted" VARCHAR(255),
PRIMARY KEY (id)
);
INSERT INTO "Account" VALUES(1,'','','','','','','','','','','','Pending','','','','','','','','Paul Prescod','','','7789911442','Warm','','','','','','','','','','','','','','','','');
CREATE TABLE "Contact" (
id INTEGER NOT NULL,
"AssistantName" VARCHAR(255),
"AssistantPhone" VARCHAR(255),
"Birthdate" VARCHAR(255),
"Fax" VARCHAR(255),
"Phone" VARCHAR(255),
"CleanStatus" VARCHAR(255),
"Description" VARCHAR(255),
"Jigsaw" VARCHAR(255),
"Department" VARCHAR(255),
"DoNotCall" VARCHAR(255),
"Email" VARCHAR(255),
"EmailBouncedDate" VARCHAR(255),
"EmailBouncedReason" VARCHAR(255),
"HasOptedOutOfEmail" VARCHAR(255),
"HasOptedOutOfFax" VARCHAR(255),
"FirstName" VARCHAR(255),
"HomePhone" VARCHAR(255),
"LastName" VARCHAR(255),
"LeadSource" VARCHAR(255),
"MailingCity" VARCHAR(255),
"MailingCountry" VARCHAR(255),
"MailingGeocodeAccuracy" VARCHAR(255),
"MailingLatitude" VARCHAR(255),
"MailingLongitude" VARCHAR(255),
"MailingState" VARCHAR(255),
"MailingStreet" VARCHAR(255),
"MailingPostalCode" VARCHAR(255),
"MobilePhone" VARCHAR(255),
"OtherCity" VARCHAR(255),
"OtherCountry" VARCHAR(255),
"OtherGeocodeAccuracy" VARCHAR(255),
"OtherLatitude" VARCHAR(255),
"OtherLongitude" VARCHAR(255),
"OtherPhone" VARCHAR(255),
"OtherState" VARCHAR(255),
"OtherStreet" VARCHAR(255),
"OtherPostalCode" VARCHAR(255),
"Salutation" VARCHAR(255),
"Title" VARCHAR(255),
"AccountId" VARCHAR(255),
"IndividualId" VARCHAR(255),
"ReportsToId" VARCHAR(255),
PRIMARY KEY (id)
);
INSERT INTO "Contact" VALUES(1,'','','','','7789911442','Pending','','','','False','','','','False','False','','','Blaah','','','','','','','','','','','','','','','','','','','','Mr.','','1','','');
CREATE TABLE "Individual" (
id INTEGER NOT NULL,
"LastName" VARCHAR(255),
"Name" VARCHAR(255),
"CanStorePiiElsewhere" VARCHAR(255),
"HasOptedOutGeoTracking" VARCHAR(255),
"HasOptedOutProcessing" VARCHAR(255),
"HasOptedOutProfiling" VARCHAR(255),
"HasOptedOutSolicit" VARCHAR(255),
"HasOptedOutTracking" VARCHAR(255),
"IsHomeOwner" VARCHAR(255),
"SendIndividualData" VARCHAR(255),
"ShouldForget" VARCHAR(255),
PRIMARY KEY (id)
);
COMMIT;
91 changes: 91 additions & 0 deletions datasets/a/a.extract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
extract:
Contact:
fields:
- AccountId
- AssistantName
- AssistantPhone
- Birthdate
- Fax
- Phone
- CleanStatus
- Description
- Jigsaw
- Department
- DoNotCall
- Email
- EmailBouncedDate
- EmailBouncedReason
- HasOptedOutOfEmail
- HasOptedOutOfFax
- FirstName
- HomePhone
- IndividualId
- LastName
- LeadSource
- MailingCity
- MailingCountry
- MailingGeocodeAccuracy
- MailingLatitude
- MailingLongitude
- MailingState
- MailingStreet
- MailingPostalCode
- MobilePhone
- OtherCity
- OtherCountry
- OtherGeocodeAccuracy
- OtherLatitude
- OtherLongitude
- OtherPhone
- OtherState
- OtherStreet
- OtherPostalCode
- ReportsToId
- Salutation
- Title
Account:
fields:
- AccountNumber
- AccountSource
- AnnualRevenue
- BillingCity
- BillingCountry
- BillingGeocodeAccuracy
- BillingLatitude
- BillingLongitude
- BillingPostalCode
- BillingState
- BillingStreet
- CleanStatus
- Description
- DunsNumber
- Fax
- Industry
- Jigsaw
- NaicsCode
- NaicsDesc
- Name
- NumberOfEmployees
- Ownership
- Phone
- Rating
- ShippingCity
- ShippingCountry
- ShippingGeocodeAccuracy
- ShippingLatitude
- ShippingLongitude
- ShippingPostalCode
- ShippingState
- ShippingStreet
- Sic
- SicDesc
- Site
- TickerSymbol
- Tradestyle
- Type
- Website
- YearStarted
Individual:
fields:
- LastName
- Name
113 changes: 113 additions & 0 deletions datasets/a/a.mapping.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
Insert Account:
sf_object: Account
table: Account
fields:
- AccountNumber
- AccountSource
- AnnualRevenue
- BillingCity
- BillingCountry
- BillingGeocodeAccuracy
- BillingLatitude
- BillingLongitude
- BillingPostalCode
- BillingState
- BillingStreet
- CleanStatus
- Description
- DunsNumber
- Fax
- Industry
- Jigsaw
- NaicsCode
- NaicsDesc
- Name
- NumberOfEmployees
- Ownership
- Phone
- Rating
- ShippingCity
- ShippingCountry
- ShippingGeocodeAccuracy
- ShippingLatitude
- ShippingLongitude
- ShippingPostalCode
- ShippingState
- ShippingStreet
- Sic
- SicDesc
- Site
- TickerSymbol
- Tradestyle
- Type
- Website
- YearStarted
Insert Individual:
sf_object: Individual
table: Individual
fields:
- LastName
- Name
- CanStorePiiElsewhere
- HasOptedOutGeoTracking
- HasOptedOutProcessing
- HasOptedOutProfiling
- HasOptedOutSolicit
- HasOptedOutTracking
- IsHomeOwner
- SendIndividualData
- ShouldForget
Insert Contact:
sf_object: Contact
table: Contact
fields:
- AssistantName
- AssistantPhone
- Birthdate
- Fax
- Phone
- CleanStatus
- Description
- Jigsaw
- Department
- DoNotCall
- Email
- EmailBouncedDate
- EmailBouncedReason
- HasOptedOutOfEmail
- HasOptedOutOfFax
- FirstName
- HomePhone
- LastName
- LeadSource
- MailingCity
- MailingCountry
- MailingGeocodeAccuracy
- MailingLatitude
- MailingLongitude
- MailingState
- MailingStreet
- MailingPostalCode
- MobilePhone
- OtherCity
- OtherCountry
- OtherGeocodeAccuracy
- OtherLatitude
- OtherLongitude
- OtherPhone
- OtherState
- OtherStreet
- OtherPostalCode
- Salutation
- Title
lookups:
AccountId:
table: Account
key_field: AccountId
IndividualId:
table: Individual
key_field: IndividualId
ReportsToId:
table: Contact
key_field: ReportsToId
after: Insert Contact
Loading