Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example/h-sql: improvements and simplifications #368

Closed
wants to merge 2 commits into from

Conversation

asymmetric
Copy link
Contributor

@asymmetric asymmetric commented Dec 10, 2024

NB: I'm an OCaml beginner, so some of my improvements might not be seen as such (or as being idiomatic) by more seasoned devs.

@asymmetric asymmetric force-pushed the patch-1 branch 2 times, most recently from 02d9f6a to d44447d Compare December 10, 2024 12:23
@asymmetric asymmetric changed the title example/h-sql: document Lwt.bind example/h-sql: improvements and simplifications Dec 10, 2024
let query =
let open Caqti_request.Infix in
(T.unit ->* T.(tup2 int string))
(T.unit ->* T.(t2 int string))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tup2 is deprecated.

@asymmetric asymmetric force-pushed the patch-1 branch 2 times, most recently from 1b6cc85 to 21e2ea2 Compare December 10, 2024 12:37
asymmetric and others added 2 commits December 10, 2024 13:42
IMO, this improves the examples by:

- making the arguments stand out more, by moving them to the top
- removing visual clutter from the promise section, which is the focus
  of the example
@asymmetric asymmetric force-pushed the patch-1 branch 3 times, most recently from 3784f01 to c3d1aff Compare December 10, 2024 13:40
@asymmetric
Copy link
Contributor Author

Closing, as I wasn't aware of the promises example.

@asymmetric asymmetric closed this Dec 11, 2024
@asymmetric asymmetric deleted the patch-1 branch December 11, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant