コード例 #1
0
        public sqlcompiler GenerateSqlcompiler(Iddl db, Istatement stmt, bool for_compilation_of_procedure_sourcecode)
        {
            switch (prov)
            {
            case DbProvider.MSSQL:
                return(new sqlcompiler_mssql(db, stmt)
                {
                    CompilingProcSourcecode = for_compilation_of_procedure_sourcecode
                });

            case DbProvider.Oracle:
                return(new sqlcompiler_oracle(db, stmt)
                {
                    CompilingProcSourcecode = for_compilation_of_procedure_sourcecode
                });

#if LINUX
#else
            case DbProvider.MySQL:
                return(new sqlcompiler_mysql(db, stmt)
                {
                    CompilingProcSourcecode = for_compilation_of_procedure_sourcecode
                });

            case DbProvider.MSAccess:
                return(new sqlcompiler_msaccess(db, stmt));
#endif
            default:
                throw new System.NotSupportedException(prov.ToString());
            }
        }
コード例 #2
0
 private void PropagateStatementCompilation(Istatement stmt)
 {
     if (!ManifoldRelevant())
     {
         return;
     }
     db.Manifold.PropagateStatementCompilation(stmt);
 }
コード例 #3
0
 public bool PropagateStatementCompilation(Istatement stmt)
 {
     if (secondarydbs == null)
     {
         return(true);
     }
     foreach (Iddl slave in secondarydbs)
     {
         slave.ManifoldSetCurrentStatement(stmt);
     }
     return(true);
 }
コード例 #4
0
 protected sqlcompiler(Iddl _db, Istatement _stmt)
 {
     if (_db != null)
     {
         db = _db;
     }
     if (_stmt != null)
     {
         stmt      = _stmt;
         local_sql = stmt.ToString();
     }
     local_parameters  = new List <DbParameter>();
     rowsource_aliases = new Dictionary <string, Irowsource>();
     /* [rzamponi 20100112] FxCop CA1805:DoNotInitializeUnnecessarily */
     //_indent = 0;
 }
コード例 #5
0
 public override Isqlcompiler CreateCompiler(Istatement stmt)
 {
     return(new sqlcompiler_mysql(db, stmt));
 }
コード例 #6
0
 public sqlcompiler_mysql(Iddl _db, Istatement _stmt) : base(_db, _stmt)
 {
 }
コード例 #7
0
 public sqlcompiler GenerateSqlcompiler(Iddl db, Istatement stmt)
 {
     return(GenerateSqlcompiler(db, stmt, false));
 }
コード例 #8
0
 public sqlcompiler_oracle(Iddl _db, Istatement _stmt) : base(_db, _stmt)
 {
 }
コード例 #9
0
 public sqlcompiler_msaccess(Iddl _db, Istatement _stmt) : base(_db, _stmt)
 {
 }