public void ScriptObject(IEnumerable <Trigger> tableTriggers, string tableName, Options options)
        {
            IEnumerable <string> lines = tableTriggers.SelectMany(t => t.Script(_scriptingOptions).Cast <string>());
            string path     = _directoryService.GetTriggersDirectory(options.Root);
            string fileName = Path.Combine(path, string.Concat(tableName, ".sql"));

            _fileWriter.WriteFile(fileName, lines);
        }
        public void CreateTriggers(Options options)
        {
            string directory = _directoryService.GetTriggersDirectory(options.Root);

            if (!Directory.Exists(directory))
            {
                Console.WriteLine($"Triggers directory: '{directory}' does not exist, skipping");
                return;
            }

            IEnumerable <string> files = Directory.GetFiles(directory);

            ProcessDirectoryFiles(files, options);
        }