You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, honestly I'm not sure there's much value in supporting using existing clients - I can't even remember why I introduced it! I guess in case people want to use connection strings for the credentials or something?
Thanks for the issue. I'll see if I can find some time to look into supporting this combination of parameters.
In my case it means I don't have to write the same code twice for e.g. fetching the secrets and setting up the connection to the database (with properties such as pinned CA etc).
The current shortfall of not allowing a custom client is this library doesn't support the ssl setting of the client. If removing the ability to use a custom client, the ssl setting should be made available through the client config object.
Another potential issue with removing it, I currently use the aws-xray-sdk to wrap the pg library so I get trace data. Removing the ability to pass in a client would make this impossible(or much mroe difficult).
I noticed the
createDb
was marked as deprecated, so I moved to refactor my code to support the newer syntax.In my client I'd like to do the following:
However, the type defined for MigrateDBConfig does not allow for ensureDatabaseExists at the same time with an existing client:
postgres-migrations/src/types.ts
Lines 51 to 55 in 5a73373
The text was updated successfully, but these errors were encountered: