SQLite has a bubble generator tool that they use to generate syntax diagrams for their documentation:https://www.sqlite.org/docsrc/doc/tip/art/syntax/bubble-generator.tcl?mimetype=text/plain I think that the results are rather good. See, for example, the INSERT documentation:https://www.sqlite.org/lang_insert.html
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных