package org.umlg.sqlg;

import org.umlg.sqlg.sql.dialect.PostgresDialect;
import org.umlg.sqlg.sql.dialect.SqlDialect;

import java.sql.DatabaseMetaData;
import java.sql.SQLException;

/**
 * @author Lukas Krejci
 * @since 1.2.0
 */
public class PostgresPlugin implements SqlgPlugin {

    @Override
    public boolean canWorkWith(DatabaseMetaData metaData) throws SQLException {
        return metaData.getDatabaseProductName().toLowerCase().contains("postgres");
    }

    @Override
    public String getDriverFor(String connectionUrl) {
//        return connectionUrl.startsWith("jdbc:postgresql") ? "org.postgresql.xa.PGXADataSource" : null;
        return connectionUrl.startsWith("jdbc:postgresql") ? "org.postgresql.Driver" : null;
    }

    @Override
    public SqlDialect instantiateDialect() {
        return new PostgresDialect();
    }

}

@@ -538,114 +538,8 @@
 ) %7B%0A
-//        return connectionUrl.startsWith(%22jdbc:postgresql%22) ? %22org.postgresql.xa.PGXADataSource%22 : null;%0A
     

remove commented out code