Skip to content

General question #3

Description

@nicholasf

Hi Dresende,

Nice work here. One thing I don't understand is how to apply data transformations when a DDL schema changes (to support production data changes).

For example, take the name column in the README's example.

name   : { type : "text", required: true }

What if a requirement meant that this should split into 'first_name' and 'last_name' and these two new columns should use the data in name? So the name column would be split into tokens and the last token becomes last_name and the first token becomes the first_name. Let's say this code is in a helper module that exports nameTransformer().

first_name   : { type : "text", required: true }
last_name   : { type : "text", required: true }

How would we manage to call nameTransformer() in the lifecycle of dropping the name column and creating the two new columns?

Cheers,
Nicholas

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions