/// <summary> /// Helper method which given a full SQL script, returns /// a <see cref="ScriptCollection"/> of individual <see cref="TemplateParameter"/> /// using "GO" as the delimiter. /// </summary> /// <param name="fullScriptText">Full script text.</param> public static ScriptCollection ParseScripts(string fullScriptText) { var scripts = new ScriptCollection(fullScriptText); var splitter = new ScriptSplitter(fullScriptText); foreach (string script in splitter) { scripts.Add(new Script(script)); } return(scripts); }
public SqlScriptReader(ScriptSplitter splitter) : base(splitter) { }
public SeparatorLineReader(ScriptSplitter splitter) : base(splitter) { }
protected ScriptReader(ScriptSplitter splitter) { Splitter = splitter; }