All notable changes to this project will be documented in this file.
- Add description comments for enums
- Include table comment for mysql.
- Generated type for Date was invalid for runtypes generation. This now references the custom srt.Date runtype.
- Add configuration option
enums
. This allows for the specification of particular enums to generate types for.
- Add support for generating TypeScript types. This can be used in combination with runtime type validation libraries like typia.
- Fixed incorrect type definition (after updating to TypeScript 4.9.5).
- Updated dependencies.
- Add configuration option
camelCase
. Set to false to generate types with names that match the database. Defaults to true. - Add configuration option
tables
. This allows the specification of particular tables (or views) to generate types for.
- Add support for SQL Server.
mssql
is now an option for 'dataType'. - Now including an
srt.Date
runtime type in generated files.
- Update README
- Add initial test configurations and update examples.
- Code reorganization
- README update
- Make database driver packages optional dependencies. You now need to install mysql2 or pg packages.
- Add support for generating extra information in comments.
extraInfo: indexes: true dataType: true
- Finish and fix comment/description generation.
- Implement dry run mode. Results will be printed to stdout rather than written to a file.
- Added examples (see examples directory).
- Completed initial MySQL support.
- Fix excludeTables handling.
- No longer generating TypeScript type code for non-enum enums (letting it come from the runtype). This only matters when using
enumsAsTypes
option and is otherwise a transparent change. - Fixed problem with camelizing of names (e.g. blog_posts => BlogPosts instead of Blogposts)
- Adding initial Mysql (5) support. Not ready for use.