Skip to content

Instantly share code, notes, and snippets.

@saurabhnanda
Last active November 26, 2017 09:43
Show Gist options
  • Save saurabhnanda/c2dc9526f9f99e6c10f92120326ee8a6 to your computer and use it in GitHub Desktop.
Save saurabhnanda/c2dc9526f9f99e6c10f92120326ee8a6 to your computer and use it in GitHub Desktop.
Extending Opaleye

Context

As a user of Opaleye, I feel that Opalaye's public API is missing a number of features/niceties that are required by most people using the library in a largish project. The number of separate projects trying to close these gaps seem to strengthen this point:

Based on the discussion at silkapp/girella#9, specifically Tom's approval in that thread, this is an effort to build consensus around features that Opaleye's users would like to see in the core library directly. Of course, these features should not compromise general principles that @tomjaguarpaw has specifically mentioned:

  • Type-safety
  • Composability

Proposed feature additions

Request for comments

Please feel free to comment below with your thoughts about the proposed features. I volunteer to moderate & collate the discussion periodically.

@tomjaguarpaw
Copy link

Thanks, this is a good start.

(I didn't get the ping, by the way. I only saw this via the issue on silk-opaleye. Perhaps mentions on gists work differently?)

@saurabhnanda
Copy link
Author

Let's see if the ping works now that Tom is participating in the discussion.

@saurabhnanda
Copy link
Author

@zyla
Copy link

zyla commented Jul 14, 2017

In-built support for migrations

This seems to be a big task. A good start would be to implement checking whether the schema defined in Opaleye matches the actual database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment