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

Wait till the database is ready before returning response? #52

Open
paul-uz opened this issue Mar 19, 2024 · 1 comment
Open

Wait till the database is ready before returning response? #52

paul-uz opened this issue Mar 19, 2024 · 1 comment

Comments

@paul-uz
Copy link

paul-uz commented Mar 19, 2024

I'm using this library in some vitest tests. I have it being launched before all tests, and then some tables are created. However, the script to create tables runs right after the launch command, at which point the database isn't actually ready to communicate with, it's just been launched.

Is there anyway to launch the database, but only have the Promise returned when the database is actually ready? Otherwise, I have to rely on a high number of connection retries for my DynamoDB client

@rmemoria
Copy link

+1

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