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

with-based functionality #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ivan-m
Copy link

@ivan-m ivan-m commented Jun 22, 2017

In light of the discussion in michaelt/streaming#23 this adds with-style continuation parsing style variants of all functions except copyIn, as well as some convenience functions/re-exports.

This will allow for a more "standard" bracket to be imported.
Not really a streaming function, but useful in the withXXX paradigm.
Just for completeness.
To make it easier to only have to import the module from this library
rather than also needing to bring in postgresql-simple.
@ocharles
Copy link
Collaborator

Sorry for having this languish. There's quite a lot going on, so I'll try and put some time aside to review.

@ivan-m
Copy link
Author

ivan-m commented Sep 19, 2017

If you're OK with the functionality, I'll add a variant based upon streaming-with as well.

@ocharles
Copy link
Collaborator

ocharles commented Sep 19, 2017

As well as, or instead? I feel the API of this package is growing rather surprisingly large, which is mostly the bit I want to think about.

@ivan-m
Copy link
Author

ivan-m commented Sep 19, 2017

In addition to, in a separate module. Even the functions in this PR could be in a separate module if you'd prefer to keep the surface of each module small.

@ocharles
Copy link
Collaborator

ocharles commented Sep 19, 2017

I'll have a think. Those are valid options.

@ivan-m
Copy link
Author

ivan-m commented Feb 14, 2018

In the interest of reviving this PR, I can think of the following options:

  1. As with this PR, add in with-based functions to the current module
  2. Have the with-based functions in a separate module
  3. Have the with-based functions in a separate package
  4. Replace the functions currently in this package with with-based ones

What is your preference?

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.

2 participants