Expose underlying raw SQLite database pointer.#772
Expose underlying raw SQLite database pointer.#772parsonsmatt merged 5 commits intoyesodweb:masterfrom
Conversation
|
LGTM so far! |
|
(Just needs a change log update for merge) |
|
@MaxGabriel I'll add a changelog soon, I'm also experimenting with variations of withSqliteConn & co that make it easier to actually access the |
ff0acb6 to
859b696
Compare
|
Ok, so I finally had time to get back to this. I added a I implemented all the relevant PersistCore, PersistStoreRead, etc. classes too (via liftPersist), so it should be possible to just directly use I'm not very opinionated about the names of types/fields, because I suck at coming up with them, so feel free to suggest better ones. Also, I could migrate the new functionality to a new |
|
If people support the change suggested in #783 this PR might have to wait those changes get in so I can add a |
|
@MaxGabriel whoops, yeah. |
|
@MaxGabriel besides waiting for what to do with #783 is there anything you'd like to see changed/named differently/organised about this? (I'd like to at least settle on the names/modules so I can commit to them in my own code, regardless of when this gets merged/released) |
|
@merijn Yeah this looks good to me, the only thing I would ask to change is can you export separate functions for the |
|
(If anyone else wants to take a look at this now would be a good time) |
aeabad6 to
788048f
Compare
eaabeb3 to
b698006
Compare
|
@merijn This PR looks great! once you've resolved merge conflicts (should be fairly straightforward) then we can get this released 😄 |
|
@parsonsmatt I'll update this "Real Soon (TM)" (it'll have to wait until I'm done moving) |
|
Finally getting around to reviving this. Still have to figure out how to fit the code with the revamped typeclasses, so consider this a work-in-progress. |
|
Ok, I think that's everything? Seems like it needed less work than I thought. @parsonsmatt I think this should be good to merge (assuming the tests don't unexpectedly break). |
|
Incidentally, who is responsible for maintaining/merging PRs for persistent-sqlite (and persistent-template)? I've got a few other (super simple) patches that fix minor warts/problems lying around to PR, but I'm unsure who to ping to get them looked at, since some of the PR seem to take quite a while to get noticed and I'd prefer to finish upstreaming them in less than 1.5 years ;) |
parsonsmatt
left a comment
There was a problem hiding this comment.
I dig it, looks great! 😄
|
I am, however, pre-caffeinated, so I am going to take another peek in an hour or two before merging. |
|
OK, so on a first pass, this looks great. Can you add a test or test-suite that will ensure that this new |
Do you mean the |
|
Yes, that's right - I was typing from memory, my bad. In retrospect I think having it satisfy all the class instances from |
Allows people to use the FFI to call SQLite's C API functions. Fixes #771.
Before submitting your PR, check that you've:
@sincedeclarations to the HaddockAfter submitting your PR: