Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apidb reformatting #59

Merged
merged 3 commits into from Sep 10, 2013
Merged

Apidb reformatting #59

merged 3 commits into from Sep 10, 2013

Conversation

pnorman
Copy link
Contributor

@pnorman pnorman commented Aug 31, 2013

Various formatting improvements to the apidb files and SQL.

Add ?w=1 to the URL to hide whitespace changes.

@pnorman
Copy link
Contributor Author

pnorman commented Sep 3, 2013

I like the reformatting... But I'm not so keen on the keyword capitalisation. I don't think it really helps readability and, to my eyes, looks pretty ugly - it's a bit like travelling back in time to the days of FORTRAN 77

If we had syntax highlighting I'd be more inclined agree, but any editor I've seen will be using C++ syntax highlighting which won't do any SQL keyword highlighting.

Using caps for SQL keywords is well established. The documentation of PostgreSQL uses this form, as does MySQL, sqlite and most others I've seen as well as most user-written documentation.

The backend files were a mix of 3 space idents and 2 space indents,
often in the same function. This commit moves to a consistent 2
space indent and makes a few else clauses use a consistent format.
No changes in the SQL, just whitespace and caps changes
No changes in meaning, just consistent AS names.
@zerebubuth zerebubuth merged commit 5e870a7 into zerebubuth:master Sep 10, 2013
@zerebubuth
Copy link
Owner

Might be worth checking this - there were some conflicts, and I tried to re-do the normalisation to 2-space indents, no tabs. But I might have missed something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants