mlaanderson / database-js

Common Database Interface for Node
MIT License
74 stars 16 forks source link

hang await statement.query always loading #30

Closed tegarkurniawan closed 2 years ago

tegarkurniawan commented 2 years ago

conn = new Connection("database-js-postgres://postgres:password@ip:5432/db"); try { statement = await conn.prepareStatement("SELECT * FROM connection WHERE name = ?"); rows = await statement.query('datasama'); console.log(rows); } catch (error) { console.log(error); } finally { await connection.close(); }

thiagodp commented 2 years ago

Hello, @tegarkurniawan! Is the problem occurring only with the driver for Postgres ? If so, I would suggest you to close this Issue and open a new one at the driver page. Thx!

thiagodp commented 2 years ago

I'm closing this Issue for now, since it's possibly a driver-specific Issue.