Skip to content

Instantly share code, notes, and snippets.

@lefthandedgoat
Last active August 29, 2015 14:23
Show Gist options
  • Save lefthandedgoat/2008837d32e608491c62 to your computer and use it in GitHub Desktop.
Save lefthandedgoat/2008837d32e608491c62 to your computer and use it in GitHub Desktop.
sql for amir
type SqlPart =
| select of string list
| from of string
| where of string list
let execute sqlParts =
let rec execute sqlParts sqlString =
match sqlParts with
| [] -> sqlString
| part :: tail -> execute tail (sqlString + (convertPartToString part))
execute sqlParts ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment