3Type-safe PureScript FFI bindings for PostgreSQL with typed query support.
8spago install yoga-postgres yoga-sql-types
15import Yoga.Postgres as PG
16import Yoga.Postgres.TypedQuery as TQ
19 conn <- PG.connect { connectionString: "postgresql://localhost/mydb" }
22 rows <- PG.query conn "SELECT * FROM users" []
25 result <- TQ.query conn
26 (TQ.sql @"SELECT id, name FROM users WHERE id = $id")
32See [yoga-postgres-om](../yoga-postgres-om) for Om-wrapped operations.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list