1 package net.sourceforge.phpdt.sql.adapters;
4 public class PostgresAdapter extends DatabaseAdapter {
5 public String getShowTableQuery(DatabaseInfo info) {
6 return "SELECT TABLENAME FROM PG_TABLES";
8 public String getShowViewQuery(DatabaseInfo info) {
9 return "SELECT VIEWNAME FROM PG_VIEWS";
11 public String getShowSequenceQuery(DatabaseInfo info) {
12 return "SELECT relname FROM pg_class WHERE relkind = 'S'";
14 public String getNextValue(String sequence) {
15 return "select nextval('" + sequence + "')";
17 public String getTableListFilter() {
20 public DatabaseAdapter getInstance() {
21 return new PostgresAdapter();