sqlformat create table

94 views
Skip to first unread message

Russell Wallace

unread,
Jun 1, 2017, 5:19:24 AM6/1/17
to sqlparse
I tried using sqlformat -r on some SQL create table statements, and it produced this:

CREATE TABLE assigned(atom_id integer REFERENCES atom_base,
                                                 val boolean);


CREATE TABLE atom_base(atom_id integer PRIMARY KEY);


CREATE TABLE clause_base(clause_id integer PRIMARY KEY);


CREATE TABLE literal(clause_id integer REFERENCES clause_base,
                                                  polarity boolean, atom_id integer REFERENCES atom_base);

So the formatting isn't correct. Is there something I'm missing, something I should be doing different to make it work?
Reply all
Reply to author
Forward
0 new messages