src/nopg.js
function pg_table_exists(self, name) {
	return do_query(self, 'SELECT * FROM information_schema.tables WHERE table_name = $1 LIMIT 1', [name]).then(function(rows) {
		if(!rows) { throw new TypeError("Unexpected result from query: " + util.inspect(rows)); }
		return rows.length !== 0;
	});
}
function pg_table_exists(self, name) {
	return do_query(self, 'SELECT * FROM information_schema.tables WHERE table_name = $1 LIMIT 1', [name]).then(function(rows) {
		if(!rows) { throw new TypeError("Unexpected result from query: " + util.inspect(rows)); }
		return rows.length !== 0;
	});
}
function pg_table_exists ( self , name ) { return do_query ( self , 'SELECT * FROM information_schema.tables WHERE table_name = $1 LIMIT 1' , [ name ] ) . then ( function ( rows ) { if ( ! rows ) { throw new TypeError ( "Unexpected result from query: " + util . inspect ( rows ) ) ; } return rows . length !== 0 ; } ) ; }
Returns `true` if PostgreSQL database table exists.
@todo Implement this in nor-pg and use here.
Returns true if PostgreSQL database table exists .