Last active
August 29, 2015 14:23
-
-
Save lefthandedgoat/2008837d32e608491c62 to your computer and use it in GitHub Desktop.
sql for amir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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