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

Cannot configure customTypeTransform from command line #6

Open
blachniet opened this issue Nov 12, 2021 · 0 comments
Open

Cannot configure customTypeTransform from command line #6

blachniet opened this issue Nov 12, 2021 · 0 comments

Comments

@blachniet
Copy link

I'm trying to use the customTypeTransform configuration option (added in #5), but it appears that the configuration option is not making it past bin/schemats.ts.

I've defined the configuration in a file and that looks something like this:

// schemats.js
module.exports = {
  customTypeTransform: {
    uuid: 'UUID',
  },
};

I think we need something like the following after this line in bin/schema.ts.

                 customTypes: argv.customTypes,
+                customTypeTransform: argv.customTypeTransform,
                 camelCase: argv.camelCase,

And maybe something like this in the yargs call.

     .describe('skipTables', 'tables to skip')
     .describe('customTypes', 'Mapping of custom types for a table column')
+    .describe('customTypeTransform', 'Mapping of custom types for a database column type')
     .describe('customHeader', 'Custom header to prefix the output file')
     .help('h')

Please let me know if you need any additional information. Thank you for continuing to support this library!

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

No branches or pull requests

1 participant