Skip to content

Unable to connect to Cloud SQL (PostgreSQL) instance using Sequelize #17102

Discussion options

You must be logged in to vote

Then your best bet will be to use ESM, otherwise you would have to set up a messy setup to achieve async initialization.

This gist explains how to configure a TS project to use ESM

Once you've done that, you can simply use await, as top-level-await will be available

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@falk-stefan
Comment options

@ephys
Comment options

@falk-stefan
Comment options

@ephys
Comment options

Answer selected by falk-stefan
@falk-stefan
Comment options

@falk-stefan
Comment options

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