Examples of MySQLDialect


Examples of com.alibaba.otter.node.etl.common.db.dialect.mysql.MysqlDialect

                                                                      // oracle
            dialect = new OracleDialect(jdbcTemplate, oracleLobHandler, databaseName, databaseMajorVersion,
                                        databaseMinorVersion);
        } else if (StringUtils.startsWithIgnoreCase(databaseName, MYSQL)) { // for
                                                                            // mysql
            dialect = new MysqlDialect(jdbcTemplate, defaultLobHandler, databaseName, databaseMajorVersion,
                                       databaseMinorVersion);
        } else if (StringUtils.startsWithIgnoreCase(databaseName, TDDL_GROUP)) { // for
                                                                                 // tddl
                                                                                 // group
            throw new RuntimeException(databaseName + " type is not support!");
View Full Code Here

Examples of com.quickorm.dialect.MySqlDialect

    public void setDatabase(Database database) {
        this.database = database;
        //设置方言
        switch (database) {
            case MYSQL:
                setDialect(new MySqlDialect());
                break;
            case SQL_SERVER:
                setDialect(new SqlServerDialect());
                break;
            default:
View Full Code Here

Examples of com.thinkgem.jeesite.common.persistence.dialect.db.MySQLDialect

        }else if("h2".equals(dbType)){
          dialect = new H2Dialect();
        }else if("hsql".equals(dbType)){
          dialect = new HSQLDialect();
        }else if("mysql".equals(dbType)){
          dialect = new MySQLDialect();
        }else if("oracle".equals(dbType)){
          dialect = new OracleDialect();
        }else if("postgre".equals(dbType)){
          dialect = new PostgreSQLDialect();
        }else if("mssql".equals(dbType) || "sqlserver".equals(dbType)){
View Full Code Here

Examples of com.xiaoleilu.hutool.db.dialect.impl.MysqlDialect

   * @return 方言
   */
  public static Dialect newDialect(String driverName) {
    if(StrUtil.isNotBlank(driverName)) {
      if(DRIVER_MYSQL.equalsIgnoreCase(driverName)) {
        return new MysqlDialect();
      }else  if(DRIVER_ORACLE.equalsIgnoreCase(driverName)) {
        return new OracleDialect();
      }else  if(DRIVER_SQLLITE3.equalsIgnoreCase(driverName)) {
        return new Sqllite3Dialect();
      }
View Full Code Here

Examples of org.apache.marmotta.kiwi.persistence.mysql.MySQLDialect

                String dbType = conf.getString("database.type");
                if ("h2".equalsIgnoreCase(dbType)) {
                    dialect = new H2Dialect();
                } else if ("mysql".equalsIgnoreCase(dbType)) {
                    dialect = new MySQLDialect();
                } else if ("postgres".equalsIgnoreCase(dbType)) {
                    dialect = new PostgreSQLDialect();
                }
            }
View Full Code Here

Examples of org.apache.marmotta.kiwi.persistence.mysql.MySQLDialect

            log.info("No dialect provded, trying to guess based on dbUrl: {}", dbCon);
            // try guessing
            if (dbCon.startsWith("jdbc:h2:")) {
                return new H2Dialect();
            } else if (dbCon.startsWith("jdbc:mysql:")) {
                return new MySQLDialect();
            } else if (dbCon.startsWith("jdbc:postgresql:")) {
                return new PostgreSQLDialect();
            } else {
                throw new ParseException("could not guess dialect from url, use the -D option");
            }
        } else if ("h2".equalsIgnoreCase(dbDialect)) {
            return new H2Dialect();
        } else if ("mysql".equalsIgnoreCase(dbDialect)) {
            return new MySQLDialect();
        } else if ("postgresql".equalsIgnoreCase(dbDialect)) {
            return new PostgreSQLDialect();
        } else {
            throw new ParseException("Unknown dialect: " + dbDialect);
        }
View Full Code Here

Examples of org.apache.marmotta.kiwi.persistence.mysql.MySQLDialect

        this.jdbcUser = jdbcUser;

        if("H2".equals(database)) {
            this.dialect = new H2Dialect();
        } else if("MySQL".equals(database)) {
            this.dialect = new MySQLDialect();
        } else if("PostgreSQL".equals(database)) {
            this.dialect = new PostgreSQLDialect();
        }
       
        DBConnectionChecker.checkDatabaseAvailability(jdbcUrl, jdbcUser, jdbcPass, dialect);
View Full Code Here

Examples of org.apache.marmotta.kiwi.persistence.mysql.MySQLDialect

        this.jdbcUser = jdbcUser;

        if("H2".equals(database)) {
            this.dialect = new H2Dialect();
        } else if("MySQL".equals(database)) {
            this.dialect = new MySQLDialect();
        } else if("PostgreSQL".equals(database)) {
            this.dialect = new PostgreSQLDialect();
        }
       
        DBConnectionChecker.checkDatabaseAvailability(jdbcUrl, jdbcUser, jdbcPass, dialect);
View Full Code Here

Examples of org.apache.marmotta.kiwi.persistence.mysql.MySQLDialect

    private void createRunners() throws InitializationError {
        List<KiWiConfiguration> configs = new ArrayList<>();
        createKiWiConfig("H2", new H2Dialect(), configs);
        createKiWiConfig("PostgreSQL", new PostgreSQLDialect(), configs);
        createKiWiConfig("MySQL", new MySQLDialect(), configs);

        for (KiWiConfiguration config : configs) {
            final DatabaseTestClassRunner runner = new DatabaseTestClassRunner(getTestClass().getJavaClass(), config);
            runners.add(runner);
        }
View Full Code Here

Examples of org.apache.marmotta.kiwi.persistence.mysql.MySQLDialect

    @BeforeClass
    public static void setup() throws RepositoryException {
        logger = LoggerFactory.getLogger(MySQLConcurrencyTest.class);

        KiWiConfiguration mysqlConfig = KiWiDatabaseRunner.createKiWiConfig("MySQL", new MySQLDialect());
        DBConnectionChecker.checkDatabaseAvailability(mysqlConfig);
       
        rnd = new Random();

        store = new KiWiStore(mysqlConfig);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.