Parse SQL in sql and create a SqlString representing it.

Namespace:  NHibernate.SqlCommand
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Parse ( _
	sql As String _
) As SqlString
C#
public static SqlString Parse(
	string sql
)
Visual C++
public:
static SqlString^ Parse(
	String^ sql
)
JavaScript
NHibernate.SqlCommand.SqlString.parse = function(sql);

Parameters

sql
Type: System..::.String

Remarks

Parameter marks in single quotes will be correctly skipped, but otherwise the lexer is very simple and will not parse double quotes or escape sequences correctly, for example.

See Also