MetaHDBC-0.1.2: Statically checked database access

Database.MetaHDBC.SimpleSqlParser

Synopsis

Documentation

simpleSqlParser :: String -> ([String], String)Source

Parses an extended SQL string. The extionsion is that we allow variable-ids after placeholders (question marks). We return the list of identifiers and the SQL string without the variable-ids. If no variable-id is found after a placeholder, the empty string is returned as variable-id.