org.sql2o.quirks.PostgresQuirksProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sql2o-postgres Show documentation
Show all versions of sql2o-postgres Show documentation
Postgres extension for sql2o
package org.sql2o.quirks;
/**
* Created by lars on 28.10.14.
*/
public class PostgresQuirksProvider implements QuirksProvider {
@Override
public Quirks provide() {
return new PostgresQuirks();
}
@Override
public boolean isUsableForUrl(String url) {
return url.startsWith("jdbc:postgresql:");
}
@Override
public boolean isUsableForClass(String className) {
return className.startsWith("org.postgresql.");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy