コード例 #1
0
ファイル: SchemasRunner.cs プロジェクト: AYCHErp/Pgdoc
        private static void BuildDocumentation(string content, List <string> matches)
        {
            Collection <PGSchema> schemas = SchemaProcessor.GetSchemas(Program.SchemaPattern, Program.xSchemaPattern);

            content = content.Replace("[DBName]", Program.Database.ToUpperInvariant());
            content = Parsers.SchemaParser.Parse(content, matches, schemas);

            FileHelper.WriteFile(content, OutputPath);

            Console.WriteLine("Writing tables.");
            TablesRunner.Run();

            Console.WriteLine("Writing triggers.");
            TriggersRunner.Run();

            Console.WriteLine("Writing views.");
            ViewsRunner.Run();

            Console.WriteLine("Writing materialized views.");
            MaterializedViewsRunner.Run();

            Console.WriteLine("Writing sequences.");
            SequencesRunner.Run();

            Console.WriteLine("Writing functions.");
            FunctionsRunner.Run();

            Console.WriteLine("Writing types.");
            TypesRunner.Run();
        }
コード例 #2
0
ファイル: TriggersRunner.cs プロジェクト: AYCHErp/Pgdoc
        private static void BuildDocumentation(string content, List <string> matches)
        {
            ICollection <PgFunction> triggers = TriggerFunctionProcessor.GetTriggerFunctions(Program.SchemaPattern);

            content = content.Replace("[DBName]", Program.Database.ToUpperInvariant());

            content = Parsers.FunctionParser.ParseTriggers(content, matches, triggers);

            FileHelper.WriteFile(content, OutputPath);
            SequencesRunner.Run();
        }