SqlParser.parseString

gda.statement.Statement parseString(string sql, out string remain)

Parses sql and creates a #GdaStatement statement from the first SQL statement contained in sql: if sql contains more than one statement, then the remaining part of the string is not parsed at all, and remain (if not null) will point at the first non parsed character.

To include variables in the sql string, see the

<link linkend="GdaSqlParser.description">GdaSqlParser's object description</link>.

Parameters

sqlthe SQL string to parse
remainlocation to store a pointer to remaining part of sql in case sql has multiple statement, or null

Returns

a new #GdaStatement object, or null if an error occurred

Throws

[SqlParserException]