mcfunley / pugsql

A HugSQL-inspired database library for Python
https://pugsql.org
Apache License 2.0
673 stars 22 forks source link

Support :doc #15

Open mcfunley opened 5 years ago

mcfunley commented 5 years ago

HugSQL supports :doc, e.g.

-- :name foo
-- :doc This string documents the resulting function
select 1;

Ideally we'd support this and it'd be displayed when using help() in a Python repl. It might not be possible to do that, but we could at least include it in the output of str(module.foobar).