On Tue, Mar 2, 2021 at 10:44 AM Mark Allen <[email protected]> wrote:

> Jeremy, I noticed that column comments show up in the annotations from
> sequel-annotate gem which is awesome! However, table-level SQL comments do
> not seem to make it through to the model annotations, and I don't see any
> specs that include table comments either here:
> https://github.com/jeremyevans/sequel-annotate/blob/master/spec/sequel-annotate_spec.rb
> So I'm assuming it's not currently supported.
>
> Is this a feature that sequel-annotate could support? I could try
> implementing it and submitting a PR if you think yes, and any pointers in
> the right direction as always would be very helpful.
>

You are correct that table comments are not currently expected to be picked
up.  I'm open to a PR that adds support for them.  I didn't author the
column comment support, so I don't really remember what is involved.  I
assume a query per table to get the table comment, and if a table comment
exists, displaying it the annotation, maybe after the table name and before
the column information.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSScaP9bEP09M77nKPJ_oodCZ0JgjY-rw9JFZxaBGA%3DSUnA%40mail.gmail.com.

Reply via email to