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

use case statement pattern matching for DB query wrapper #1

Open
whitfieldc opened this issue Jan 5, 2016 · 0 comments
Open

use case statement pattern matching for DB query wrapper #1

whitfieldc opened this issue Jan 5, 2016 · 0 comments
Assignees

Comments

@whitfieldc
Copy link
Owner

routes should look like this:

   case Database.delete_all(Task) do
        {_number, nil} ->
          json conn, []
        _ ->
          conn
          |> put_status(500)
          |> text("Delete Failed")
      end

querywrapper's return value must be updated for this

@whitfieldc whitfieldc self-assigned this Jan 5, 2016
@whitfieldc whitfieldc changed the title use case statement pattern matching for Database calls use case statement pattern matching for DB query wrapper Jan 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant