mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
New style guidelines for SQL.
This commit is contained in:
parent
73244ba170
commit
76fb59758e
@ -66,3 +66,9 @@ debug, use debug.printf to do so, and leave those print statements in the code
|
||||
(perhaps commented out) so they can later be re-enabled. Remember that once
|
||||
code is buggy, it tends to have more bugs, and you'll probably need those print
|
||||
statements again.
|
||||
|
||||
SQL table names should be all-lowercase and include underscores to separate
|
||||
words. This is because SQL itself is case-insensitive.
|
||||
|
||||
SQL statements in code should put SQL words in ALL CAPS:
|
||||
SELECT quote FROM quotes ORDER BY random() LIMIT 1
|
||||
|
Loading…
Reference in New Issue
Block a user