We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a97617 commit 6d1791fCopy full SHA for 6d1791f
1 file changed
README.md
@@ -91,12 +91,13 @@ connection URI from the environment.
91
92
```gleam
93
import envoy
94
+import gleam/erlang/process.{type Name}
95
import pog
96
97
/// Read the DATABASE_URL environment variable.
98
/// Generate the pog.Config from that database URL.
99
/// Finally, connect to database.
-pub fn read_connection_uri(name) -> Result(pog.Config, Nil) {
100
+pub fn read_connection_uri(name: Name(pog.Message)) -> Result(pog.Config, Nil) {
101
use database_url <- result.try(envoy.get("DATABASE_URL"))
102
pog.url_config(name, database_url)
103
}
0 commit comments