Changed gather.bin target to include all resources
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / adapters / PostgresAdapter.java
1 package net.sourceforge.phpdt.sql.adapters;
2
3
4 public class PostgresAdapter extends DatabaseAdapter {
5     public String getShowTableQuery(DatabaseInfo info) {
6         return "SELECT TABLENAME FROM PG_TABLES";
7     }
8     public String getShowViewQuery(DatabaseInfo info) {
9         return "SELECT VIEWNAME FROM PG_VIEWS";
10     }
11     public String getShowSequenceQuery(DatabaseInfo info) {
12         return "SELECT relname FROM pg_class WHERE relkind = 'S'";
13     }
14     public String getNextValue(String sequence) {
15         return "select nextval('" + sequence + "')";
16     }
17     public String getTableListFilter() {
18         return "pg_";
19     }
20         public DatabaseAdapter getInstance() {
21                 return new PostgresAdapter();
22         }
23 }