yesodweb / yesodweb/persistent

Why can't I supply my own connection to Persistent?

Open
#623 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
486
Forks
306
PR merge metrics
No merged PRs in 30d

Description

Looking into persistent-mysql it looks that it's possible to do queries only thought connections managed by persistent.
Is there any strong motivation behind that or it's just supposed that you should use DB only through persistent?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing persistent-mysql and how connections are managed by persistent. Determine whether supplying an external connection is intentionally unsupported and what design or implementation implications that would have. Done would require a documented rationale or a clearly scoped proposal for supporting user-provided connections.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, mysql
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.