Closed kmoppel closed 6 days ago
Actually needs probably a JDBC version also to be useful for everyone. Two separate flags probably OK as there's probably no 3rd common connectstring option, right @scorpevans ?
https://tembo.io/docs/getting-started/postgres_guides/connecting-to-postgres-with-java
Actually needs probably a JDBC version also to be useful for everyone. Two separate flags probably OK as there's probably no 3rd common connectstring option, right @scorpevans ?
https://tembo.io/docs/getting-started/postgres_guides/connecting-to-postgres-with-java
then probably you can return a dict with the different types:
{
jdbc: {connstring:}
postgresql: {connstring: postgresql://pgso:pgsopass@13.53.43.27:5432/postgres?sslmode=require}
}
Hmm, I'm on the fence on returning an object also...maybe still too premature to solve it even, given that the current users mostly will be power users, they could probably glue the "jdbc:" prefix via some pipe a la ... --connstr-output-only | sed -E 's/(.*)/jdbc:\1/'
Ensure VM, set up Postgres, print connstr and exit. Helps with all kinds of integrations / pipelines