Format an SQL statement using simple rules:
a) Insert newline after each comma;
b) Indent three spaces after each inserted newline;
If the statement contains single/double quotes return unchanged,
it is too complex and could be broken by simple formatting.
Namespace: NHibernate.AdoNet.UtilAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public virtual string Format( string sql ) |
Visual Basic |
---|
Public Overridable Function Format ( _ sql As String _ ) As String |
Visual C++ |
---|
public: virtual String^ Format( String^ sql ) |
Parameters
- sql
- Type: System..::..String
[Missing <param name="sql"/> documentation for "M:NHibernate.AdoNet.Util.DdlFormatter.Format(System.String)"]
Return Value
[Missing <returns> documentation for "M:NHibernate.AdoNet.Util.DdlFormatter.Format(System.String)"]