Skip to content

Instantly share code, notes, and snippets.

@nsa-yoda
Created May 8, 2013 21:00
Show Gist options
  • Save nsa-yoda/5543613 to your computer and use it in GitHub Desktop.
Save nsa-yoda/5543613 to your computer and use it in GitHub Desktop.
SHSQL (Shorthand SQL)
{+conf}
def:i>11
def:s>200
set:case>all_lowercase
{-conf}
{+sql}
+table
column:i, column:s
+table
column:i, column:s>230
{-sql}
Sample:
{+CONF}
def:i>11
def:v>200
set:case>all_uppercase|all_lowercase|table_lowercase|table_uppercase|column_lowercase|column_uppercase
{-CONF}
{+SQL}
+menu
id, title:v>200, position, level, url:v>245, active:b
+tweets
id, date:d, tweet:v>146, username:v>50
+web_works
id, name:v>200, url, date, desiner, description, image, thumbnail, technology
+technologies
id, name:v>200, url, since_year
+pages
id, name:v>200, title, body, active, date:d
+blog
id, post_name:v>200, post_title:v>200, post_body, active, date:d, time:t, cat_id, tags
+blog_cats
id, category
+blog_tags
id, tag
+contact
id, name:v>200, website:v>200, email:v>200, message, request_type:v>200, date:d, time:t
{-SQL}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment