Skip to content

Commit 91568d4

Browse files
author
Loay Gewily
committed
Rename function names for consistency
1 parent c667ba1 commit 91568d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/discovery.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function mixinDiscovery(PostgreSQL) {
3333
* @param options {all: for all owners, owner: for a given owner}
3434
* @returns {string} The sql statement
3535
*/
36-
PostgreSQL.prototype.queryTables = function(options) {
36+
PostgreSQL.prototype.buildQueryTables = function(options) {
3737
var sqlTables = null;
3838
var owner = options.owner || options.schema;
3939

@@ -56,7 +56,7 @@ function mixinDiscovery(PostgreSQL) {
5656
* @param options {all: for all owners, owner: for a given owner}
5757
* @returns {string} The sql statement
5858
*/
59-
PostgreSQL.prototype.queryViews = function(options) {
59+
PostgreSQL.prototype.buildQueryViews = function(options) {
6060
var sqlViews = null;
6161
if (options.views) {
6262
var owner = options.owner || options.schema;
@@ -117,7 +117,7 @@ function mixinDiscovery(PostgreSQL) {
117117
* @param table
118118
* @returns {String} The sql statement
119119
*/
120-
PostgreSQL.prototype.queryColumns = function(owner, table) {
120+
PostgreSQL.prototype.buildQueryColumns = function(owner, table) {
121121
var sql = null;
122122
if (owner) {
123123
sql = paginateSQL('SELECT table_schema AS "owner", table_name AS "tableName", column_name AS "columnName",'
@@ -164,7 +164,7 @@ function mixinDiscovery(PostgreSQL) {
164164
* @param table
165165
* @returns {string}
166166
*/
167-
PostgreSQL.prototype.queryPrimaryKeys = function(owner, table) {
167+
PostgreSQL.prototype.buildQueryPrimaryKeys = function(owner, table) {
168168
var sql = 'SELECT kc.table_schema AS "owner", '
169169
+ 'kc.table_name AS "tableName", kc.column_name AS "columnName",'
170170
+ ' kc.ordinal_position AS "keySeq",'
@@ -212,7 +212,7 @@ function mixinDiscovery(PostgreSQL) {
212212
* @param table
213213
* @returns {string}
214214
*/
215-
PostgreSQL.prototype.queryForeignKeys = function(owner, table) {
215+
PostgreSQL.prototype.buildQueryForeignKeys = function(owner, table) {
216216
var sql =
217217
'SELECT tc.table_schema AS "fkOwner", tc.constraint_name AS "fkName", tc.table_name AS "fkTableName",'
218218
+ ' kcu.column_name AS "fkColumnName", kcu.ordinal_position AS "keySeq",'
@@ -247,7 +247,7 @@ function mixinDiscovery(PostgreSQL) {
247247
* @param table
248248
* @returns {string}
249249
*/
250-
PostgreSQL.prototype.queryExportedForeignKeys = function(owner, table) {
250+
PostgreSQL.prototype.buildQueryExportedForeignKeys = function(owner, table) {
251251
var sql = 'SELECT kcu.constraint_name AS "fkName", kcu.table_schema AS "fkOwner", kcu.table_name AS "fkTableName",'
252252
+ ' kcu.column_name AS "fkColumnName", kcu.ordinal_position AS "keySeq",'
253253
+ ' \'PK\' AS "pkName", ccu.table_schema AS "pkOwner",'

0 commit comments

Comments
 (0)