コード例 #1
0
 protected virtual SqlStatement VisitCreateExternProcedure(CreateExternalProcedureStatement statement)
 {
     return(new CreateExternalProcedureStatement(statement.ProcedureName, statement.Parameters,
                                                 statement.ExternalReference)
     {
         ReplaceIfExists = statement.ReplaceIfExists
     });
 }
コード例 #2
0
        public static void ExternalWithNoArguments()
        {
            var statement = new CreateExternalProcedureStatement(ObjectName.Parse("SYS.ext_proc2"), "Deveel.Data.ExtProcedures.Proc1()");

            var sql = statement.ToString();
            var expected = new StringBuilder();
            expected.AppendLine("CREATE EXTERNAL PROCEDURE SYS.ext_proc2() IS");
            expected.Append("  LANGUAGE DOTNET NAME 'Deveel.Data.ExtProcedures.Proc1()'");

            Assert.AreEqual(expected.ToString(), sql);
        }
コード例 #3
0
        public static void ExternalWithNoArguments()
        {
            var statement = new CreateExternalProcedureStatement(ObjectName.Parse("SYS.ext_proc2"), "Deveel.Data.ExtProcedures.Proc1()");

            var sql      = statement.ToString();
            var expected = new StringBuilder();

            expected.AppendLine("CREATE EXTERNAL PROCEDURE SYS.ext_proc2() IS");
            expected.Append("  LANGUAGE DOTNET NAME 'Deveel.Data.ExtProcedures.Proc1()'");

            Assert.AreEqual(expected.ToString(), sql);
        }
コード例 #4
0
ファイル: StatementVisitor.cs プロジェクト: deveel/deveeldb
 protected virtual SqlStatement VisitCreateExternProcedure(CreateExternalProcedureStatement statement)
 {
     return new CreateExternalProcedureStatement(statement.ProcedureName, statement.Parameters,
         statement.ExternalReference) {
             ReplaceIfExists = statement.ReplaceIfExists
         };
 }