lonnieezell / monarch

A back-to-basics framework for the modern web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor to use Nette::Database layer

lonnieezell opened this issue · comments

Nette's Database layer, both Core and the Explorer, ascribe to similar philosophy to what I was wanting to use here, but provides some additional functionality (especially the Explorer) in a very simple manner.

Was looking into this tonight and I don't believe there's enough of a benefit to use Nette's Database Core over what I've already implemented. It primarily just adds a new layer over PDO that does a couple of nice syntactic sugar methods. I don't think the performance or mental overhead cost is enough to warrant it's inclusion.

While their Explore library does look pretty nice, it requires the use of the Core library and a couple of other instances so it's not going to work either.

FatFree Framework also provides a nice solution for exploring tables without a full ORM. There's some very handy ideas between the two of these to take inspiration from. Especially like how Nette handles relationships in the Explore library. That was my big draw to using that package, if I'm being honest.

For now, I'm focusing on tidying up the database layer and getting it fully tested. Also making it simple to extend and add features to - the QueryBuilder will be an extension itself, and will be able to have its own extensions to add to its syntax.