Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hang await statement.query always loading #5

Open
tegarkurniawan opened this issue Dec 27, 2021 · 1 comment
Open

hang await statement.query always loading #5

tegarkurniawan opened this issue Dec 27, 2021 · 1 comment

Comments

@tegarkurniawan
Copy link

let conn, statement, rows;

            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();
            }   
@cyonkee
Copy link

cyonkee commented Apr 26, 2022

Also experienced this issue with the query hanging. Did you find any workaround to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants