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"; //$NON-NLS-1$
8 public String getShowViewQuery(DatabaseInfo info) {
9 return "SELECT VIEWNAME FROM PG_VIEWS"; //$NON-NLS-1$
11 public String getShowSequenceQuery(DatabaseInfo info) {
12 return "SELECT relname FROM pg_class WHERE relkind = 'S'"; //$NON-NLS-1$
14 //These lines commented because I couldn't find the string values anywhere
15 // public String getNextValue(String sequence) {
16 // return Messages.getString("PostgresAdapter.select_nextval(___4") + sequence + Messages.getString("PostgresAdapter.__)_5"); //$NON-NLS-1$ //$NON-NLS-2$
18 // public String getTableListFilter() {
19 // return Messages.getString("PostgresAdapter.pg__6"); //$NON-NLS-1$