Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I find this particular choice of syntax somewhat amusing because the pipe notation based query construction was something I ended up using a year ago when making an SQL library in OCaml:

https://github.com/kiranandcode/petrol

An example query being:

```

let insert_person ~name:n ~age:a db = Query.insert ~table:example_table ~values:Expr.[ name := s n; age := i a ] |> Request.make_zero |> Petrol.exec db

```



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: