{"action":"opened","issue":{"url":"https://api.github.com/repos/oracle/node-oracledb/issues/48","labels_url":"https://api.github.com/repos/oracle/node-oracledb/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/oracle/node-oracledb/issues/48/comments","events_url":"https://api.github.com/repos/oracle/node-oracledb/issues/48/events","html_url":"https://github.com/oracle/node-oracledb/issues/48","id":61018354,"number":48,"title":"pool is missing getConnection?","user":{"login":"kgajowy","id":3466388,"avatar_url":"https://avatars.githubusercontent.com/u/3466388?v=3","gravatar_id":"","url":"https://api.github.com/users/kgajowy","html_url":"https://github.com/kgajowy","followers_url":"https://api.github.com/users/kgajowy/followers","following_url":"https://api.github.com/users/kgajowy/following{/other_user}","gists_url":"https://api.github.com/users/kgajowy/gists{/gist_id}","starred_url":"https://api.github.com/users/kgajowy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgajowy/subscriptions","organizations_url":"https://api.github.com/users/kgajowy/orgs","repos_url":"https://api.github.com/users/kgajowy/repos","events_url":"https://api.github.com/users/kgajowy/events{/privacy}","received_events_url":"https://api.github.com/users/kgajowy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-13T09:07:14Z","updated_at":"2015-03-13T09:07:14Z","closed_at":null,"body":"Dear all,\r\n\r\nI have successfully compiled newest version, I am able to perform simple queries against my external database.\r\n\r\nvar oracledb = require('nodeoracledb');\r\nvar dbConfig = require('./dbconfig.js');\r\n\r\nvar execute_statement = function (statement, callback, res) {\r\n    pool.getConnection(\r\n        function (err, connection) {\r\n            console.log(\"ok!\", err, connection);\r\n            if (err) {\r\n                console.error(err.message);\r\n                return;\r\n            }\r\n\r\n            connection.execute(\r\n                statement,\r\n                {},\r\n                {outFormat: oracledb.OBJECT},\r\n                function (err, result) {\r\n                    connection.release();\r\n                    if (err) {\r\n                        //res.send({error: err.message});\r\n                        callback(err, connection);\r\n                    } else {\r\n                        callback(result, connection);\r\n                    }\r\n                });\r\n        });\r\n};\r\n\r\nis working great.. but when I want to use connection pooling:\r\n\r\noracledb.createPool({\r\n    user: dbConfig.user,\r\n    password: dbConfig.password,\r\n    connectString: dbConfig.connectString,\r\n    poolMin : 2,\r\n    poolMax : 6\r\n}, function(err, orapool){\r\n    pool = orapool;\r\n\r\n    console.log('Pool func?', pool.hasOwnProperty('getConnection'));\r\n\r\n    if (typeof err != 'undefined' || typeof pool == 'undefined') {\r\n        console.log(\"could not initialize a pool...\");\r\n        process.exit(1);\r\n    }\r\n\r\n    var server = app.listen(10000, function () {\r\n        var host = server.address().address\r\n        var port = server.address().port\r\n        console.log('Example app listening at http://%s:%s', host, port)\r\n    });\r\n});\r\n\r\nthere is no \"getConnection\" function at all:\r\nhttps://github.com/oracle/node-oracledb/blob/master/doc/api.md#poolmethods\r\ni.e. executing pool.getConnection(function(err,conn){//...}); fails.\r\n\r\nany ideas?\r\n\r\n//everything is 32bit, compiled without errors.\r\n"}}