Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de60d69

Browse files
committed
Remove query builder :(
1 parent 1429ab3 commit de60d69

File tree

17 files changed

+3
-6148
lines changed

17 files changed

+3
-6148
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,8 @@ You can already use this to build useful applications. However, until we have a
1414

1515
### Query Builder
1616

17-
The query builder is one of the most exciting features of this package, but more experimental than the lower-level API.
18-
19-
You can currently generate a Roc module from your schema that you can use through the functions exposed under [`Sql`](./src/Sql.roc) to compose type-safe `SELECT` statements.
20-
21-
The plan is to support all the other SQL commands, but that's coming later. In the meantime, you can perform those by creating a raw SQL command with `Pg.Cmd.new`.
22-
23-
**See an [example](./examples/store) of a simple HTTP API built with the query builder!**
17+
For a while, I explored creating a type-safe query builder on top of roc-pg. I gave some cool demos, and the core idea seemed promising. Unfortunately, I didn't get to build enough of it to be helpful in a real application, and nowadays, I don't have the time it'd require to make it so.
18+
You can see an example of what that looked like [here](https://github.com/agu-z/roc-pg/blob/6c17c7b438bdb349cebaad1c8e100045ff3f6aeb/examples/store/server.roc).
2419

2520
## Examples
2621

β€Žexamples/store/README.mdβ€Ž

Lines changed: 0 additions & 54 deletions
This file was deleted.

β€Žexamples/store/db.sqlβ€Ž

Lines changed: 0 additions & 323 deletions
This file was deleted.

0 commit comments

Comments
Β (0)