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()); } }
private void PropagateStatementCompilation(Istatement stmt) { if (!ManifoldRelevant()) { return; } db.Manifold.PropagateStatementCompilation(stmt); }
public bool PropagateStatementCompilation(Istatement stmt) { if (secondarydbs == null) { return(true); } foreach (Iddl slave in secondarydbs) { slave.ManifoldSetCurrentStatement(stmt); } return(true); }
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; }
public override Isqlcompiler CreateCompiler(Istatement stmt) { return(new sqlcompiler_mysql(db, stmt)); }
public sqlcompiler_mysql(Iddl _db, Istatement _stmt) : base(_db, _stmt) { }
public sqlcompiler GenerateSqlcompiler(Iddl db, Istatement stmt) { return(GenerateSqlcompiler(db, stmt, false)); }
public sqlcompiler_oracle(Iddl _db, Istatement _stmt) : base(_db, _stmt) { }
public sqlcompiler_msaccess(Iddl _db, Istatement _stmt) : base(_db, _stmt) { }