Skip to content

Commit 6d1791f

Browse files
committed
Name!
1 parent 7a97617 commit 6d1791f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ connection URI from the environment.
9191

9292
```gleam
9393
import envoy
94+
import gleam/erlang/process.{type Name}
9495
import pog
9596
9697
/// Read the DATABASE_URL environment variable.
9798
/// Generate the pog.Config from that database URL.
9899
/// Finally, connect to database.
99-
pub fn read_connection_uri(name) -> Result(pog.Config, Nil) {
100+
pub fn read_connection_uri(name: Name(pog.Message)) -> Result(pog.Config, Nil) {
100101
use database_url <- result.try(envoy.get("DATABASE_URL"))
101102
pog.url_config(name, database_url)
102103
}

0 commit comments

Comments
 (0)