Skip to content

Instantly share code, notes, and snippets.

@jazzdan
Created May 7, 2012 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzdan/2629755 to your computer and use it in GitHub Desktop.
Save jazzdan/2629755 to your computer and use it in GitHub Desktop.
Example Shift YAML File
from:
adapter:
database:
port:
username:
password:
host:
to:
adapter:
database:
port:
username:
password:
host:
mapping:
- {"column", "column2"}
- {"column", "column2"}
@colbyr
Copy link

colbyr commented May 7, 2012

interesting. will there be support for converting types or anything like that?

@jazzdan
Copy link
Author

jazzdan commented May 7, 2012

Yes. That's probably going to be the hard part...

@joeycarmello
Copy link

Each mapping row is one column from A to one to B?

@jazzdan
Copy link
Author

jazzdan commented May 7, 2012

Yeah so for example:

mapping:
- {"budgetId", "budget_id"}

@joeycarmello
Copy link

Well you don't have to define the types from the source table at least.

So like:

Line.budget_id to Line.budgetID as string

@jazzdan
Copy link
Author

jazzdan commented May 7, 2012

I wouldn't have to define the types at all since the types would be defined (and thus inferred) in both schemas already. (Right?)

@joeycarmello
Copy link

Oh right. I thought for a moment you'd be creating a new table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment