@@ -33,7 +33,7 @@ function mixinDiscovery(PostgreSQL) {
33
33
* @param options {all: for all owners, owner: for a given owner}
34
34
* @returns {string } The sql statement
35
35
*/
36
- PostgreSQL . prototype . queryTables = function ( options ) {
36
+ PostgreSQL . prototype . buildQueryTables = function ( options ) {
37
37
var sqlTables = null ;
38
38
var owner = options . owner || options . schema ;
39
39
@@ -56,7 +56,7 @@ function mixinDiscovery(PostgreSQL) {
56
56
* @param options {all: for all owners, owner: for a given owner}
57
57
* @returns {string } The sql statement
58
58
*/
59
- PostgreSQL . prototype . queryViews = function ( options ) {
59
+ PostgreSQL . prototype . buildQueryViews = function ( options ) {
60
60
var sqlViews = null ;
61
61
if ( options . views ) {
62
62
var owner = options . owner || options . schema ;
@@ -117,7 +117,7 @@ function mixinDiscovery(PostgreSQL) {
117
117
* @param table
118
118
* @returns {String } The sql statement
119
119
*/
120
- PostgreSQL . prototype . queryColumns = function ( owner , table ) {
120
+ PostgreSQL . prototype . buildQueryColumns = function ( owner , table ) {
121
121
var sql = null ;
122
122
if ( owner ) {
123
123
sql = paginateSQL ( 'SELECT table_schema AS "owner", table_name AS "tableName", column_name AS "columnName",'
@@ -164,7 +164,7 @@ function mixinDiscovery(PostgreSQL) {
164
164
* @param table
165
165
* @returns {string }
166
166
*/
167
- PostgreSQL . prototype . queryPrimaryKeys = function ( owner , table ) {
167
+ PostgreSQL . prototype . buildQueryPrimaryKeys = function ( owner , table ) {
168
168
var sql = 'SELECT kc.table_schema AS "owner", '
169
169
+ 'kc.table_name AS "tableName", kc.column_name AS "columnName",'
170
170
+ ' kc.ordinal_position AS "keySeq",'
@@ -212,7 +212,7 @@ function mixinDiscovery(PostgreSQL) {
212
212
* @param table
213
213
* @returns {string }
214
214
*/
215
- PostgreSQL . prototype . queryForeignKeys = function ( owner , table ) {
215
+ PostgreSQL . prototype . buildQueryForeignKeys = function ( owner , table ) {
216
216
var sql =
217
217
'SELECT tc.table_schema AS "fkOwner", tc.constraint_name AS "fkName", tc.table_name AS "fkTableName",'
218
218
+ ' kcu.column_name AS "fkColumnName", kcu.ordinal_position AS "keySeq",'
@@ -247,7 +247,7 @@ function mixinDiscovery(PostgreSQL) {
247
247
* @param table
248
248
* @returns {string }
249
249
*/
250
- PostgreSQL . prototype . queryExportedForeignKeys = function ( owner , table ) {
250
+ PostgreSQL . prototype . buildQueryExportedForeignKeys = function ( owner , table ) {
251
251
var sql = 'SELECT kcu.constraint_name AS "fkName", kcu.table_schema AS "fkOwner", kcu.table_name AS "fkTableName",'
252
252
+ ' kcu.column_name AS "fkColumnName", kcu.ordinal_position AS "keySeq",'
253
253
+ ' \'PK\' AS "pkName", ccu.table_schema AS "pkOwner",'
0 commit comments