Beispiel #1
0
 /// <summary>
 /// Splits a script with multiple delimited commands into commands
 /// </summary>
 /// <param name="scriptContents"></param>
 /// <returns></returns>
 public IEnumerable <string> SplitScriptIntoCommands(string scriptContents)
 {
     using (var reader = new MySqlCommandReader(scriptContents))
     {
         var commands = new List <string>();
         reader.ReadAllCommands(c => commands.Add(c));
         return(commands);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Splits a script with multiple delimited commands into commands
 /// </summary>
 /// <param name="scriptContents"></param>
 /// <returns></returns>
 public IEnumerable<string> SplitScriptIntoCommands(string scriptContents)
 {
     using (var reader = new MySqlCommandReader(scriptContents))
     {
         var commands = new List<string>();
         reader.ReadAllCommands(c => commands.Add(c));
         return commands;
     }
 }