You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently started putting comments into our database and we thought it would be awesome if this lib could add the comments as documentation in the output. This might be specific to postgres so I'm not sure how that would work. Potentially this lib could just offer a hook so we could add our own documentation before the typescript definition.
We add comments like this:
-- tablecomment on table my_table is 'This is my table';
-- columncomment on column my_column.id is 'PK of my_table';
actually, the more I think about it, general hooks is probably the way to go. This would also solve my problems for #5 and #4.
great library by the way, it has been super helpful!
The text was updated successfully, but these errors were encountered:
Good idea! Generating JSDoc comments from the actual database schema would be nice. At least for database tables. It can be done by integrating the following SQL query into the lib:
We recently started putting comments into our database and we thought it would be awesome if this lib could add the comments as documentation in the output. This might be specific to postgres so I'm not sure how that would work. Potentially this lib could just offer a hook so we could add our own documentation before the typescript definition.
We add comments like this:
actually, the more I think about it, general hooks is probably the way to go. This would also solve my problems for #5 and #4.
great library by the way, it has been super helpful!
The text was updated successfully, but these errors were encountered: