Question: can I use a regular connection string?
See original GitHub issueCan I use a regular connection string with this library?
Docs: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
Examples:
postgresql://
postgresql://localhost
postgresql://localhost:5432
postgresql://localhost/mydb
postgresql://user@localhost
postgresql://user:secret@localhost
postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp
postgresql://localhost/mydb?user=other&password=secret
I would expect to be able to do something like this:
let! data =
"postgresql://user:secret@localhost"
|> Sql.connect
|> Sql.query "SELECT * FROM some_table"
|> Sql.executeTableAsync
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
c# - Anything wrong with putting connection strings in ...
Does "standardize" in this case mean that your classes would directly acquire the connection string/other settings by using ...
Read more >SQL Connection Strings tips
This article will show some useful tips about SQL connection strings.
Read more >Connection String URI Format
Connection String Formats You can specify the MongoDB connection string by using either: Standard Connection String Format. SRV Connection Format.
Read more >Password character issues for } and ' in SQL connection ...
I will try and list some of the obvious reasons and some other maybe not so obvious reasons why some characters fail when...
Read more >Connect with sqlplus from the command line using a ...
I have a username = x, password = y, database = z, port = a, SID = b, and Hostname = c. So,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I just discovered that 60secs before you reply! Thanks
Hi @jchannon, you can use the literal string as input for the
Sql.connectfunction and do stuff from that point on: