Postgresql.listTables()

List the names of the tables in the specified Postgresql database.

Usage

Hover over inputs/exits for more info.

var Postgresql = require('machinepack-postgresql');


// List the names of the tables in the specified Postgresql database.

Postgresql.listTables({

connectionUrl: 'postgres://foo:bar@localhost:5432/machinepack_postgresql',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Could not connect to Postgresql server at specified `connectionUrl`.

couldNotConnect: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

connectionUrl required

The postgresql connection URL

'postgres://foo:bar@localhost:5432/machinepack_postgresql'

Exits

error

An unexpected error occurred.

couldNotConnect

Could not connect to Postgresql server at specified `connectionUrl`.

success

OK.

[ 'direwolves' ]